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.
This commit is contained in:
Florian Müllner 2011-09-07 23:39:48 +02:00
parent 09fa5d98c2
commit 857cb9c501

View File

@ -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';