I am developing an application that has multilingual support (using / res / values ββ- ** way) with success. Then I want to use Holo and drop legacy devices (e.g. 2.3. *), To use the standard default (using the path / res / values ββ-v11).
So, I get a structure similar to the one (by default - a language without EN):
- / Res / values
- / Res / value-v11
- / Res / de values
- / Res / values ββde v11
- / RES / value-e
- / RES / values-e-V11
... where in each I have the following:
... where strings.xml is the localized text, and theme.xml has:
For directories other than v11 (legacy devices)
<?xml version="1.0" encoding="UTF-8"?> <resources> <style name="MyTheme" parent="@android:style/Theme"> </style> </resources>
For -v11 directories (+3.0 devices)
<?xml version="1.0" encoding="UTF-8"?> <resources> <style name="MyTheme" parent="@android:style/Theme.Holo"> </style> </resources>
Remembering to add this attribute to the application tag on AndroidManifest.xml
android:theme ="@style/MyTheme"
It works in all languages ββand on all devices, existing and obsolete, with the right choice of theme and everything. Tested on multiple physical devices.
So the question is:
Don't you think this is very convenient? I mean, then we have 2 string.xml files for each language, which are exactly identical, but for each new text we have to fill it twice, increasing the risk of typos. The same thing happens if you have analytics.xml, styles.xml, ... inside
Having a good work with the language in Android using strings.xml, is there any other way around this multitasking multilingualism and multilingualism?
Thanks.