From 490d923c81ec7fb222ca4d57bc799f72d461e496 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sat, 25 Dec 2004 16:43:22 +0000 Subject: Add context to ambiguous strings. Fixes bug #113932. 2004-12-25 Christian Persch * embed/ephy-encodings.c: (ephy_encodings_init): * lib/ephy-langs.c: * src/bookmarks/ephy-bookmarks.c: (ephy_bookmarks_init): * src/ephy-window.c: (show_embed_popup), (tab_context_menu_cb), (ephy_window_set_active_tab): * src/prefs-dialog.c: (create_fonts_language_menu): Add context to ambiguous strings. Fixes bug #113932. --- embed/ephy-encodings.c | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'embed') diff --git a/embed/ephy-encodings.c b/embed/ephy-encodings.c index ce8d87e90..922c31a49 100644 --- a/embed/ephy-encodings.c +++ b/embed/ephy-encodings.c @@ -140,16 +140,16 @@ encoding_entries [] = { N_("Unicode (UTF-_32 BE)"), "UTF-32BE", 0, FALSE }, { N_("Unicode (UTF-3_2 LE)"), "UTF-32LE", 0, FALSE }, - { N_("Off"), "", LG_NONE, TRUE }, - { N_("Chinese"), "zh_parallel_state_machine", LG_CHINESE_TRAD | LG_CHINESE_SIMP, TRUE }, - { N_("Chinese Simplified"), "zhcn_parallel_state_machine", LG_CHINESE_SIMP, TRUE }, - { N_("Chinese Traditional"), "zhtw_parallel_state_machine", LG_CHINESE_TRAD, TRUE }, - { N_("East Asian"), "cjk_parallel_state_machine", LG_CHINESE_TRAD | LG_CHINESE_SIMP | LG_JAPANESE | LG_KOREAN, TRUE }, - { N_("Japanese"), "ja_parallel_state_machine", LG_JAPANESE, TRUE }, - { N_("Korean"), "ko_parallel_state_machine", LG_KOREAN, TRUE }, - { N_("Russian"), "ruprob", LG_CYRILLIC | LG_UKRAINIAN, TRUE }, - { N_("Universal"), "universal_charset_detector", LG_ALL, TRUE }, - { N_("Ukrainian"), "ukprob", LG_UKRAINIAN, TRUE } + { N_("autodetectors|Off"), "", LG_NONE, TRUE }, + { N_("automatically detect ... character encodings|Chinese"), "zh_parallel_state_machine", LG_CHINESE_TRAD | LG_CHINESE_SIMP, TRUE }, + { N_("automatically detect ... character encodings|Simplified Chinese"), "zhcn_parallel_state_machine", LG_CHINESE_SIMP, TRUE }, + { N_("automatically detect ... character encodings|Traditional Chinese"), "zhtw_parallel_state_machine", LG_CHINESE_TRAD, TRUE }, + { N_("automatically detect ... character encodings|East Asian"), "cjk_parallel_state_machine", LG_CHINESE_TRAD | LG_CHINESE_SIMP | LG_JAPANESE | LG_KOREAN, TRUE }, + { N_("automatically detect ... character encodings|Japanese"), "ja_parallel_state_machine", LG_JAPANESE, TRUE }, + { N_("automatically detect ... character encodings|Korean"), "ko_parallel_state_machine", LG_KOREAN, TRUE }, + { N_("automatically detect ... character encodings|Russian"), "ruprob", LG_CYRILLIC | LG_UKRAINIAN, TRUE }, + { N_("automatically detect ... character encodings|Universal"), "universal_charset_detector", LG_ALL, TRUE }, + { N_("automatically detect ... character encodings|Ukrainian"), "ukprob", LG_UKRAINIAN, TRUE } }; static const guint n_encoding_entries = G_N_ELEMENTS (encoding_entries); @@ -478,7 +478,9 @@ ephy_encodings_init (EphyEncodings *encodings) for (i = 0; i < n_encoding_entries; i++) { add_encoding (encodings, - _(encoding_entries[i].title), + encoding_entries[i].is_autodetector + ? Q_(encoding_entries[i].title) + : _(encoding_entries[i].title), encoding_entries[i].code, encoding_entries[i].groups, encoding_entries[i].is_autodetector); -- cgit v1.2.3