From f28f639e1513d909597b5abef796608f04b7ebc5 Mon Sep 17 00:00:00 2001 From: Harald Judt Date: Wed, 16 Jan 2013 14:00:20 +0100 Subject: Config dialog: Fix untranslatable strings and accelerators (bug #9770). --- panel-plugin/weather-config.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/panel-plugin/weather-config.c b/panel-plugin/weather-config.c index 15f3f79..6e91849 100644 --- a/panel-plugin/weather-config.c +++ b/panel-plugin/weather-config.c @@ -1179,7 +1179,7 @@ create_appearance_page(xfceweather_dialog *dialog) /* number of days shown in forecast */ hbox = gtk_hbox_new(FALSE, BORDER); - ADD_LABEL(_("_Number of forecast _days:"), sg); + ADD_LABEL(_("_Number of forecast days:"), sg); ADD_SPIN(dialog->spin_forecast_days, 1, MAX_FORECAST_DAYS, 1, (dialog->pd->forecast_days ? dialog->pd->forecast_days : 5), 0, NULL); @@ -1688,7 +1688,7 @@ create_scrollbox_page(xfceweather_dialog *dialog) /* show scrollbox */ hbox = gtk_hbox_new(FALSE, BORDER); dialog->check_scrollbox_show = - gtk_check_button_new_with_mnemonic("Show scroll_box"); + gtk_check_button_new_with_mnemonic(_("Show scroll_box")); SET_TOOLTIP(dialog->check_scrollbox_show, _("Hide the scrollbox to save valuable space on the panel. " "Most interesting information is also provided in the " @@ -1701,7 +1701,7 @@ create_scrollbox_page(xfceweather_dialog *dialog) dialog->pd->show_scrollbox); /* values to show at once (multiple lines) */ - label = gtk_label_new_with_mnemonic(_("L_ines:")); + label = gtk_label_new_with_mnemonic(_("Li_nes:")); gtk_misc_set_alignment(GTK_MISC(label), 1, 0.5); gtk_box_pack_start(GTK_BOX(hbox), label, TRUE, TRUE, 0); ADD_SPIN(dialog->spin_scrollbox_lines, 1, MAX_SCROLLBOX_LINES, 1, @@ -1756,7 +1756,7 @@ create_scrollbox_page(xfceweather_dialog *dialog) gtk_tree_view_new_with_model(GTK_TREE_MODEL(dialog->model_datatypes)); renderer = gtk_cell_renderer_text_new(); column = - gtk_tree_view_column_new_with_attributes(_("Labels to _display"), + gtk_tree_view_column_new_with_attributes(_("Labels to d_isplay"), renderer, "text", 0, NULL); SET_TOOLTIP(dialog->list_datatypes, _("These are the values that will be shown in the scrollbox. " @@ -1766,7 +1766,7 @@ create_scrollbox_page(xfceweather_dialog *dialog) gtk_widget_set_size_request(dialog->options_datatypes, 300, -1); /* button "add" */ - ADD_LABEL_EDIT_BUTTON(button_add, _("_Add"), + ADD_LABEL_EDIT_BUTTON(button_add, _("A_dd"), GTK_STOCK_ADD, button_add_option_clicked); SET_TOOLTIP(button_add, _("Add the selected value to the labels that should be " @@ -1792,7 +1792,7 @@ create_scrollbox_page(xfceweather_dialog *dialog) gtk_table_attach_defaults(GTK_TABLE(table), button_del, 0, 1, 0, 1); /* button "move up" */ - ADD_LABEL_EDIT_BUTTON(button_up, _("Move _up"), + ADD_LABEL_EDIT_BUTTON(button_up, _("Move u_p"), GTK_STOCK_GO_UP, button_up_option_clicked); SET_TOOLTIP(button_up, _("Move the selected value up in the list of labels " @@ -1800,7 +1800,7 @@ create_scrollbox_page(xfceweather_dialog *dialog) gtk_table_attach_defaults(GTK_TABLE(table), button_up, 0, 1, 2, 3); /* button "move down" */ - ADD_LABEL_EDIT_BUTTON(button_down, _("Move _down"), + ADD_LABEL_EDIT_BUTTON(button_down, _("Move do_wn"), GTK_STOCK_GO_DOWN, button_down_option_clicked); SET_TOOLTIP(button_down, _("Move the selected value down in the list of labels " @@ -1959,16 +1959,16 @@ create_config_dialog(plugin_data *data, dialog->notebook = gtk_notebook_new(); gtk_notebook_append_page(GTK_NOTEBOOK(dialog->notebook), create_location_page(dialog), - gtk_label_new_with_mnemonic("_Location")); + gtk_label_new_with_mnemonic(_("_Location"))); gtk_notebook_append_page(GTK_NOTEBOOK(dialog->notebook), create_units_page(dialog), - gtk_label_new_with_mnemonic("_Units")); + gtk_label_new_with_mnemonic(_("_Units"))); gtk_notebook_append_page(GTK_NOTEBOOK(dialog->notebook), create_appearance_page(dialog), - gtk_label_new_with_mnemonic("_Appearance")); + gtk_label_new_with_mnemonic(_("_Appearance"))); gtk_notebook_append_page(GTK_NOTEBOOK(dialog->notebook), create_scrollbox_page(dialog), - gtk_label_new_with_mnemonic("_Scrollbox")); + gtk_label_new_with_mnemonic(_("_Scrollbox"))); setup_notebook_signals(dialog); gtk_box_pack_start(GTK_BOX(vbox), dialog->notebook, TRUE, TRUE, 0); gtk_widget_show(GTK_WIDGET(vbox)); -- 1.8.1.1