J. Arenas
J. Arenas

Reputation: 493

android app translation not working

It is really strange since I have made a few apps with the same structure and it always have worked before.

The thing is I have an app in some languages, Spanish, English, etc, with the proper res/values-es , res/values, etc

Default language is English in the google play app section and res/values is in english, but I'm receiving complaining for user that say they are viewing the app in Spanish, having the phone in English and being in the USA.

And the even more strange is that I am in Spain, and I configure the phone in English and I can view the app in English ...

So weird.

Any tips on this?

Upvotes: 1

Views: 3266

Answers (1)

Stephan Branczyk
Stephan Branczyk

Reputation: 9375

I'm not sure what the problem is, but if the fix needed is urgent. A quick workaround would be to create a res/values-en-rUS/strings.xml resource until you can figure out what's truly causing this issue.

If the locale is ‘en-US’, Android will look for a value of “R.string.title” by searching the files in the following order:

  1. ‘res/values-en-rUS/strings.xml’
  2. ‘res/values-en/strings.xml’
  3. ‘res/values/strings.xml’

Upvotes: 1

Related Questions