Mark the text of the location label as translatable.

2006-07-16  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkfilechooserdefault.c (browse_widgets_create): Mark
	the text of the location label as translatable.
This commit is contained in:
Matthias Clasen 2006-07-17 03:17:24 +00:00 committed by Matthias Clasen
parent 9117834e20
commit c3741c0038
3 changed files with 11 additions and 2 deletions

View File

@ -1,5 +1,8 @@
2006-07-16 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserdefault.c (browse_widgets_create): Mark
the text of the location label as translatable.
* gtk/gtkprintjob.c (gtk_print_job_send): Fix a typo in
the docs. (#347211, Kouhei Sutou)

View File

@ -1,5 +1,8 @@
2006-07-16 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserdefault.c (browse_widgets_create): Mark
the text of the location label as translatable.
* gtk/gtkprintjob.c (gtk_print_job_send): Fix a typo in
the docs. (#347211, Kouhei Sutou)

View File

@ -4521,6 +4521,7 @@ browse_widgets_create (GtkFileChooserDefault *impl)
GtkWidget *hpaned;
GtkWidget *widget;
GtkSizeGroup *size_group;
gchar *text;
/* size group is used by the [+][-] buttons and the filter combo */
size_group = gtk_size_group_new (GTK_SIZE_GROUP_VERTICAL);
@ -4551,8 +4552,10 @@ browse_widgets_create (GtkFileChooserDefault *impl)
impl->location_entry_box = gtk_hbox_new (FALSE, 12);
gtk_box_pack_start (GTK_BOX (vbox), impl->location_entry_box, FALSE, FALSE, 0);
impl->location_label = gtk_label_new_with_mnemonic ("<b>_Location:</b>");
text = g_strconcat ("<b>", _("_Location:"), "</b>", NULL);
impl->location_label = gtk_label_new_with_mnemonic (text);
g_free (text);
gtk_label_set_use_markup (GTK_LABEL (impl->location_label), TRUE);
gtk_widget_show (impl->location_label);
gtk_box_pack_start (GTK_BOX (impl->location_entry_box), impl->location_label, FALSE, FALSE, 0);