Author: jsrain Date: Tue Dec 11 17:13:23 2007 New Revision: 42975 URL: http://svn.opensuse.org/viewcvs/yast?rev=42975&view=rev Log: do not translate boot menu to unsupported language (#310459) Modified: branches/SuSE-SLE-10-SP2-Branch/bootloader/VERSION branches/SuSE-SLE-10-SP2-Branch/bootloader/package/yast2-bootloader.changes branches/SuSE-SLE-10-SP2-Branch/bootloader/src/modules/GfxMenu.ycp Modified: branches/SuSE-SLE-10-SP2-Branch/bootloader/VERSION URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-SLE-10-SP2-Branch/bootloader/VERSION?rev=42975&r1=42974&r2=42975&view=diff ============================================================================== --- branches/SuSE-SLE-10-SP2-Branch/bootloader/VERSION (original) +++ branches/SuSE-SLE-10-SP2-Branch/bootloader/VERSION Tue Dec 11 17:13:23 2007 @@ -1 +1 @@ -2.13.147 +2.13.149 Modified: branches/SuSE-SLE-10-SP2-Branch/bootloader/package/yast2-bootloader.changes URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-SLE-10-SP2-Branch/bootloader/package/yast2-bootloader.changes?rev=42975&r1=42974&r2=42975&view=diff ============================================================================== --- branches/SuSE-SLE-10-SP2-Branch/bootloader/package/yast2-bootloader.changes (original) +++ branches/SuSE-SLE-10-SP2-Branch/bootloader/package/yast2-bootloader.changes Tue Dec 11 17:13:23 2007 @@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Tue Dec 11 16:26:18 CET 2007 - jsrain@suse.cz + +- do not translate boot menu to unsupported language (#310459) +- 2.13.149 +------------------------------------------------------------------- Wed Dec 5 11:15:12 CET 2007 - jsrain@suse.cz - fixed the device map proposal if USB stick is present (F#302075) Modified: branches/SuSE-SLE-10-SP2-Branch/bootloader/src/modules/GfxMenu.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-SLE-10-SP2-Branch/bootloader/src/modules/GfxMenu.ycp?rev=42975&r1=42974&r2=42975&view=diff ============================================================================== --- branches/SuSE-SLE-10-SP2-Branch/bootloader/src/modules/GfxMenu.ycp (original) +++ branches/SuSE-SLE-10-SP2-Branch/bootloader/src/modules/GfxMenu.ycp Tue Dec 11 17:13:23 2007 @@ -345,6 +345,7 @@ string tmpdir = (string)SCR::Read (.target.tmpdir); string lang_params = ""; + boolean lang_supported = true; list<string> selected = []; foreach (string lang, languages, { @@ -358,6 +359,10 @@ if (! (contains (helps, lang_short) || contains (texts, lang_short))) { y2milestone ("Language %1 is not supported by gfxmenu", lang_short); + // rather avoid all translations; non-supported characters don't show + // in the future, the menu should be translated into selected language, + // not only into the system language + lang_supported = false; } else if (! (contains (selected, lang) || contains (selected, lang_short))) @@ -378,6 +383,11 @@ }); string trans_str = mergestring (trans_list, "\n"); trans_str = trans_str + "\n"; + if (! lang_supported) + { + y2milestone ("Avoiding providing bootloader menu translations"); + trans_str = ""; + } SCR::Write (.target.string, trans_file, trans_str); if (lang_params == "") lang_params = "en_EN en"; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org