From 74b9bce881750421325e17d61b93d9bd9d3c1b8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Tue, 26 Oct 2010 16:53:59 +0000 Subject: [PATCH] * GuiDocument.cpp: translate module names also in descriptions (bug 6987) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35857 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiDocument.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/frontends/qt4/GuiDocument.cpp b/src/frontends/qt4/GuiDocument.cpp index fa0f9d7cb7..b90ce8d38f 100644 --- a/src/frontends/qt4/GuiDocument.cpp +++ b/src/frontends/qt4/GuiDocument.cpp @@ -1892,22 +1892,22 @@ namespace { if (v.size() == 0) return docstring(); if (v.size() == 1) - return from_utf8(v[0]); + return _(v[0]); if (v.size() == 2) { docstring retval = _("%1$s and %2$s"); retval = subst(retval, _("and"), s); - return bformat(retval, from_utf8(v[0]), from_utf8(v[1])); + return bformat(retval, _(v[0]), _(v[1])); } // The idea here is to format all but the last two items... int const vSize = v.size(); docstring t2 = _("%1$s, %2$s"); - docstring retval = from_utf8(v[0]); + docstring retval = _(v[0]); for (int i = 1; i < vSize - 2; ++i) - retval = bformat(t2, retval, from_utf8(v[i])); + retval = bformat(t2, retval, _(v[i])); //...and then to plug them, and the last two, into this schema docstring t = _("%1$s, %2$s, and %3$s"); t = subst(t, _("and"), s); - return bformat(t, retval, from_utf8(v[vSize - 2]), from_utf8(v[vSize - 1])); + return bformat(t, retval, _(v[vSize - 2]), _(v[vSize - 1])); } vector idsToNames(vector const & idList)