From 64883e34b1e44a60de1833c9efee1c0647c16b94 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Tue, 4 Sep 2018 21:35:12 +0200 Subject: Make the default language of the Live ISO configurable Added a new parameter to 'make_slackware_live.sh' script: -l For example, create a liveslak ISO with dutch as the default language instead of US english: # ./make_slackware_live.sh -l nl Using this parameter you can onfigure a different default language for the resulting ISO image. The default localization if you do not supply this parameter remains "us" as before. The boot menu offers a selection of other languages/localizations to pick from (currently you can select any of 'be br da gb de de_ch es fr fr_ch it ja nl pt ru se us') but now you can create your own brand of liveslak ISO with your own language as the default. --- grub.tpl | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'grub.tpl') diff --git a/grub.tpl b/grub.tpl index 6c87a06..bc3a780 100644 --- a/grub.tpl +++ b/grub.tpl @@ -9,19 +9,19 @@ set timeout=20 # Slackware Live defaults, can be changed in submenus: if [ -z "$sl_kbd" ]; then - set sl_kbd="us" + set sl_kbd="@KBD@" export sl_kbd fi if [ -z "$sl_tz" ]; then - set sl_tz="US/Pacific" + set sl_tz="@TZ@" export sl_tz fi if [ -z "$sl_lang" ]; then - set sl_lang="us american" + set sl_lang="@LANDSC@" export sl_lang fi if [ -z "$sl_locale" ]; then - set sl_locale="en_US.utf8" + set sl_locale="@LOCALE@" export sl_locale fi @@ -48,15 +48,15 @@ menuentry "Start @CDISTRO@@DIRSUFFIX@ @SL_VERSION@ @LIVEDE@ Live @VERSION@ ($sl_ initrd ($root)/boot/initrd.img } -submenu "Non-US Keyboard selection" --hotkey k { +submenu "Non-@ULANG@ Keyboard selection" --hotkey k { configfile $grubdir/kbd.cfg } -submenu "Non-US Language selection" --hotkey l { +submenu "Non-@ULANG@ Language selection" --hotkey l { configfile $grubdir/lang.cfg } -submenu "Non-US Timezone selection" --hotkey t { +submenu "Non-@ULANG@ Timezone selection" --hotkey t { configfile $grubdir/tz.cfg } -- cgit v1.2.3