[gnome-clocks/zbrown/day-symbol-l10n: 3/3] l10n: actually use translated symbol



commit 60b61dd263079154caaeff2220c1990548a88252
Author: Zander Brown <zbrown gnome org>
Date:   Tue May 12 10:49:45 2020 +0100

    l10n: actually use translated symbol
    
    Don't know what past self was thinking here
    
    Fix https://gitlab.gnome.org/GNOME/gnome-clocks/-/issues/108

 src/utils.vala | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/utils.vala b/src/utils.vala
index 68f0a4f..79c2e20 100644
--- a/src/utils.vala
+++ b/src/utils.vala
@@ -155,19 +155,19 @@ public class Weekdays {
 
         private const string[] SYMBOLS = {
             // Translators: This is used in the repeat toggle for Monday
-            NC_("Repeat|Monday", "M"),
+            NC_("Alarm|Repeat-On", "M"),
             // Translators: This is used in the repeat toggle for Tuesday
-            NC_("Repeat|Tuesday", "T"),
+            NC_("Alarm|Repeat-On", "T"),
             // Translators: This is used in the repeat toggle for Wednesday
-            NC_("Repeat|Wednesday", "W"),
+            NC_("Alarm|Repeat-On", "W"),
             // Translators: This is used in the repeat toggle for Thursday
-            NC_("Repeat|Thursday", "T"),
+            NC_("Alarm|Repeat-On", "T"),
             // Translators: This is used in the repeat toggle for Friday
-            NC_("Repeat|Friday", "F"),
+            NC_("Alarm|Repeat-On", "F"),
             // Translators: This is used in the repeat toggle for Saturday
-            NC_("Repeat|Saturday", "S"),
+            NC_("Alarm|Repeat-On", "S"),
             // Translators: This is used in the repeat toggle for Sunday
-            NC_("Repeat|Sunday", "S")
+            NC_("Alarm|Repeat-On", "S")
         };
 
         private const string[] PLURALS = {
@@ -181,7 +181,7 @@ public class Weekdays {
         };
 
         public string symbol () {
-            return _(SYMBOLS[this]);
+            return dpgettext2 (null, "Alarm|Repeat-On", SYMBOLS[this]);
         }
 
         public string plural () {


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