mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 18:29:11 +00:00
Replace uses of shorthand codeblock syntax to avoid issues with localization
Previously, many paragraphs in the documentation used `::` at the end of a line as a replacement for a single colon (and `::` on the following line). Due to this, the `::` was part of the extracted string for localization. Weblate also showed a warning about the trailing `::`, as it's not normally expected to be there. This change requires translators to revalidate all modified strings. However, considering many of those have broken code blocks due to translators replacing `::` with `:`, it can be a good idea. This also adds documentation writing guidelines for code blocks and admonitions. This commit does not modify existing admonitions in any way (as this would lead to a much larger diff, and require more localizable text to be revalidated by translators).
This commit is contained in:
@@ -79,7 +79,9 @@ and then calling
|
||||
:ref:`TranslationServer.reload_pseudolocalization() <class_TranslationServer_method_reload_pseudolocalization>`
|
||||
which reparses the pseudolocalization properties and reloads the pseudolocalization.
|
||||
The following code snippet shall turn on ``replace_with_accents`` and ``double_vowels`` properties
|
||||
and then call ``reload_pseudolocalization()`` for the changes to get reflected::
|
||||
and then call ``reload_pseudolocalization()`` for the changes to get reflected:
|
||||
|
||||
::
|
||||
|
||||
ProjectSettings.set_setting("internationalization/pseudolocalization/replace_with_accents", true)
|
||||
ProjectSettings.set_setting("internationalization/pseudolocalization/double_vowels", true)
|
||||
|
||||
Reference in New Issue
Block a user