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
This commit is contained in:
Enrico Forestieri 2008-08-15 10:56:53 +00:00
parent 10585e780c
commit 2566c9496d

View File

@ -15,10 +15,11 @@
#include "FuncRequest.h" #include "FuncRequest.h"
#include "Lexer.h" #include "Lexer.h"
#include "LyXAction.h" #include "LyXAction.h"
#include "support/lstrings.h" #include "qt_helpers.h"
#include "support/debug.h" #include "support/debug.h"
#include "support/gettext.h" #include "support/gettext.h"
#include "support/lstrings.h"
#include <boost/bind.hpp> #include <boost/bind.hpp>
@ -94,7 +95,7 @@ ToolbarInfo & ToolbarInfo::read(Lexer & lex)
name = lex.getString(); name = lex.getString();
lex.next(true); lex.next(true);
gui_name = lex.getString(); gui_name = fromqstr(qt_(lex.getString()));
// FIXME what to do here? // FIXME what to do here?
if (!lex) { if (!lex) {
@ -304,7 +305,8 @@ void Toolbars::readToolbarSettings(Lexer & lex)
if (visibility >= MATH) { if (visibility >= MATH) {
if (ToolbarInfo const * ti = info(name)) if (ToolbarInfo const * ti = info(name))
const_cast<ToolbarInfo *>(ti)->gui_name += " (auto)"; const_cast<ToolbarInfo *>(ti)->gui_name +=
fromqstr(" (" + qt_("auto") + ")");
} }
} }
} }