From e0e8d6a40ffe2be76774fe15288ed2a7a199c942 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sun, 16 Feb 2014 09:57:17 +0100 Subject: [PATCH] Simplification --- src/insets/InsetCaption.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/insets/InsetCaption.cpp b/src/insets/InsetCaption.cpp index aaf06286f9..13ecb4bccd 100644 --- a/src/insets/InsetCaption.cpp +++ b/src/insets/InsetCaption.cpp @@ -89,12 +89,7 @@ void InsetCaption::cursorPos(BufferView const & bv, void InsetCaption::setCustomLabel(docstring const & label) { - if (!isAscii(label) || label.empty()) - // This must be a user defined layout. We cannot translate - // this, since gettext accepts only ascii keys. - custom_label_ = label; - else - custom_label_ = _(to_ascii(label)); + custom_label_ = translateIfPossible(label); } -- 2.39.2