mkimage-profiles/features.in/grub/cfg.in/40lang.cfg

15 lines
421 B
INI
Raw Normal View History

submenu $"Change language (press F2)" --hotkey 'f2' {
2020-03-03 16:50:43 +03:00
insmod regexp
for langstr in "ru_RU=Russian" "en_US=English" "pt_BR=Portuguese" "kk_KZ=Kazakh" "uk_UA=Ukrainian"; do
regexp -s 2:langname -s 1:langcode '(.*)=(.*)' "$langstr"
menuentry "${langname}" "$langcode" {
lang="$2"
export lang
configfile ${prefix}/grub.cfg
}
done
menuentry $"Return to the Main menu" {
2020-03-03 16:50:43 +03:00
configfile ${prefix}/grub.cfg
}
}