chore: Sync translations (#4105)

This commit is contained in:
github-actions[bot]
2024-12-12 19:01:48 +04:00
committed by GitHub
parent c9b1a3bf60
commit c696b5fa9d
77 changed files with 17881 additions and 6737 deletions

View File

@ -1,34 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Note: All strings must have a unique path, even if the same string is declared in two different apps.
This is because Crowdin requires temporarily flattening this file and removing the <app> and <patch> elements.
All strings must have a unique path, even if the same string is declared in two different apps.
This is because Crowdin requires temporarily flattening this file and removing the <app> and <patch> elements.
# General guidelines and information for translating
## Strings parameters can be reordered to allow more flexible translations if the grammar should be changed.
Strings with new lines must be raw strings where they're wrapped in quotes and new lines are not encoded.
Raw strings still requires escaping embedded double quotes but escaping embedded single quotes is optional.
For example, the patches string:
<string name="revanced_patches_string">You will arrive at %1$s in %2$s hours from now</string>
Could be translated to another language using a rearranged grammar:
<string name="revanced_patches_string">You will arrive %2$s hours from now at %1$s</string>
Raw strings are required because Crowdin AI translations regularly gets confused and
replace \n with an encoded new line character.
For Manager strings:
You will arrive at ${destination} in ${count} hours from now
Could be rearranged by changing the order of the ${} parameters:
You will arrive ${count} hours from now at ${destination}
Bad:
<string name="summary_key">First \'item\' text\nSecond \"item\" text</string>
Reordering is particularly relevant when translating into right to left languages, or for any language with grammar that is noticeably different from English.
Good:
<string name="summary_key">"First 'item' text
Second \"item\" text"</string>
## Single and double quotation marks must be escaped for patch strings (Manager does not require escaping any quotes).
All _patches_ single and double quotation marks must be escaped as \" or \'
Forgetting to do this will cause that string to appear in app with no quotation characters.
Correct:
<string name="revanced_string">You\'re correct. This is the \"correct\" way and this text will appear as expected in the app</string>
Not correct:
<string name="revanced_string">You're not correct. This is not the "correct" way and this text will not appear as expected the in app</string>
-->
<resources>
<app id="shared">
@ -180,7 +169,6 @@ This is because Crowdin requires temporarily flattening this file and removing t
<patch id="layout.tablet.enableTabletLayoutPatch">
</patch>
<patch id="layout.miniplayer.miniplayerPatch">
<string name="revanced_miniplayer_type_entry_0">ခွင့်မပြုထားပါ / အသုံးမပြုထားပါ</string>
</patch>
<patch id="layout.theme.themePatch">
</patch>