diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2003-09-30 16:44:08 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2003-09-30 16:44:08 +0800 |
commit | decd3ad66ac173f46db66bdc046041fbe2085bcf (patch) | |
tree | 2591d43f9aa76e0395f9ec9bfa14d018a72849a2 /src/ephy-history-window.c | |
parent | 838ad96bb4a7b35ee9e04bde8ec888f95f07d573 (diff) | |
download | gsoc2013-epiphany-decd3ad66ac173f46db66bdc046041fbe2085bcf.tar gsoc2013-epiphany-decd3ad66ac173f46db66bdc046041fbe2085bcf.tar.gz gsoc2013-epiphany-decd3ad66ac173f46db66bdc046041fbe2085bcf.tar.bz2 gsoc2013-epiphany-decd3ad66ac173f46db66bdc046041fbe2085bcf.tar.lz gsoc2013-epiphany-decd3ad66ac173f46db66bdc046041fbe2085bcf.tar.xz gsoc2013-epiphany-decd3ad66ac173f46db66bdc046041fbe2085bcf.tar.zst gsoc2013-epiphany-decd3ad66ac173f46db66bdc046041fbe2085bcf.zip |
Use ngettext.
2003-09-30 Christian Persch <chpe@cvs.gnome.org>
* src/ephy-history-window.c: (build_search_box):
Use ngettext.
Diffstat (limited to 'src/ephy-history-window.c')
-rw-r--r-- | src/ephy-history-window.c | 17 |
1 files changed, 13 insertions, 4 deletions
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); |