Michael Gerz wrote:
Edwin,

I remerged the po files using scons. Afterwards, I saw hundreds of entries like

#: lib/ui/stdtoolbars.inc:266
msgid "Scriptscript (smaller) style\t\\\\scriptscriptstyle"
msgstr "Scriptscript-Stil (kleiner)\t\\\\scriptscriptstyle"

However, the German translations are not shown in the math panel toolbar.

Any idea what goes wrong?

does the attached solve it?

am not a champ at this translation business (although i switch between dutch, english and french on a daily basis)

maybe more knowledgeable people can chime in?
Index: src/frontends/qt4/QLToolbar.C
===================================================================
--- src/frontends/qt4/QLToolbar.C       (revision 17893)
+++ src/frontends/qt4/QLToolbar.C       (working copy)
@@ -220,11 +220,12 @@
                ToolbarInfo::item_iterator const end = tbb.items.end();
                for (; it != end; ++it) 
                        if (!lyx::getStatus(it->func_).unknown()) {
+                               docstring const label = _(to_utf8(it->label_));
                                Action * action = new Action(owner_,
                                        getIcon(it->func_),
-                                       it->label_,
+                                       label,
                                        it->func_,
-                                       it->label_);
+                                       label);
                                panel->addButton(action);
                                ActionVector.push_back(action);
                                // use the icon of first action for the toolbar 
button
@@ -254,11 +255,12 @@
                ToolbarInfo::item_iterator const end = tbb.items.end();
                for (; it != end; ++it)
                        if (!lyx::getStatus(it->func_).unknown()) {
+                               docstring const label = _(to_utf8(it->label_));
                                Action * action = new Action(owner_,
                                        getIcon(it->func_, false),
-                                       it->label_,
+                                       label,
                                        it->func_,
-                                       it->label_);
+                                       label);
                                m->add(action);
                                ActionVector.push_back(action);
                        }

Reply via email to