Closed rsevero closed 7 months ago
Apparently the problem is just on the settings pages. The rest of the app follows the language setting.
can you describe better?
On Fri, Apr 5, 2024, 8:21 PM Rodrigo Severo @.***> wrote:
Apparently the problem is just on the settings pages. The rest of the app follows the language setting.
— Reply to this email directly, view it on GitHub https://github.com/marcocorvi/topodroid/issues/101#issuecomment-2040377589, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXMYC7M6P22LOC6TX2VTELY33TQ3AVCNFSM6AAAAABFZSHXXKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBQGM3TONJYHE . You are receiving this because you are subscribed to this thread.Message ID: @.***>
can you describe better?
Have you seen the first message in this issue?
yes, and i cannot reproduce it. maybe i do a different set of actions
On Sat, Apr 6, 2024, 6:30 PM Rodrigo Severo @.***> wrote:
can you describe better?
Have you seen the first message in this issue?
— Reply to this email directly, view it on GitHub https://github.com/marcocorvi/topodroid/issues/101#issuecomment-2041131898, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXMYC6QB3KTNPKAXUBUE33Y4APIRAVCNFSM6AAAAABFZSHXXKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBRGEZTCOBZHA . You are receiving this because you commented.Message ID: @.***>
Which is the default language of the Android devices you are testing? Mine is portuguese.
Just tested that the main settings page returns to the default Android language after you get out of the settings page to the main TopoDroidX page and back.
After changing the language setting in my Adnroid to english, the main settings page is always in english despite the settings I chose.
my default is english.
when i set language italian i get everything in italian when i set default i get everything in english
On Sun, Apr 7, 2024, 4:30 PM Rodrigo Severo @.***> wrote:
Which is the default language of the Android devices you are testing? Mine is portuguese.
Just tested that the main settings page returns to the default Android language after you get out of the settings page to the main TopoDroidX page and back.
After changing the language setting in my Adnroid to english, the main settings page is always in english despite the settings I chose.
— Reply to this email directly, view it on GitHub https://github.com/marcocorvi/topodroid/issues/101#issuecomment-2041489218, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXMYCYK52FVEZEQHQD2EGTY4FJ75AVCNFSM6AAAAABFZSHXXKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBRGQ4DSMRRHA . You are receiving this because you commented.Message ID: @.***>
Currently I have this issue in my 2 cel phones. In my "dev" install on Android Studio the language setting is completely ignored.
Can you give me some pointers on where should I start looking to try to solve this issue?
locale is set with a configuration change
On Mon, Apr 8, 2024, 11:29 AM Rodrigo Severo @.***> wrote:
Currently I have this issue in my 2 cel phones. In my "dev" install on Android Studio the language setting is completely ignored.
Can you give me some pointers on where should I start looking to try to solve this issue?
— Reply to this email directly, view it on GitHub https://github.com/marcocorvi/topodroid/issues/101#issuecomment-2042284086, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXMYCYIQJSSVVLZHWIL2XDY4JPPNAVCNFSM6AAAAABFZSHXXKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBSGI4DIMBYGY . You are receiving this because you commented.Message ID: @.***>
i tested after setting italian as default language. when i select english it takes a few seconds before the interface is updated to english. that time is probably necessary to load the translation in the runtime.
if i then set to default it returns to italian, again after some seconds.
On Mon, Apr 8, 2024, 1:26 PM Marco Corvi @.***> wrote:
locale is set with a configuration change
On Mon, Apr 8, 2024, 11:29 AM Rodrigo Severo @.***> wrote:
Currently I have this issue in my 2 cel phones. In my "dev" install on Android Studio the language setting is completely ignored.
Can you give me some pointers on where should I start looking to try to solve this issue?
— Reply to this email directly, view it on GitHub https://github.com/marcocorvi/topodroid/issues/101#issuecomment-2042284086, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXMYCYIQJSSVVLZHWIL2XDY4JPPNAVCNFSM6AAAAABFZSHXXKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBSGI4DIMBYGY . You are receiving this because you commented.Message ID: @.***>
i tested after setting italian as default language. when i select english it takes a few seconds before the interface is updated to english. that time is probably necessary to load the translation in the runtime. if i then set to default it returns to italian, again after some seconds.
Yes, such a delay is quite understable but unfortunatelly my issue isn't about just a delay: it actually stays on the wrong language.
Samsung's Android interface was updated yesterday. After it, one of my phones returned to proper language in TopodroidX. The other remains.
In Android Studio the language setting stopped working for months now.
I managed to check that the code that saves the new language setting seems to be working fine even on Android Studio.
I am having trouble finding the code that uses the language setting to translate the strings. Can you point me where such a code is?
the language is managed by TDLocale
unlike other activites the setting activity does not have onConfigurationChange but there is a reload of the preferences. i dont recall why.
is the language wrong only in the setting main page, or also in the subpages ?
On Tue, Apr 9, 2024 at 11:28 AM Rodrigo Severo @.***> wrote:
i tested after setting italian as default language. when i select english it takes a few seconds before the interface is updated to english. that time is probably necessary to load the translation in the runtime. if i then set to default it returns to italian, again after some seconds.
Yes, such a delay is quite understable but unfortunatelly my issue isn't about just a delay: it actually stays on the wrong language.
Samsung's Android interface was updated yesterday. After it, one of my phones returned to proper language in TopodroidX. The other remains.
In Android Studio the language setting stopped working for months now.
I managed to check that the code that saves the new language setting seems to be working fine even on Android Studio.
I am having trouble finding the code that uses the language setting to translate the strings. Can you point me where such a code is?
— Reply to this email directly, view it on GitHub https://github.com/marcocorvi/topodroid/issues/101#issuecomment-2044554495, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXMYC3WNL4NOT2KO7NI773Y4OYEZAVCNFSM6AAAAABFZSHXXKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBUGU2TINBZGU . You are receiving this because you commented.Message ID: @.***>
which android version do you have on your phones ? what is the language setting in AndroidStudio ? which android sdk are you using in your android studio ?
On Tue, Apr 9, 2024 at 11:43 AM Marco Corvi @.***> wrote:
the language is managed by TDLocale
unlike other activites the setting activity does not have onConfigurationChange but there is a reload of the preferences. i dont recall why.
is the language wrong only in the setting main page, or also in the subpages ?
On Tue, Apr 9, 2024 at 11:28 AM Rodrigo Severo @.***> wrote:
i tested after setting italian as default language. when i select english it takes a few seconds before the interface is updated to english. that time is probably necessary to load the translation in the runtime. if i then set to default it returns to italian, again after some seconds.
Yes, such a delay is quite understable but unfortunatelly my issue isn't about just a delay: it actually stays on the wrong language.
Samsung's Android interface was updated yesterday. After it, one of my phones returned to proper language in TopodroidX. The other remains.
In Android Studio the language setting stopped working for months now.
I managed to check that the code that saves the new language setting seems to be working fine even on Android Studio.
I am having trouble finding the code that uses the language setting to translate the strings. Can you point me where such a code is?
— Reply to this email directly, view it on GitHub https://github.com/marcocorvi/topodroid/issues/101#issuecomment-2044554495, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXMYC3WNL4NOT2KO7NI773Y4OYEZAVCNFSM6AAAAABFZSHXXKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBUGU2TINBZGU . You are receiving this because you commented.Message ID: @.***>
which android version do you have on your phones ?
14 on both. And on Android Studio also. The update I mentioned before was on "One UI" which , is, AFAICT, a Samsung creation. It's Samsung Android interface.
what is the language setting in AndroidStudio ?
It was english. When I changed to portuguese, the app started working in portuguese and I can go back and forth between portuguese and english inside the app. Other languages still don't work. I wonder if it has something to do with the info here: https://developer.android.com/guide/topics/resources/multilingual-support#specify-the-languages-your-app-supports
Unfortunatelly including
resConfigs 'en', 'pt', 'it', 'ru', 'de', 'cn', 'hu'
in build.gradle didn't solve the issue but I am quite sure that the issue is about some kind of optimization Android Studio is doing in the build process and not including language info for all available languages.
which android sdk are you using in your android studio ?
Was already using 34. Target SDK in build.gradle was 33, just changed to 34.
does the issue concern the downloaded apk or an apk you built with studio?
the app includes the languages without country specialization. the language resolution is about matching the user languages with one of those included in the app. when the user pick another language than the device one the app change the configuration to use the locale of the selected language.
On Tue, Apr 9, 2024, 3:03 PM Rodrigo Severo @.***> wrote:
which android version do you have on your phones ?
14 on both. And on Android Studio also. The update I mentioned before was on "One UI" which , is, AFAICT, a Samsung creation. It's Samsung Android interface.
what is the language setting in AndroidStudio ?
It was english. When I changed to portuguese, the app started working in portuguese and I can go back and forth between portuguese and english inside the app. Other languages still don't work. I wonder if it has something to do with the info here: https://developer.android.com/guide/topics/resources/multilingual-support#specify-the-languages-your-app-supports
Unfortunatelly including resConfigs 'en', 'pt', 'it', 'ru', 'de', 'cn', 'hu' in build.gradle didn't solve the issue but I am quite sure that the issue is about some kind of optimization Android Studio is doing in the build process and not including language info for all available languages.
which android sdk are you using in your android studio ?
Was already using 34. Target SDK in build.gradle was 33, just changed to 34.
— Reply to this email directly, view it on GitHub https://github.com/marcocorvi/topodroid/issues/101#issuecomment-2045133075, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXMYC4BYR24UORIHS6RBDDY4PRIVAVCNFSM6AAAAABFZSHXXKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBVGEZTGMBXGU . You are receiving this because you commented.Message ID: @.***>
closed because issue resolution was not pursued and the issue could be reproduced.
Describe the bug App not respecting "Language" setting.
To Reproduce Steps to reproduce the behavior:
Expected behavior Expected that all pages texts appear in the new language choosen.
Screenshots See Additional context below:
Device (please complete the following information):
Additional context After I leave the app and force stop it, all texts are back in the system default language (see the screenshot above).