yanokwa
(Yaw Anokwa)
18 Aprile 2024, 10:47pm
1
Nelle lingue evidenziate nelle Impostazioni, se si fa clic sul link https://highlightjs.org/static/demo , si viene indirizzati a https://highlightjs.org/not-a-cdn che dice…
Non usarci come CDN. Non dovresti collegarti ad alcuna risorsa ospitata sul nostro sito web. Stiamo ricevendo milioni di richieste spazzatura a causa di questo uso improprio delle nostre risorse.
Forse il link dovrebbe essere https://highlightjs.org/demo
Credo che la stringa pertinente da modificare qui (ma che dovrà essere modificata anche in altre lingue) sia:
max_prints_per_hour_per_user: "Maximum number of /print page impressions (set to 0 to disable printing)"
full_name_required: "Full name is a required field of a user's profile."
enable_names: "Show the user's full name on their profile, user card, and emails. Disable to hide full name everywhere."
display_name_on_posts: "Show a user's full name on their posts in addition to their @username."
show_time_gap_days: "If two posts are made this many days apart, display the time gap in the topic."
short_progress_text_threshold: "After the number of posts in a topic goes above this number, the progress bar will only show the current post number. If you change the progress bar's width, you may need to change this value."
default_code_lang: "Default programming language syntax highlighting applied to markdown code blocks (auto, text, ruby, python etc.). This value must also be present in the `highlighted languages` site setting."
warn_reviving_old_topic_age: "When someone starts replying to a topic where the last reply is older than this many days, a warning will be displayed. Disable by setting to 0."
autohighlight_all_code: "Apply syntax highlighting to HTML-authored <code> blocks, even if they didn't specify a language. To configure markdown-authored code blocks, use the 'default code lang' setting."
highlighted_languages: "Included syntax highlighting rules. (Warning: including too many languages may impact performance) see: <a href='https://highlightjs.org/static/demo/' target='_blank'>https://highlightjs.org/static/demo</a> for a demo"
show_copy_button_on_codeblocks: "Add a button to codeblocks to copy the block contents to the user's clipboard."
embed_any_origin: "Allow embeddable content regardless of origin. This is required for mobile apps with static HTML."
embed_topics_list: "Enable the embedding of topic lists in HTML format. This setting allows you to incorporate lists of topics from your forum into other websites in a compatible and easy-to-use manner."
embed_set_canonical_url: "Set the canonical URL for embedded topics to the embedded content's URL."
embed_truncate: "Shorten the contents of posts that are embedded from external sources. This setting ensures that only the initial part of content is displayed when a post from an external URL is embedded on your site. If you prefer to display full content from the external posts, you can disable this setting."
embed_unlisted: "Embedded topics will be unlisted until a user replies."
import_embed_unlisted: "Imported embedded topics will be unlisted until a user replies (even when the `embed unlisted` site setting is unchecked)."
embed_support_markdown: "Support Markdown formatting for embedded posts."
allowed_embed_selectors: "A comma separated list of CSS elements that are allowed in embeds."
5 Mi Piace
biocrusoe
(Michael R. Crusoe)
11 Novembre 2024, 9:42am
3
Ho inviato una PR per risolvere questo problema, grazie per aver individuato la posizione del codice: UX: fix link to Highlight JS demo by mr-c · Pull Request #29701 · discourse/discourse · GitHub
4 Mi Piace
Moin
11 Novembre 2024, 9:48am
4
L’unico file che devi modificare è server.en.yml. Gli altri vengono modificati quando le traduzioni da Crowdin vengono unite.
4 Mi Piace
pmusaraj
(Penar Musaraj)
11 Novembre 2024, 7:42pm
5
PR ora unito, grazie @biocrusoe e grazie per la segnalazione @yanokwa . Chiusura.
2 Mi Piace