From 7c9548a4dd03b6a38ace3a2e6812952742319c3b Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 27 Jan 2009 17:30:27 +0000 Subject: dynamic renaming of bootloader entries - rename "linux" to "Boot Mandriva Linux 2009 Spring" - rename "windows" to "Boot Microsoft Windows" - rename "2.6.xx" to "Linux with kernel 2.6.xx" - replace "Installation" with "Install Mandriva Linux 2009 Spring" --- po/bootloader.pot | 15 ++++++++++++++- src/common.inc | 8 ++++++-- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/po/bootloader.pot b/po/bootloader.pot index 849c213..21781d3 100644 --- a/po/bootloader.pot +++ b/po/bootloader.pot @@ -31,8 +31,21 @@ msgstr "" msgid "Continue" msgstr "" +#. txt_linux +msgid "Boot Mandriva Linux 2009 Spring" +msgstr "" + +#. txt_windows +msgid "Boot Microsoft Windows" +msgstr "" + +#. txt_linux_kernel_version +#, c-format +msgid "Linux with kernel %s" +msgstr "" + #. txt_install -msgid "Installation" +msgid "Install Mandriva Linux 2009 Spring" msgstr "" #. txt_manual_install diff --git a/src/common.inc b/src/common.inc index 7a7ba6b..cf6bc2e 100644 --- a/src/common.inc +++ b/src/common.inc @@ -875,6 +875,8 @@ } def +/kernel_str 256 string def + % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - % ( text ) == > ( new_text ) /menuitemmap { @@ -908,9 +910,11 @@ dup "mediachk" eq { pop txt_mediacheck return } if dup "mediacheck" eq { pop txt_mediacheck return } if } { - dup "linux" eq { pop "Linux" return } if + dup "linux" eq { pop txt_linux return } if dup "failsafe" eq { pop txt_safe_linux return } if - dup "windows" eq { pop "Windows" return } if + dup "windows" eq { pop txt_windows return } if + dup "2.6" strstr 1 eq { txt_linux_kernel_version kernel_str sprintf + kernel_str return } if } ifelse } def -- cgit v1.2.1