Android String-Ressourcen#

Android-spezifisches Dateiformat zum Übersetzen von Anwendungen.

Android string resources are monolingual, the Einsprachige Basis-Sprachdatei is stored in a different location from the other files – res/values/strings.xml.

Bemerkung

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

Hinweis

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>

Weblate-Konfiguration#

Typical Weblate Komponentenkonfiguration

Dateimaske

res/values-*/strings.xml

Einsprachige Basis-Sprachdatei

res/values/strings.xml

Vorlage für neue Übersetzungen

Leer

Dateiformat

Android String-Ressource