]> git.lyx.org Git - lyx.git/commitdiff
Simplification
authorJuergen Spitzmueller <spitz@lyx.org>
Sun, 16 Feb 2014 08:57:17 +0000 (09:57 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Sun, 16 Feb 2014 08:57:17 +0000 (09:57 +0100)
src/insets/InsetCaption.cpp

index aaf06286f9abf3ee1f685b9b52ae5496d1f4e32b..13ecb4bccd3c4deecf7c6b9246140347e8b3d4e5 100644 (file)
@@ -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);
 }