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:
parent
09fa5d98c2
commit
857cb9c501
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user