[gnome-shell] shell-util: Hide week_start string from xgettext



commit 857cb9c5011000315a0966602b6c805298d7fb04
Author: Florian MÃllner <fmuellner gnome org>
Date:   Wed Sep 7 23:39:48 2011 +0200

    shell-util: Hide week_start string from xgettext
    
    The translation is taken from GTK+, so translations in the gnome-shell
    domain are pointless - hide the string, so that it is not extracted
    by xgettext.

 src/shell-util.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/shell-util.c b/src/shell-util.c
index e6af2ab..d371861 100644
--- a/src/shell-util.c
+++ b/src/shell-util.c
@@ -597,7 +597,9 @@ shell_util_get_week_start ()
 
   week_start = (week_1stday + first_weekday - 1) % 7;
 #else
-  gtk_week_start = dgettext ("gtk30", "calendar:week_start:0");
+  /* Use a define to hide the string from xgettext */
+# define GTK_WEEK_START "calendar:week_start:0"
+  gtk_week_start = dgettext ("gtk30", GTK_WEEK_START);
 
   if (strncmp (gtk_week_start, "calendar:week_start:", 20) == 0)
     week_start = *(gtk_week_start + 20) - '0';



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