]> git.lyx.org Git - features.git/commitdiff
* qt4/QExternal.C:
authorMichael Schmitt <michael.schmitt@teststep.org>
Sun, 3 Dec 2006 01:11:37 +0000 (01:11 +0000)
committerMichael Schmitt <michael.schmitt@teststep.org>
Sun, 3 Dec 2006 01:11:37 +0000 (01:11 +0000)
* qt4/lengthcombo.C:
* qt4/QBox.C: make length units translateable

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16149 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/QBox.C
src/frontends/qt4/QExternal.C
src/frontends/qt4/lengthcombo.C

index 64db6c3f388a38b416bd32ebb7d808140affd87e..262900d3065e85695859213b60f08262d4aeee1e 100644 (file)
@@ -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]));
        }
 }
 
index 3df19563756f525dfb8d80b8c87ce19d7278e4c6..48e01e8be38f8335eb14c135e0c5ae0de2e34784 100644 (file)
@@ -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]));
 }
 
 
index d4e85931c6fc154ba31c97e2499ef982b51b2fd2..030c63e1661763678b643ff10548a63100c57a3c 100644 (file)
 #include <config.h>
 
 #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)));