[gnome-calculator] math-window: Drop the Mode suffix



commit 194fad9a8fd53203874c183aff5d1273dbeed4eb
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Mon Mar 29 14:36:45 2021 +0200

    math-window: Drop the Mode suffix
    
    It makes the UI more verbose and busy for no reason.

 src/math-window.vala  | 10 +++++-----
 src/ui/math-window.ui | 10 +++++-----
 2 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/src/math-window.vala b/src/math-window.vala
index 9b3bc2ad..e0f7c444 100644
--- a/src/math-window.vala
+++ b/src/math-window.vala
@@ -87,27 +87,27 @@ public class MathWindow : Hdy.ApplicationWindow
         {
         default:
         case ButtonMode.BASIC:
-            mode_label.label = _("Basic Mode");
+            mode_label.label = _("Basic");
             action.set_state (new Variant.string ("basic"));
             break;
 
         case ButtonMode.ADVANCED:
-            mode_label.label = _("Advanced Mode");
+            mode_label.label = _("Advanced");
             action.set_state (new Variant.string ("advanced"));
             break;
 
         case ButtonMode.FINANCIAL:
-            mode_label.label = _("Financial Mode");
+            mode_label.label = _("Financial");
             action.set_state (new Variant.string ("financial"));
             break;
 
         case ButtonMode.PROGRAMMING:
-            mode_label.label = _("Programming Mode");
+            mode_label.label = _("Programming");
             action.set_state (new Variant.string ("programming"));
             break;
 
         case ButtonMode.KEYBOARD:
-            mode_label.label = _("Keyboard Mode");
+            mode_label.label = _("Keyboard");
             action.set_state (new Variant.string ("keyboard"));
             break;
         }
diff --git a/src/ui/math-window.ui b/src/ui/math-window.ui
index 164a52e9..bdd4abdf 100644
--- a/src/ui/math-window.ui
+++ b/src/ui/math-window.ui
@@ -17,27 +17,27 @@
   <menu id="window_menu">
     <section>
       <item>
-        <attribute name="label" translatable="yes">Basic Mode</attribute>
+        <attribute name="label" translatable="yes">Basic</attribute>
         <attribute name="action">win.mode</attribute>
         <attribute name="target">basic</attribute>
       </item>
       <item>
-        <attribute name="label" translatable="yes">Advanced Mode</attribute>
+        <attribute name="label" translatable="yes">Advanced</attribute>
         <attribute name="action">win.mode</attribute>
         <attribute name="target">advanced</attribute>
       </item>
       <item>
-        <attribute name="label" translatable="yes">Financial Mode</attribute>
+        <attribute name="label" translatable="yes">Financial</attribute>
         <attribute name="action">win.mode</attribute>
         <attribute name="target">financial</attribute>
       </item>
       <item>
-        <attribute name="label" translatable="yes">Programming Mode</attribute>
+        <attribute name="label" translatable="yes">Programming</attribute>
         <attribute name="action">win.mode</attribute>
         <attribute name="target">programming</attribute>
       </item>
        <item>
-        <attribute name="label" translatable="yes">Keyboard Mode</attribute>
+        <attribute name="label" translatable="yes">Keyboard</attribute>
         <attribute name="action">win.mode</attribute>
         <attribute name="target">keyboard</attribute>
       </item>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]