When exporting data out of eclypse, you may use certain variables so that resulting files are placed most conveniently for your downstream needs.
Accepted Variables
Variable | Resolves To | Discussion |
---|---|---|
{locale_id} | Locale id that corresponds to this file export. | Locale Ids in eclypse conform to Java Locale standards. For example: French Canada: fr_CA Simplified Chinese Macao: zh_Hans_MC |
{language_tag} | IETF BCP 47 language tag that corresponds to this file. | Each language tag is composed of one or more "subtags" separated by hyphens (-). For example: French Canada: fr-CA Simplified Chinese Macao: zh-Hans-MC |
{android_resource_language_tag} | Android specific way of qualifying resources by BCP 47 language tags while exporting data. This is supported starting with Android 7.0 (API level 24). | Language tags start with prefix "b" and using + symbol to separate the tags. For example: b+en -> English b+en+US -> English with United States locale b+es+419 -> Spanish with Latin America locale b+zh+Hant+CN -> Chinese, Traditional Mainland locale |
{android_resource_locale_id} | Android specific way of qualifying resources by ISO 639-1 and a two letter ISO 3166-1-alpha-2 codes while exporting data. This is the original method of qualifying resources in Android. | Locale ids start with ISO 639-1 code. If there is a region to the locale id then ISO 3166-1-alpha-2 is appended with an r prefix. For example: en -> English en-rUS -> English with United States locale es-rMX -> Spanish with Mexico locale zh-rCN -> Chinese, Traditional Mainland locale |
Examples
/Users/MyUser/Documents/MyProject/src/Strings/string_assets_{locale_id}.xliff |
/Strings/{language_tag}/Resources.resw |
/res/values-{android_resource_locale_id}/strings.xml |
/Users/MyUser/Documents/MyProject/src/{language_tag}.lproj/Localizable.strings |