diff --git a/src/frontends/qt4/QBox.C b/src/frontends/qt4/QBox.C index 64db6c3f38..262900d306 100644 --- a/src/frontends/qt4/QBox.C +++ b/src/frontends/qt4/QBox.C @@ -265,7 +265,7 @@ void QBox::setSpecial(bool ibox) } else if (ibox && has_special) { dialog_->widthUnitsLC->clear(); for (int i = 0; i < num_units; i++) - dialog_->widthUnitsLC->addItem(unit_name_gui[i]); + dialog_->widthUnitsLC->addItem(qt_(unit_name_gui[i])); } } diff --git a/src/frontends/qt4/QExternal.C b/src/frontends/qt4/QExternal.C index 3df1956375..48e01e8be3 100644 --- a/src/frontends/qt4/QExternal.C +++ b/src/frontends/qt4/QExternal.C @@ -338,7 +338,7 @@ void QExternal::build_dialog() // Fill the width combo dialog_->widthUnitCO->addItem(qt_("Scale%")); for (int i = 0; i < num_units; i++) - dialog_->widthUnitCO->addItem(unit_name_gui[i]); + dialog_->widthUnitCO->addItem(qt_(unit_name_gui[i])); } diff --git a/src/frontends/qt4/lengthcombo.C b/src/frontends/qt4/lengthcombo.C index d4e85931c6..030c63e166 100644 --- a/src/frontends/qt4/lengthcombo.C +++ b/src/frontends/qt4/lengthcombo.C @@ -12,15 +12,15 @@ #include #include "lengthcombo.h" - #include "lengthcommon.h" +#include "qt_helpers.h" LengthCombo::LengthCombo(QWidget * parent) : QComboBox(parent) { for (int i = 0; i < lyx::num_units; i++) - addItem(lyx::unit_name_gui[i]); + addItem(lyx::qt_(lyx::unit_name_gui[i])); connect(this, SIGNAL(activated(int)), this, SLOT(has_activated(int)));