Burime vargjesh Android¶
Android specific file format for translating applications.
Ndihmëz
A very similar formats are Compose Multiplatform resources and Burime Mobile Kotlin.
Android string resources are monolingual, the Kartelë njëgjuhëshe gjuhe bazë is
stored in a different location from the other files – res/values/strings.xml.
Weblate does following escaping of strings:
If a strings is valid XML, it is inserted as XML to translation.
?and@are escaped with a\\at the beginning of the string to avoid interpreting them as style or resource references.In case string contains multiple spaces, it is quoted with double quotes (
").Newlines are escaped as
\\n, but the actual newline is kept for readability as well.
Shënim
Android string-array structures are not currently supported. To work around this, you can break your string arrays apart:
<string-array name="several_strings">
<item>First string</item>
<item>Second string</item>
</string-array>
become:
<string-array name="several_strings">
<item>@string/several_strings_0</item>
<item>@string/several_strings_1</item>
</string-array>
<string name="several_strings_0">First string</string>
<string name="several_strings_1">Second string</string>
The string-array that points to the string elements should be stored in a different file, and not be made available for translation.
This script may help pre-process your existing strings.xml files and translations: https://gist.github.com/paour/11291062
Ndihmëz
To avoid translating some strings, these can be marked as non-translatable. This can be especially useful for string references:
<string name="foobar" translatable="false">@string/foo</string>
Shihni edhe
File extensions |
|
|---|---|
Linguality ⓘ |
Monolingual |
Supports plural ⓘ |
|
Supports descriptions ⓘ |
|
Supports explanation ⓘ |
|
Supports context ⓘ |
|
Supports location ⓘ |
|
Supports flags ⓘ |
|
API identifier |
|
Supports read-only strings ⓘ |
|
Check flags added by this format ⓘ |
Formësim Weblate-i¶
Typical Weblate Component configuration |
|
|---|---|
Maskë kartele |
|
Kartelë njëgjuhëshe gjuhe bazë |
|
Gjedhe për përkthime të reja |
Empty |
Format kartelash |
Burim Vargu Android |