Michael Gerz wrote:
The problem is the double \\ which is collapsed into a single \ somewhere in your code. However, in the po files we assume that the message has two \\ . Therefore, the internal message and the translation do not match => no translation.
the attached then?
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 = _(string("\\") + 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); }