From 2566c9496d6c0dd89373e96257cb1e724019edab Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Fri, 15 Aug 2008 10:56:53 +0000 Subject: [PATCH] Fix bug 5172: Toolbar names are not translated http://bugzilla.lyx.org/show_bug.cgi?id=5172 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26171 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/Toolbars.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/frontends/qt4/Toolbars.cpp b/src/frontends/qt4/Toolbars.cpp index 3a335fe495..72fc4a7c88 100644 --- a/src/frontends/qt4/Toolbars.cpp +++ b/src/frontends/qt4/Toolbars.cpp @@ -15,10 +15,11 @@ #include "FuncRequest.h" #include "Lexer.h" #include "LyXAction.h" -#include "support/lstrings.h" +#include "qt_helpers.h" #include "support/debug.h" #include "support/gettext.h" +#include "support/lstrings.h" #include @@ -94,7 +95,7 @@ ToolbarInfo & ToolbarInfo::read(Lexer & lex) name = lex.getString(); lex.next(true); - gui_name = lex.getString(); + gui_name = fromqstr(qt_(lex.getString())); // FIXME what to do here? if (!lex) { @@ -304,7 +305,8 @@ void Toolbars::readToolbarSettings(Lexer & lex) if (visibility >= MATH) { if (ToolbarInfo const * ti = info(name)) - const_cast(ti)->gui_name += " (auto)"; + const_cast(ti)->gui_name += + fromqstr(" (" + qt_("auto") + ")"); } } } -- 2.39.2