[gnome-shell] dateMenu: Mark string for translation



commit 034e59af2d7f9f2f147e2a6112315fdc315752de
Author: Florian Müllner <fmuellner gnome org>
Date:   Sat Mar 19 21:15:50 2022 +0100

    dateMenu: Mark string for translation
    
    T_() is a convenience shortcut for looking up a string from the
    locale defined by LC_TIME, but it isn't recognized as a gettext
    keyword. To do that, we also have to wrap the string in N_() or
    NC_().
    
    Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2246>

 js/ui/dateMenu.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/js/ui/dateMenu.js b/js/ui/dateMenu.js
index 36fcc10ef0..71b932ad71 100644
--- a/js/ui/dateMenu.js
+++ b/js/ui/dateMenu.js
@@ -219,7 +219,7 @@ class EventsSection extends St.Button {
                 /* Translators: Shown in calendar event list as the start/end of events
                  * that only show day and month
                  */
-                format = T_('%m/%d');
+                format = T_(N_('%m/%d'));
             else
                 format = '%x';
 


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