commit 0df51f0f85532d9b50dd1f7c878cf6e1b593d2f5
Author: Juergen Spitzmueller <[email protected]>
Date: Sat Jan 27 10:57:33 2018 +0100
Make GUI string translatable
Part of #10999
(cherry picked from commit 26755a015e1fbeccd96848ea873c5c4dc6de0aa8)
---
src/frontends/qt4/GuiBox.cpp | 4 ++--
status.22x | 2 ++
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/frontends/qt4/GuiBox.cpp b/src/frontends/qt4/GuiBox.cpp
index e4d4256..ee407ec 100644
--- a/src/frontends/qt4/GuiBox.cpp
+++ b/src/frontends/qt4/GuiBox.cpp
@@ -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
diff --git a/status.22x b/status.22x
index d641a7a..a5af805 100644
--- a/status.22x
+++ b/status.22x
@@ -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