commit 03b010b4ce8ad057d65924f2fd9c3c825cc6691d
Author: Jean-Marc Lasgouttes <[email protected]>
Date: Fri Apr 17 15:58:14 2015 +0200
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.
diff --git a/src/TextClass.cpp b/src/TextClass.cpp
index 12625dc..a07b674 100644
--- a/src/TextClass.cpp
+++ b/src/TextClass.cpp
@@ -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
}