Bug 502833 - Some strings keep previous language after changing language
Summary: Some strings keep previous language after changing language
Status: RESOLVED FIXED
Alias: None
Product: gcompris
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Jazeix Johnny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-15 12:16 UTC by animtim
Modified: 2025-04-25 08:48 UTC (History)
0 users

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 animtim 2025-04-15 12:16:11 UTC
When changing language, it is now applied directly, but it can still happen in some places that the translation of previously selected language is used.

I've noticed it especially in ProgrammingMaze tutorials. I think I also saw this in other places but forgot to note them...

To reproduce:
- select a new language and apply
- start ProgrammingMaze activity
- The text content of the tutorials is still in the previously-selected language.
Comment 1 Jazeix Johnny 2025-04-15 12:27:40 UTC
Thanks for reporting.

It seems to affect all the Tutorial. One fix would be to change the array of instructions to a ListModel everywhere, I'll work on it in the coming days.

Then, we'll need to look for other strings that are in arrays :/
Comment 2 Bug Janitor Service 2025-04-15 16:43:02 UTC
A possibly relevant merge request was started @ https://invent.kde.org/education/gcompris/-/merge_requests/247
Comment 3 Jazeix Johnny 2025-04-17 18:52:29 UTC
Git commit 1534a7bf4e1af96a9428fa735403bb8ccb48b4d5 by Johnny Jazeix.
Committed on 17/04/2025 at 18:49.
Pushed by jjazeix into branch 'master'.

core, rework Tutorial to have a ListModel for translations

M  +35   -1    src/activities/binary_bulb/BinaryBulb.qml
M  +0    -34   src/activities/binary_bulb/binary_bulb.js
M  +16   -1    src/activities/grammar_analysis/GrammarAnalysis.qml
M  +0    -23   src/activities/grammar_analysis/grammar_analysis.js
M  +6    -0    src/activities/grammar_classes/GrammarClasses.qml
M  +12   -4    src/activities/learn_decimals/Learn_decimals.qml
M  +0    -52   src/activities/learn_decimals/learn_decimals.js
M  +16   -0    src/activities/learn_decimals_additions/Learn_decimals_additions.qml
M  +16   -0    src/activities/learn_decimals_subtractions/Learn_decimals_subtractions.qml
M  +12   -0    src/activities/learn_quantities/Learn_quantities.qml
M  +24   -1    src/activities/nine_men_morris/NineMenMorris.qml
M  +0    -22   src/activities/nine_men_morris/nine_men_morris.js
M  +35   -37   src/activities/numbers-odd-even/NumbersOddEven.qml
M  +1    -1    src/activities/planegame/Planegame.qml
M  +49   -8    src/activities/programmingMaze/ProgrammingMaze.qml
M  +0    -36   src/activities/programmingMaze/programmingMaze.js
M  +6    -7    src/core/Tutorial.qml

https://invent.kde.org/education/gcompris/-/commit/1534a7bf4e1af96a9428fa735403bb8ccb48b4d5
Comment 4 Jazeix Johnny 2025-04-25 08:48:03 UTC
Git commit 03f47375a98e6dd8ca97fa5ad82aad4197e76d45 by Johnny Jazeix.
Committed on 25/04/2025 at 08:47.
Pushed by jjazeix into branch 'KDE/25.0'.

core, rework Tutorial to have a ListModel for translations

M  +35   -1    src/activities/binary_bulb/BinaryBulb.qml
M  +0    -34   src/activities/binary_bulb/binary_bulb.js
M  +16   -1    src/activities/grammar_analysis/GrammarAnalysis.qml
M  +0    -23   src/activities/grammar_analysis/grammar_analysis.js
M  +6    -0    src/activities/grammar_classes/GrammarClasses.qml
M  +12   -4    src/activities/learn_decimals/Learn_decimals.qml
M  +0    -52   src/activities/learn_decimals/learn_decimals.js
M  +16   -0    src/activities/learn_decimals_additions/Learn_decimals_additions.qml
M  +16   -0    src/activities/learn_decimals_subtractions/Learn_decimals_subtractions.qml
M  +12   -0    src/activities/learn_quantities/Learn_quantities.qml
M  +24   -1    src/activities/nine_men_morris/NineMenMorris.qml
M  +0    -22   src/activities/nine_men_morris/nine_men_morris.js
M  +35   -37   src/activities/numbers-odd-even/NumbersOddEven.qml
M  +1    -1    src/activities/planegame/Planegame.qml
M  +49   -8    src/activities/programmingMaze/ProgrammingMaze.qml
M  +0    -36   src/activities/programmingMaze/programmingMaze.js
M  +6    -7    src/core/Tutorial.qml

https://invent.kde.org/education/gcompris/-/commit/03f47375a98e6dd8ca97fa5ad82aad4197e76d45