Remove bad hack.

The macro N_() is a no-op which does exactly what is needed here: tell gettext that the string should be in the list of translations.
This commit is contained in:
Jean-Marc Lasgouttes 2015-04-17 15:58:14 +02:00
parent ffa6e74c74
commit 03b010b4ce

View File

@ -126,7 +126,7 @@ string translateReadType(TextClass::ReadType rt)
// This string should not be translated here,
// because it is a layout identifier.
docstring const TextClass::plain_layout_ = from_ascii("Plain Layout");
docstring const TextClass::plain_layout_ = from_ascii(N_("Plain Layout"));
InsetLayout DocumentClass::plain_insetlayout_;
@ -155,7 +155,6 @@ TextClass::TextClass()
titletype_ = TITLE_COMMAND_AFTER;
titlename_ = "maketitle";
loaded_ = false;
_("Plain Layout"); // a hack to make this translatable
}