Fix variable mismatch in translation files
This commit is contained in:
parent
9188204758
commit
d97736a344
@ -14,7 +14,7 @@
|
||||
# immutable variables {
|
||||
|
||||
readonly DIST="Archlabs" # Linux distributor
|
||||
readonly VER="1.6.43" # Installer version
|
||||
readonly VER="1.6.45" # Installer version
|
||||
readonly LIVE="liveuser" # Live session user
|
||||
readonly TRN="/usr/share/archlabs-installer" # Translation path
|
||||
readonly MNT="/mnt/install" # Install mountpoint
|
||||
@ -298,7 +298,8 @@ check_install_ready() {
|
||||
|
||||
getinput() {
|
||||
local answer
|
||||
answer="$(dialog --cr-wrap --max-input 63 --stdout --backtitle "$BT" --title " $1 " --inputbox "$2" 0 0 "$3")"
|
||||
answer="$(dialog --cr-wrap --max-input 63 --stdout --no-cancel \
|
||||
--backtitle "$BT" --title " $1 " --inputbox "$2" 0 0 "$3")"
|
||||
[[ $? != 0 || $answer == "" ]] && return 1
|
||||
echo "$answer"
|
||||
}
|
||||
@ -363,7 +364,7 @@ oneshot() {
|
||||
set_keymap() {
|
||||
tput civis
|
||||
declare -g KEYMAP
|
||||
KEYMAP="$(dialog --cr-wrap --stdout \
|
||||
KEYMAP="$(dialog --cr-wrap --stdout --no-cancel \
|
||||
--backtitle "$DIST Installer - (x86_64) - Version $VER" \
|
||||
--title " $_PrepLayout " --menu "$_XMapBody" 20 70 12 $KEYMAPS)"
|
||||
[[ $? != 0 || $KEYMAP == "" ]] && return 1
|
||||
@ -371,7 +372,7 @@ set_keymap() {
|
||||
# when a matching console map is not available open a selection dialog
|
||||
if ! [[ $CONSOLE_MAPS =~ "$KEYMAP -" ]]; then
|
||||
tput civis
|
||||
CONSOLE_MAP="$(dialog --cr-wrap --stdout \
|
||||
CONSOLE_MAP="$(dialog --cr-wrap --stdout --no-cancel \
|
||||
--backtitle "$DIST Installer - (x86_64) - Version $VER" \
|
||||
--title " $_CMapTitle " --menu "$_CMapBody" 20 70 12 $CONSOLE_MAPS)"
|
||||
[[ $? != 0 || $CONSOLE_MAP == "" ]] && return 1
|
||||
@ -489,7 +490,7 @@ window_manager() {
|
||||
"openbox" "A lightweight, powerful, and highly configurable stacking window manager" off \
|
||||
"bspwm" "A tiling window manager that represents windows as the leaves of a binary tree" off \
|
||||
"i3-gaps" "A fork of i3 window manager with more features including gaps" off \
|
||||
"dwm" "A customized fork of dwm with patches and modifications" off \
|
||||
"dwm" "A customized fork of dwm, with patches and modifications" off \
|
||||
"gnome" "A desktop environment that aims to be simple and easy to use" off \
|
||||
"cinnamon" "A desktop environment combining a traditional desktop layout with modern graphical effects" off \
|
||||
"xfce4" "A lightweight and modular desktop environment based on GTK+ 2 and 3" off)"
|
||||
@ -541,7 +542,7 @@ window_manager() {
|
||||
}
|
||||
|
||||
extra_packages() {
|
||||
EXTRA_PACKAGES="$(dialog --cr-wrap --stdout --backtitle "$BT" \
|
||||
EXTRA_PACKAGES="$(dialog --cr-wrap --stdout --no-cancel --backtitle "$BT" \
|
||||
--title " $_WMChoice " --checklist "$_WMChoiceBody\n" 0 0 20 \
|
||||
"firefox" "A popular open-source graphical web browser from Mozilla" off \
|
||||
"chromium" "an open-source graphical web browser based on the Blink rendering engine" off \
|
||||
@ -644,7 +645,6 @@ mirrorlist_cmd() {
|
||||
local country
|
||||
country="$(dialog --cr-wrap --stdout --no-cancel --backtitle "$BT" \
|
||||
--title "$_MirrorTitle" --menu "$_MirrorCountry" 22 70 10 $countries)"
|
||||
[[ $? != 0 || $country == "" ]] && return 1
|
||||
MIRROR_CMD="reflector --country $country --score 80 --latest 40 --fastest 10 --sort rate"
|
||||
fi
|
||||
|
||||
@ -662,8 +662,6 @@ mirrorlist_cmd() {
|
||||
tput cnorm
|
||||
MIRROR_CMD="$(dialog --cr-wrap --no-cancel --stdout --backtitle "$BT" \
|
||||
--title " $_MirrorTitle " --inputbox "$_MirrorCmd\n\n$ref\n" 0 0 "$cmd")"
|
||||
[[ $? != 0 || $MIRROR_CMD == "" ]] && return 1
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
@ -1825,17 +1823,15 @@ update_system() {
|
||||
pkgcmd="pacman -S iputils --noconfirm ; pacman -S base-devel git --needed --noconfirm"
|
||||
fi
|
||||
|
||||
if ! grep -qi "hypervisor" <<< "$(dmesg)"; then
|
||||
pkgcmd="pacman -Rs archlabs-installer virtualbox-guest-utils virtualbox-guest-modules-arch --noconfirm ; $pkgcmd"
|
||||
else
|
||||
pkgcmd="pacman -Rs archlabs-installer --noconfirm ; $pkgcmd"
|
||||
|
||||
if ! grep -qi "hypervisor" <<< "$(dmesg)"; then
|
||||
pkgcmd="pacman -Rs virtualbox-guest-utils virtualbox-guest-modules-arch --noconfirm ; $pkgcmd"
|
||||
fi
|
||||
|
||||
if [[ $BOOTLOADER == 'grub' && $KERNEL == 'linux-lts' ]]; then
|
||||
pkgcmd="$pkgcmd; grub-mkconfig -o /boot/grub/grub.cfg"
|
||||
elif [[ $BOOTLOADER != 'grub' ]]; then
|
||||
if [[ $BOOTLOADER != 'grub' ]]; then
|
||||
pkgcmd="$pkgcmd ; pacman -Rs grub --noconfirm"
|
||||
rm -rf $MNT/etc/default/grub
|
||||
rm -f $MNT/etc/default/grub
|
||||
find $MNT/boot/ -name 'grub*' -exec rm -rf '{}' \; >/dev/null 2>&1
|
||||
fi
|
||||
|
||||
@ -1860,16 +1856,14 @@ install_packages() {
|
||||
REMOVE_PKGS="$(pacman -Qssq 'xfce4*' 2>/dev/null)"
|
||||
fi
|
||||
|
||||
if [[ $INSTALL_WMS =~ dwm ]]; then
|
||||
oldPWD="$PWD"
|
||||
if [[ $INSTALL_WMS =~ dwm && -d $MNT/home/$NEWUSER ]]; then
|
||||
mkdir -p $MNT/home/$NEWUSER/suckless
|
||||
for n in dwm st dmenu; do
|
||||
git clone https://bitbucket.org/natemaia/$n $MNT/home/$NEWUSER/suckless/$n
|
||||
cd $MNT/home/$NEWUSER/suckless/$n
|
||||
make clean install && make clean
|
||||
echo -e "\n$n has been installed..\n\nSee /home/$NEWUSER/suckless/$n to customize and rebuild\n"
|
||||
for prog in dwm st dmenu; do
|
||||
echo -e "\nInstalling $prog..\n"
|
||||
git clone https://bitbucket.org/natemaia/$prog $MNT/home/$NEWUSER/suckless/$prog
|
||||
chroot_cmd "cd /home/$NEWUSER/suckless/$prog && make clean install && make clean"
|
||||
echo -e "\n$prog has been installed..\n\nSee /home/$NEWUSER/suckless/$prog to customize and rebuild\n"
|
||||
done
|
||||
cd "$oldPWD"
|
||||
fi
|
||||
|
||||
local pkgcmd="pacman -S $pkgs --needed --noconfirm"
|
||||
@ -2228,7 +2222,7 @@ main() {
|
||||
MENU_HIGHLIGHT=$(dialog --cr-wrap --no-cancel --stdout --backtitle "$BT" \
|
||||
--title " $_PrepTitle " --default-item $MENU_HIGHLIGHT --menu "$_PrepBody" 0 0 0 \
|
||||
"1" "$_PrepShowDev" "2" "$_PrepParts" "3" "$_PrepLUKS" "4" "$_PrepLVM" \
|
||||
"5" "$_PrepMount" "6" "$_PrepConfig" "7" "$_InstTitle" "8" "$_Done")
|
||||
"5" "$_PrepMount" "6" "$_PrepConfig" "7" "$_PrepInstall" "8" "$_Done")
|
||||
|
||||
# if trying to install the system, make sure the partitions are mounted
|
||||
# and that the needed config variables and user variables have been set up
|
||||
|
@ -34,6 +34,7 @@ _PrepParts="格式化分区"
|
||||
_PrepLUKS='LUKS硬盘加密 (可选)'
|
||||
_PrepLVM='逻辑分区管理 (可选)'
|
||||
_PrepMount="挂载分区"
|
||||
_PrepConfig="配置安裝"
|
||||
_PrepInstall="安装到 $DIST"
|
||||
|
||||
_BootLdr="安装引导程序"
|
||||
|
@ -176,6 +176,7 @@ _PrepShowDev="Lijst van Opslagmedia (optioneel)"
|
||||
_PrepLUKS="LUKS Versleuteling (optioneel)"
|
||||
_PrepLVM="Logisch Volume Management (optioneel)"
|
||||
_PrepMount="Koppel de Partities aan"
|
||||
_PrepConfig="Configureer de installatie"
|
||||
_PrepInstall="Installeer $DIST"
|
||||
|
||||
_BootLdr="Installeer de Bootlader"
|
||||
|
@ -29,9 +29,9 @@ _PrepTitle="Prepare System"
|
||||
_PrepBody="\nFollow the steps in order.\n\nConfigure settings before install."
|
||||
_PrepLayout="Keyboard Layout"
|
||||
_PrepShowDev="List Devices (optional)"
|
||||
_PrepParts="Partition Drive"
|
||||
_PrepParts="Partition Device"
|
||||
_PrepLUKS="LUKS Encryption (optional)"
|
||||
_PrepLVM="Logical Volume Management (optional)"
|
||||
_PrepLVM="LVM (optional)"
|
||||
_PrepMount="Mount Partitions"
|
||||
_PrepConfig="Configure Installation"
|
||||
_PrepInstall="Install $DIST"
|
||||
@ -57,10 +57,6 @@ _CloseInstBody="\nUnmount partitions and close the installer?\n"
|
||||
|
||||
## NEW
|
||||
|
||||
# begin system unpacking
|
||||
_BeginInst="\nRoot Partition:"
|
||||
_ContinueYN="\nDo you want to begin install?\n"
|
||||
_TakeOneMin="\nThis will take a minute"
|
||||
_OnlyOne="\nOnly one partition available"
|
||||
|
||||
# finished
|
||||
@ -104,19 +100,19 @@ _MirrorCmd="\nThe command below will be used to sort the mirrorlist, a short des
|
||||
|
||||
# window managers and packages
|
||||
_WMChoice="Select Window Managers or Desktop Environments"
|
||||
_WMChoiceBody="\nUse [Space] to select/deselect window manager(s) or desktop environment(s) to install.\n\nDepending on the choice additional packages may be installed to improve the experience."
|
||||
_WMChoiceBody="\nUse [Space] to (de)select window manager(s) or desktop environment(s) to install.\n\nDepending on the choice additional packages may be installed to improve the experience."
|
||||
|
||||
_WMLogin="Select Login"
|
||||
_WMLogin="Select Login Type"
|
||||
_LoginTypeBody="\nUse console login (xinit) or a display manager (lightdm)?"
|
||||
_WMLoginBody="\nSelect which window manager or desktop to use for login."
|
||||
_AutoLoginBody="\nDo you want to automatically log in when the computer starts?"
|
||||
|
||||
_PackageChoice="Additional Packages"
|
||||
_PackageChoiceBody="\nUse [Space] to select/deselect additional packages to install."
|
||||
_PackageChoiceBody="\nUse [Space] to (de)select additional packages to install."
|
||||
|
||||
_ChooseExtraPackages="\nChoose additional packages to install?\n"
|
||||
_ExtraPackages="Extra Packages"
|
||||
_ExtraPackagesBody="\nUse [Space] to select/deselect packages(s) to install from the list below."
|
||||
_ExtraPackagesBody="\nUse [Space] to (de)select packages(s) to install from the list below."
|
||||
|
||||
## END NEW
|
||||
|
||||
|
@ -176,6 +176,7 @@ _PrepLUKS="Cryptage LUKS (optionnel)"
|
||||
_PrepLVM="Gestionnaire de volume logique (optionnel)"
|
||||
_PrepParts="Partitionner le(s) disque(s)"
|
||||
_PrepMount="Monter les partitions"
|
||||
_PrepConfig="Configurer l'installation"
|
||||
_PrepInstall="Installer $DIST"
|
||||
|
||||
_BootLdr="Installer le chargeur d'amorçage"
|
||||
|
@ -175,6 +175,7 @@ _PrepLayout="Asztali billentyűzetkiosztás beállítása"
|
||||
_PrepLUKS="LUKS Titkosítás (választható)"
|
||||
_PrepLVM="Logikai kötetkezelés (választható)"
|
||||
_PrepMount="Partíciók csatolása"
|
||||
_PrepConfig="A telepítés konfigurálása"
|
||||
_PrepInstall="Alaptelepítés $DIST"
|
||||
|
||||
_BootLdr="Rendszertöltő telepítése"
|
||||
|
@ -176,6 +176,7 @@ _PrepLayout="Configura la disposizione della tastiera"
|
||||
_PrepLUKS="Crittografia LUKS (opzionale)"
|
||||
_PrepLVM="Logical Volume Management (opzionale)"
|
||||
_PrepMount="Montaggio partizioni"
|
||||
_PrepConfig="Configura installazione"
|
||||
_PrepInstall="Installazione $DIST"
|
||||
|
||||
_BootLdr="Installa il Bootloader"
|
||||
|
@ -176,6 +176,7 @@ _PrepShowDev="Lista de Dispositivos (opcional)"
|
||||
_PrepLUKS="Criptografia LUKS (opcional)"
|
||||
_PrepLVM="Gereciamento de volume lógico (LVM) (opcional)"
|
||||
_PrepMount="Montar Partições"
|
||||
_PrepConfig="Configurar instalação"
|
||||
_PrepInstall="Instalar $DIST"
|
||||
|
||||
_BootLdr="Instalar o carregador do sistema "
|
||||
|
@ -178,6 +178,7 @@ _PrepShowDev="Lista de Dispositivos (opcional)"
|
||||
_PrepLUKS="Criptografia LUKS (opcional)"
|
||||
_PrepLVM="Gestão de Volume Lógico (LVM) (opcional)"
|
||||
_PrepMount="Montar Partições"
|
||||
_PrepConfig="Configurar instalação"
|
||||
_PrepInstall="Instalar $DIST"
|
||||
|
||||
_BootLdr="Instalar Bootloader"
|
||||
|
@ -175,6 +175,7 @@ _PrepShowDev="Список устройств (опционально)"
|
||||
_PrepLUKS="LUKS Шифрование (опционально)"
|
||||
_PrepLVM="Менеджер логических томов (LVM) (опционально)"
|
||||
_PrepMount="Смонтировать разделы"
|
||||
_PrepConfig="Настроить установку"
|
||||
_PrepInstall="Установка $DIST"
|
||||
|
||||
_BootLdr="Установить загрузчик"
|
||||
|
@ -176,6 +176,7 @@ _PrepShowDev="Listar dispositivos (opcional)"
|
||||
_PrepLUKS="Encriptación LUKS (opcional)"
|
||||
_PrepLVM="Gestión de volúmenes lógicos (LVM) (opcional)"
|
||||
_PrepMount="Montar particiones"
|
||||
_PrepConfig="Configurar instalación"
|
||||
_PrepInstall="Instalar $DIST"
|
||||
|
||||
_BootLdr="Instalar gestor de arranque"
|
||||
|
Reference in New Issue
Block a user