]> git.lyx.org Git - features.git/commitdiff
Make GUI string translatable
authorJuergen Spitzmueller <spitz@lyx.org>
Sat, 27 Jan 2018 09:57:33 +0000 (10:57 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Sat, 27 Jan 2018 17:29:46 +0000 (18:29 +0100)
Part of #10999

(cherry picked from commit 26755a015e1fbeccd96848ea873c5c4dc6de0aa8)

src/frontends/qt4/GuiBox.cpp

index 3d1010b690fd57c178d7f7fc76d8ebdeadb43b1b..6a991b5df5063e4fc6a61827c70397038ed76466 100644 (file)
@@ -340,7 +340,7 @@ void GuiBox::paramsToDialog(Inset const * inset)
        // add the entry "Stretch" if the box is \makebox or \framebox and if not already there
        if ((inner_type == "makebox" || (type == "Boxed" && inner_type == "none"))
                && halignCO->count() < 4)
-               halignCO->addItem(toqstr("Stretch"));
+               halignCO->addItem(qt_("Stretch"));
        else if (inner_type != "makebox" && (type != "Boxed" && inner_type != "none"))
                halignCO->removeItem(3);
        // pagebreak is only allowed for Boxed without inner box
@@ -555,7 +555,7 @@ bool GuiBox::checkWidgets(bool readonly) const
                // add the entry "Stretch" if the box is \makebox or \framebox and if not already there
                if ((itype == "makebox" || (outer == "Boxed" && itype == "none"))
                        && halignCO->count() < 4)
-                       halignCO->addItem(toqstr("Stretch"));
+                       halignCO->addItem(qt_("Stretch"));
                else if (itype != "makebox" && (outer != "Boxed" && itype != "none"))
                        halignCO->removeItem(3);
                // pagebreak is only allowed for Boxed without inner box