]> 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>
Sun, 28 Jan 2018 07:49:37 +0000 (08:49 +0100)
Part of #10999

(cherry picked from commit 26755a015e1fbeccd96848ea873c5c4dc6de0aa8)

src/frontends/qt4/GuiBox.cpp
status.22x

index e4d425692a7e93e1ca4d5e4fc0022099decc3367..ee407ec26f63a04c5c54bdc875d5937e263f5e38 100644 (file)
@@ -341,7 +341,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
@@ -556,7 +556,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
index d641a7a1c3df638fdef47a97a93725e6e67a589d..a5af805b13fcd2c4f579e408006b9b05a2e9d70e 100644 (file)
@@ -142,6 +142,8 @@ What's new
 
 - Enable OK/Apply buttons when resetting to class defaults.
 
+- Fix untranslated GUI string in Box dialog (bug 10999).
+
 
 * INTERNALS