Search code examples
androidlocale

English to Danish locale issue


I have an activity that consists of textviews. I have made the activity compatible for English and Danish locales.

When i change the locale from English to Danish and select the app from app drawer, only some of the text views are getting converted to Danish locale. But when I re run the app from Eclipse all the textviews are getting converted to Danish.

Is this a bug that from onPause state of an activity the strings.xml is not getting referenced properly or is there any other solutuion to my problem?


Solution

  • I found that I have checkboxes whose text is not getting changed immediately when we change the Locale.

    So, on the onPause method of the activity I have assigned the values of the Strings again that solved the problem.