From: Juergen Spitzmueller Date: Sun, 16 Feb 2014 08:57:17 +0000 (+0100) Subject: Simplification X-Git-Tag: 2.1.0rc1~211 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=e0e8d6a40ffe2be76774fe15288ed2a7a199c942;p=features.git Simplification --- 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); }