Bug 205974 - Changing language in KTurtle doesn’t work properly
Summary: Changing language in KTurtle doesn’t work properly
Status: RESOLVED FIXED
Alias: None
Product: kturtle
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Cies Breijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-02 11:58 UTC by Karl Ove Hufthammer
Modified: 2021-03-10 20:04 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karl Ove Hufthammer 2009-09-02 11:58:34 UTC
Version:           0.8 beta (using 4.3.00 (KDE 4.3.0), 4.3.0-6.fc10 Fedora)
Compiler:          gcc
OS:                Linux (i686) release 2.6.27.30-170.2.82.fc10.i686

Changing the language in KTurtle doesn’t work properly.

When I start KTurtle, it defaults to English (it shouldn’t, BTW, but that’s another bug).

When I change the language to e.g. Danish, the ‘File | Examples’ menu correctly changes the names and contents of the example files. However, from now on, the examples will only alternate between Danish and English.

For example, if I now choose ‘Norwegian Nynorsk’, they will stay in Danish. If I choose English, they will be in English. If I then choose ‘Norwegian Bokmål’, they will be in Danish. No matter which language I choose, I either get English or Danish.
Comment 1 Burkhard Lück 2009-11-11 10:20:26 UTC
Checked with $ kturtle --version
Qt: 4.5.2
KDE: 4.3.3 (KDE 4.3.3)
KTurtle: 0.8 beta
That is recent branch compiled from sources.
Installed languages German, French and US English.
With locale German selected in systemsettings I get either english (with KTurtle Script language english) or german examples (with KTurtle Script language german or french)

I have switched to french in systemsettings, then I get the examples only in english or french, even if I select Script language german.

Reason for this misbehaviour is obvious:
The examples are build at runtime with gettext calls in the current locale (from systemsettings), therefore I get them only translated when systemsettings language=script language or untranslated =english when systemsettings language!=script language
To solve this the examples have to be build whith gettext calls in the locale selected as script language to get them properly translated.
This bug is in src/interpreter/translator.cpp
Comment 2 Justin Zobel 2021-03-10 00:32:47 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.
Comment 3 Karl Ove Hufthammer 2021-03-10 20:04:16 UTC
This bug seems to be fixed.