forked from oskarwiksten/andors-trail
-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Localized resources showing even when disabled #125
Comments
AndreasMagnvall
changed the title
Localization showing even when disabled
Localized resources showing even when disabled
Jun 10, 2019
Hello Twmanar, I can reproduce this on the list of hero skills and for the configuration settings when turning my phone so that the orientation changes to landscape mode and then switching to the homescreen and back. Do you remember the places where the content gets localized and how to trigger it? |
Chriz76
added a commit
to Chriz76/andors-trail
that referenced
this issue
Jun 24, 2019
…#125) - in some activities the code for setting the locale was missing and therefore a simple turn of the device switched to localized texts even if localized resources were disabled - for all other activities there was the problem that the locale was set only in onCreate but in some special cases the config is reset but only onResume gets called (e.g. when turning the device, hitting the home button, turning the device back and then switching to AT again). Setting it only in onResume would be too late for the regular cases. The code is almost a noop if there is no change to be done so it seems ok to call it twice. - created two baseclasses for activities to encapsulate the logic and increase the chance that a new activity will be based on that classes and the code will not be forgotten - might fix issue Zukero#125 "Localized resources showing even when disabled" - ways of working solutions for setting the locale differ from API level to API level (see https://proandroiddev.com/change-language-programmatically-at-runtime-on-android-5e6bc15c758) - tested on android Pie and Marshmallow
Chriz76
added a commit
to Chriz76/andors-trail
that referenced
this issue
Jun 24, 2019
…#125) - in some activities the code for setting the locale was missing and therefore a simple turn of the device switched to localized texts even if localized resources were disabled - for all other activities there was the problem that the locale was set only in onCreate but in some special cases the config is reset but only onResume gets called (e.g. when turning the device, hitting the home button, turning the device back and then switching to AT again). Setting it only in onResume would be too late for the regular cases. The code is almost a noop if there is no change to be done so it seems ok to call it twice. - created two baseclasses for activities to encapsulate the logic and increase the chance that a new activity will be based on that classes and the code will not be forgotten - might fix issue Zukero#125 "Localized resources showing even when disabled" - ways of working solutions for setting the locale differ from API level to API level (see https://proandroiddev.com/change-language-programmatically-at-runtime-on-android-5e6bc15c758) - tested on android Pie and Marshmallow
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Even though "Use localized resources" is disabled I sometimes get translated content. The quick fix is to restart the app. Sometimes only some of the content is translated. I am using a galaxy s6 to play.
The text was updated successfully, but these errors were encountered: