changeset 26787:1ff470c9e9c2 stable

Mark strings for translation in variable editor (bug #55772). * variable-editor.cc (variable_editor_view::createColumnMenu, variable_editor_view::createRowMenu): Use tr() wrapper around static strings rather than code which evaluates to string.
author Rik <rik@octave.org>
date Sun, 24 Feb 2019 22:02:04 -0800
parents bb3a441addb0
children 69a270a9bbfb
files libgui/src/variable-editor.cc
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libgui/src/variable-editor.cc	Sun Feb 24 21:22:49 2019 +0100
+++ b/libgui/src/variable-editor.cc	Sun Feb 24 22:02:04 2019 -0800
@@ -668,7 +668,7 @@
       }
 
     QString column_string
-      = tr (column_selection_count > 1 ? " columns" : " column");
+      = column_selection_count > 1 ? tr (" columns") : tr (" column");
 
     QMenu *menu = new QMenu (this);
 
@@ -715,7 +715,7 @@
         rowselection_count = 1;
       }
 
-    QString row_string = tr (rowselection_count > 1 ? " rows" : " row");
+    QString row_string = rowselection_count > 1 ? tr (" rows") : tr (" row");
 
     QMenu *menu = new QMenu (this);