From 03b010b4ce8ad057d65924f2fd9c3c825cc6691d Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Fri, 17 Apr 2015 15:58:14 +0200 Subject: [PATCH] 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. --- src/TextClass.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/TextClass.cpp b/src/TextClass.cpp index 12625dc0aa..a07b674b76 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 }