diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2006-04-25 03:44:57 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2006-04-25 03:44:57 +0000 |
commit | 8b51038be372cebd04ccf40af27666064dd064b7 (patch) | |
tree | b712ee14f9e499eb6c6039ab2f51193ba138c01b /gtk/gtkpapersize.c | |
parent | eee5ae75685181d357f4485681068b4c7d86c6ec (diff) | |
download | gtk+-8b51038be372cebd04ccf40af27666064dd064b7.tar.gz |
Add prefixes to msgids for paper sizes
Diffstat (limited to 'gtk/gtkpapersize.c')
-rw-r--r-- | gtk/gtkpapersize.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gtk/gtkpapersize.c b/gtk/gtkpapersize.c index f97d33bb8f..c11a822fb9 100644 --- a/gtk/gtkpapersize.c +++ b/gtk/gtkpapersize.c @@ -462,10 +462,15 @@ gtk_paper_size_get_name (GtkPaperSize *size) G_CONST_RETURN gchar * gtk_paper_size_get_display_name (GtkPaperSize *size) { + const gchar *display_name; + if (size->display_name) return size->display_name; + g_assert (size->info != NULL); - return gettext (paper_names + size->info->display_name); + + display_name = paper_names + size->info->display_name; + return g_strip_context (display_name, gettext (display_name)); } /** |