Le 15/04/15 18:20, Richard Heck a écrit :
-docstring const TextClass::emptylayout_ = from_ascii(N_("Plain
Layout"));
+// This string cannot be translated, because it is a layout identifier.
+docstring const TextClass::emptylayout_ = from_ascii("Plain Layout");
If you look at TextClass.cpp from c4f8a516b, we have e.g.:
lay.setName(emptylayout_);
This failed if emptylayout_ was translated. On the other hand, however...
The whole point is that N_() does not translate anything, it is just
here to indicate to gettext that the string should be translated. This
gets rid of perfectly correct code.
we do want to translate that string when it's present in the layout
combo. So someone suggested this hack.
The emptylayout_ variable got removed at some point, though, so any way
of making this string translatable by the GUI will do.
The variable is plainlayout_ now.
JMarc