From decd3ad66ac173f46db66bdc046041fbe2085bcf Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Tue, 30 Sep 2003 08:44:08 +0000 Subject: Use ngettext. 2003-09-30 Christian Persch * src/ephy-history-window.c: (build_search_box): Use ngettext. --- ChangeLog | 6 ++++++ src/ephy-history-window.c | 17 +++++++++++++---- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9e58521f1..11e10ef2d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2003-09-30 Christian Persch + + * src/ephy-history-window.c: (build_search_box): + + Use ngettext. + 2003-09-30 Christian Persch * embed/print-dialog.c: (print_get_info): diff --git a/src/ephy-history-window.c b/src/ephy-history-window.c index 2a64824aa..1758948d1 100644 --- a/src/ephy-history-window.c +++ b/src/ephy-history-window.c @@ -965,18 +965,27 @@ build_search_box (EphyHistoryWindow *editor) gtk_widget_show (optionmenu); menu = gtk_menu_new (); gtk_widget_show (menu); + item = gtk_menu_item_new_with_mnemonic (_("Today")); gtk_menu_shell_append (GTK_MENU_SHELL (menu), item); gtk_widget_show (item); - item = gtk_menu_item_new_with_mnemonic (_("Last two days")); + str = g_strdup_printf (ngettext ("Last %d day", "Last %d days", 2), 2); + item = gtk_menu_item_new_with_mnemonic (str); + g_free (str); gtk_menu_shell_append (GTK_MENU_SHELL (menu), item); gtk_widget_show (item); - item = gtk_menu_item_new_with_mnemonic (_("Last three days")); + str = g_strdup_printf (ngettext ("Last %d day", "Last %d days", 3), 3); + item = gtk_menu_item_new_with_mnemonic (str); + g_free (str); gtk_menu_shell_append (GTK_MENU_SHELL (menu), item); gtk_widget_show (item); - item = gtk_menu_item_new_with_mnemonic (_("Last ten days")); - gtk_widget_show (item); + /* keep this in sync with embed/ephy-history.c's HISTORY_PAGE_OBSOLETE_DAYS */ + str = g_strdup_printf (ngettext ("Last %d day", "Last %d days", 10), 10); + item = gtk_menu_item_new_with_mnemonic (str); + g_free (str); gtk_menu_shell_append (GTK_MENU_SHELL (menu), item); + gtk_widget_show (item); + gtk_option_menu_set_menu (GTK_OPTION_MENU (optionmenu), menu); str = eel_gconf_get_string (CONF_HISTORY_DATE_FILTER); -- cgit v1.2.3