0

Mainfest:

<application android:name="org.qtproject.qt.android.bindings.QtApplication"
    android:label="@string/app_name"
    ...
    <activity android:name="net.mynamespace.MainActivity"
        android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation|mcc|mnc|density"
        android:label="@string/app_name"
        ...

res directory contains Russian translation:

values/strings.xml
values-ru/strings.xml

values/strings.xml content:

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="app_name">English App Name</string>
</resources>

values-ru/strings.xml content:

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="app_name">Russian App Name</string>
</resources>

but devices with Russian language still display English app name.

What can be wrong?

Tried values-b+ru but it did not help.

If I copy values-ru/strings.xml to values/strings.xml the app name is displayed in Russian.

Did a quick Google search, but with no success:

  1. How can I translate my Android app name?
  2. Support different languages and cultures
  3. Using resources for localization
  4. What is the list of supported languages/locales on Android?
Dmitriano
  • 1,686
  • 11
  • 23

0 Answers0