hilaire / drgeo

GNU Dr. Geo
https://www.gnu.org/s/dr-geo
GNU General Public License v3.0
17 stars 1 forks source link

GUI message on Mac not translated #39

Open hilaire opened 4 months ago

hilaire commented 4 months ago

DrGeo does not show the messages of the GUI in native language. Locale seems to have issue to display locale of the host.

Please download this build and test the code below: https://www.dropbox.com/scl/fi/a49l4pogsua2fb6p1es3r/DrGeo-mac-24.05a-beta.zip?rlkey=3yexgm5bo1aw2cqkuwiz0z5wz&st=lgztamos&dl=0

Please test and report, what you get with these commands in a Workspace.

Locale current localeID.
GetTextTranslator defaultLocaleDirs
GetTextTranslator availableLanguageLocaleIDs.
GetTextTranslator current localeID.
citizen428 commented 3 months ago

Moving over my comments from Mastodon:

Locale current localeID. en-TH . -> Weird, because I have no idea where it could get that value from. My system is still set to Argentinean Spanish and my shell locale is en_US.UTF-8.

GetTextTranslator defaultLocaleDirs. an OrderedCollection(/Applications/DrGeo.app/Resources/image/locale /Applications/locale) . -> This seems correct and there's an es directory in that location.

GetTextTranslator availableLanguageLocaleIDs. a Set(uk th zh-CN da lt tr cs pt-BR te ro pt sv ca es nl pl ia fr ar de ja en-GB ug vi sk hy uz ta zh-TW ru eo it ast ko ca@valencia fi) .

GetTextTranslator current localeID. en . -> Again, no idea why, other applications are in Spanish as they should be, screenshot for example.

I'm planning on investigating this further but I won't have time for that at least until next week.