diff options
author | Owen Taylor <otaylor@redhat.com> | 2002-02-27 23:16:48 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2002-02-27 23:16:48 +0000 |
commit | 485c2a5350c14c947691db75a4b8b01cff47505b (patch) | |
tree | b8c0fb0f3935014ca6c144460f4637e3ca4f7fb8 /gtk | |
parent | 9cbf37990b543d07a63971b6a3b9d02b3ded7046 (diff) | |
download | gtk+-485c2a5350c14c947691db75a4b8b01cff47505b.tar.gz |
Mark <Control>, <Shift>, <Release>, <Alt> for translation.
Wed Feb 27 18:01:03 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkaccellabel.c (gtk_accelerator_name) po/POTFILES.in: Mark
<Control>, <Shift>, <Release>, <Alt> for translation.
* gtk/gtkfontsel.c: Mark PREVIEW_TEXT for translation.
(Vlad Harchev, #53223)
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkaccellabel.c | 21 | ||||
-rw-r--r-- | gtk/gtkfontsel.c | 4 |
2 files changed, 20 insertions, 5 deletions
diff --git a/gtk/gtkaccellabel.c b/gtk/gtkaccellabel.c index 0d3548d559..e81de1067a 100644 --- a/gtk/gtkaccellabel.c +++ b/gtk/gtkaccellabel.c @@ -108,9 +108,24 @@ gtk_accel_label_class_init (GtkAccelLabelClass *class) class->signal_quote1 = g_strdup ("<:"); class->signal_quote2 = g_strdup (":>"); - class->mod_name_shift = g_strdup ("Shift"); - class->mod_name_control = g_strdup ("Ctrl"); - class->mod_name_alt = g_strdup ("Alt"); + /* This is the text that should appear next to menu accelerators + * that use the shift key. If the text on this key isn't typically + * translated on keyboards used for your language, don't translate + * this. + */ + class->mod_name_shift = g_strdup (_("Shift")); + /* This is the text that should appear next to menu accelerators + * that use the control key. If the text on this key isn't typically + * translated on keyboards used for your language, don't translate + * this. + */ + class->mod_name_control = g_strdup (_("Ctrl")); + /* This is the text that should appear next to menu accelerators + * that use the alt key. If the text on this key isn't typically + * translated on keyboards used for your language, don't translate + * this. + */ + class->mod_name_alt = g_strdup (_("Alt")); class->mod_separator = g_strdup ("+"); class->accel_seperator = g_strdup (" / "); class->latin1_to_char = TRUE; diff --git a/gtk/gtkfontsel.c b/gtk/gtkfontsel.c index 43ec486540..853b368ee3 100644 --- a/gtk/gtkfontsel.c +++ b/gtk/gtkfontsel.c @@ -58,7 +58,7 @@ /* This is the default text shown in the preview entry, though the user can set it. Remember that some fonts only have capital letters. */ -#define PREVIEW_TEXT "abcdefghijk ABCDEFGHIJK" +#define PREVIEW_TEXT N_("abcdefghijk ABCDEFGHIJK") /* This is the initial and maximum height of the preview entry (it expands when large font sizes are selected). Initial height is also the minimum. */ @@ -997,7 +997,7 @@ gtk_font_selection_update_preview (GtkFontSelection *fontsel) /* This sets the preview text, if it hasn't been set already. */ text = gtk_entry_get_text (GTK_ENTRY (preview_entry)); if (strlen (text) == 0) - gtk_entry_set_text (GTK_ENTRY (preview_entry), PREVIEW_TEXT); + gtk_entry_set_text (GTK_ENTRY (preview_entry), _(PREVIEW_TEXT)); gtk_entry_set_position (GTK_ENTRY (preview_entry), 0); } |