Enigma-Game/Enigma

Level pack names are untranslatable

Opened this issue · 4 comments

... or in need of xgettext & push to Transifex? My translation is at 100%.

enigma-levelpacks

When clicking on a level pack, the number of levels is in English:
enigma-levelpacks2

The window title is also untranslated, as well as +%d others
enigma-levelmenu

I also can't make my translation fit into that line. Smaller padding/margins might give us an extra line of text here.

Enigma version: 1.30 beta

Yes, it might be the case that some strings are not translatable, either for technical reasons or because the code is incomplete.
This would need further investigation to find the string in the source and see if they are all wrapped in the correct i18n function calls.

For example "Level Menu" here is not wrapped in an _ function call (GNU gettext):

set_caption(("Enigma - Level Menu"));

I do not know, why.

I managed to grep some:

src/gui/LevelPackConfig.cc:        set_caption(("Enigma - Level Pack Configuration"));
src/gui/LevelMenu.cc:        set_caption(("Enigma - Level Menu"));
src/gui/LevelPackConfig.cc:        Label * sokoballLabel = new Label("Sokoball:", HALIGN_RIGHT);
src/lev/RatingManager.cc:        return ecl::strf("%s+%d others", org.c_str(), others);

Some of the static strings should be fixed by PR #69.