Fix variable mismatch in translation files

This commit is contained in:
natemaia 2018-08-25 20:49:06 -07:00
parent 9188204758
commit d97736a344
11 changed files with 36 additions and 37 deletions

View File

@ -14,7 +14,7 @@
# immutable variables { # immutable variables {
readonly DIST="Archlabs" # Linux distributor 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 LIVE="liveuser" # Live session user
readonly TRN="/usr/share/archlabs-installer" # Translation path readonly TRN="/usr/share/archlabs-installer" # Translation path
readonly MNT="/mnt/install" # Install mountpoint readonly MNT="/mnt/install" # Install mountpoint
@ -298,7 +298,8 @@ check_install_ready() {
getinput() { getinput() {
local answer 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 [[ $? != 0 || $answer == "" ]] && return 1
echo "$answer" echo "$answer"
} }
@ -363,7 +364,7 @@ oneshot() {
set_keymap() { set_keymap() {
tput civis tput civis
declare -g KEYMAP declare -g KEYMAP
KEYMAP="$(dialog --cr-wrap --stdout \ KEYMAP="$(dialog --cr-wrap --stdout --no-cancel \
--backtitle "$DIST Installer - (x86_64) - Version $VER" \ --backtitle "$DIST Installer - (x86_64) - Version $VER" \
--title " $_PrepLayout " --menu "$_XMapBody" 20 70 12 $KEYMAPS)" --title " $_PrepLayout " --menu "$_XMapBody" 20 70 12 $KEYMAPS)"
[[ $? != 0 || $KEYMAP == "" ]] && return 1 [[ $? != 0 || $KEYMAP == "" ]] && return 1
@ -371,7 +372,7 @@ set_keymap() {
# when a matching console map is not available open a selection dialog # when a matching console map is not available open a selection dialog
if ! [[ $CONSOLE_MAPS =~ "$KEYMAP -" ]]; then if ! [[ $CONSOLE_MAPS =~ "$KEYMAP -" ]]; then
tput civis tput civis
CONSOLE_MAP="$(dialog --cr-wrap --stdout \ CONSOLE_MAP="$(dialog --cr-wrap --stdout --no-cancel \
--backtitle "$DIST Installer - (x86_64) - Version $VER" \ --backtitle "$DIST Installer - (x86_64) - Version $VER" \
--title " $_CMapTitle " --menu "$_CMapBody" 20 70 12 $CONSOLE_MAPS)" --title " $_CMapTitle " --menu "$_CMapBody" 20 70 12 $CONSOLE_MAPS)"
[[ $? != 0 || $CONSOLE_MAP == "" ]] && return 1 [[ $? != 0 || $CONSOLE_MAP == "" ]] && return 1
@ -489,7 +490,7 @@ window_manager() {
"openbox" "A lightweight, powerful, and highly configurable stacking window manager" off \ "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 \ "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 \ "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 \ "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 \ "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)" "xfce4" "A lightweight and modular desktop environment based on GTK+ 2 and 3" off)"
@ -541,7 +542,7 @@ window_manager() {
} }
extra_packages() { 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 \ --title " $_WMChoice " --checklist "$_WMChoiceBody\n" 0 0 20 \
"firefox" "A popular open-source graphical web browser from Mozilla" off \ "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 \ "chromium" "an open-source graphical web browser based on the Blink rendering engine" off \
@ -644,7 +645,6 @@ mirrorlist_cmd() {
local country local country
country="$(dialog --cr-wrap --stdout --no-cancel --backtitle "$BT" \ country="$(dialog --cr-wrap --stdout --no-cancel --backtitle "$BT" \
--title "$_MirrorTitle" --menu "$_MirrorCountry" 22 70 10 $countries)" --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" MIRROR_CMD="reflector --country $country --score 80 --latest 40 --fastest 10 --sort rate"
fi fi
@ -662,8 +662,6 @@ mirrorlist_cmd() {
tput cnorm tput cnorm
MIRROR_CMD="$(dialog --cr-wrap --no-cancel --stdout --backtitle "$BT" \ MIRROR_CMD="$(dialog --cr-wrap --no-cancel --stdout --backtitle "$BT" \
--title " $_MirrorTitle " --inputbox "$_MirrorCmd\n\n$ref\n" 0 0 "$cmd")" --title " $_MirrorTitle " --inputbox "$_MirrorCmd\n\n$ref\n" 0 0 "$cmd")"
[[ $? != 0 || $MIRROR_CMD == "" ]] && return 1
return 0 return 0
} }
@ -1825,17 +1823,15 @@ update_system() {
pkgcmd="pacman -S iputils --noconfirm ; pacman -S base-devel git --needed --noconfirm" pkgcmd="pacman -S iputils --noconfirm ; pacman -S base-devel git --needed --noconfirm"
fi fi
pkgcmd="pacman -Rs archlabs-installer --noconfirm ; $pkgcmd"
if ! grep -qi "hypervisor" <<< "$(dmesg)"; then if ! grep -qi "hypervisor" <<< "$(dmesg)"; then
pkgcmd="pacman -Rs archlabs-installer virtualbox-guest-utils virtualbox-guest-modules-arch --noconfirm ; $pkgcmd" pkgcmd="pacman -Rs virtualbox-guest-utils virtualbox-guest-modules-arch --noconfirm ; $pkgcmd"
else
pkgcmd="pacman -Rs archlabs-installer --noconfirm ; $pkgcmd"
fi fi
if [[ $BOOTLOADER == 'grub' && $KERNEL == 'linux-lts' ]]; then if [[ $BOOTLOADER != 'grub' ]]; then
pkgcmd="$pkgcmd; grub-mkconfig -o /boot/grub/grub.cfg" pkgcmd="$pkgcmd ; pacman -Rs grub --noconfirm"
elif [[ $BOOTLOADER != 'grub' ]]; then rm -f $MNT/etc/default/grub
pkgcmd="$pkgcmd; pacman -Rs grub --noconfirm"
rm -rf $MNT/etc/default/grub
find $MNT/boot/ -name 'grub*' -exec rm -rf '{}' \; >/dev/null 2>&1 find $MNT/boot/ -name 'grub*' -exec rm -rf '{}' \; >/dev/null 2>&1
fi fi
@ -1860,16 +1856,14 @@ install_packages() {
REMOVE_PKGS="$(pacman -Qssq 'xfce4*' 2>/dev/null)" REMOVE_PKGS="$(pacman -Qssq 'xfce4*' 2>/dev/null)"
fi fi
if [[ $INSTALL_WMS =~ dwm ]]; then if [[ $INSTALL_WMS =~ dwm && -d $MNT/home/$NEWUSER ]]; then
oldPWD="$PWD"
mkdir -p $MNT/home/$NEWUSER/suckless mkdir -p $MNT/home/$NEWUSER/suckless
for n in dwm st dmenu; do for prog in dwm st dmenu; do
git clone https://bitbucket.org/natemaia/$n $MNT/home/$NEWUSER/suckless/$n echo -e "\nInstalling $prog..\n"
cd $MNT/home/$NEWUSER/suckless/$n git clone https://bitbucket.org/natemaia/$prog $MNT/home/$NEWUSER/suckless/$prog
make clean install && make clean chroot_cmd "cd /home/$NEWUSER/suckless/$prog && make clean install && make clean"
echo -e "\n$n has been installed..\n\nSee /home/$NEWUSER/suckless/$n to customize and rebuild\n" echo -e "\n$prog has been installed..\n\nSee /home/$NEWUSER/suckless/$prog to customize and rebuild\n"
done done
cd "$oldPWD"
fi fi
local pkgcmd="pacman -S $pkgs --needed --noconfirm" local pkgcmd="pacman -S $pkgs --needed --noconfirm"
@ -2227,8 +2221,8 @@ main() {
tput civis tput civis
MENU_HIGHLIGHT=$(dialog --cr-wrap --no-cancel --stdout --backtitle "$BT" \ MENU_HIGHLIGHT=$(dialog --cr-wrap --no-cancel --stdout --backtitle "$BT" \
--title " $_PrepTitle " --default-item $MENU_HIGHLIGHT --menu "$_PrepBody" 0 0 0 \ --title " $_PrepTitle " --default-item $MENU_HIGHLIGHT --menu "$_PrepBody" 0 0 0 \
"1" "$_PrepShowDev" "2" "$_PrepParts" "3" "$_PrepLUKS" "4" "$_PrepLVM" \ "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 # 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 # and that the needed config variables and user variables have been set up

View File

@ -34,6 +34,7 @@ _PrepParts="格式化分区"
_PrepLUKS='LUKS硬盘加密 (可选)' _PrepLUKS='LUKS硬盘加密 (可选)'
_PrepLVM='逻辑分区管理 (可选)' _PrepLVM='逻辑分区管理 (可选)'
_PrepMount="挂载分区" _PrepMount="挂载分区"
_PrepConfig="配置安裝"
_PrepInstall="安装到 $DIST" _PrepInstall="安装到 $DIST"
_BootLdr="安装引导程序" _BootLdr="安装引导程序"

View File

@ -176,6 +176,7 @@ _PrepShowDev="Lijst van Opslagmedia (optioneel)"
_PrepLUKS="LUKS Versleuteling (optioneel)" _PrepLUKS="LUKS Versleuteling (optioneel)"
_PrepLVM="Logisch Volume Management (optioneel)" _PrepLVM="Logisch Volume Management (optioneel)"
_PrepMount="Koppel de Partities aan" _PrepMount="Koppel de Partities aan"
_PrepConfig="Configureer de installatie"
_PrepInstall="Installeer $DIST" _PrepInstall="Installeer $DIST"
_BootLdr="Installeer de Bootlader" _BootLdr="Installeer de Bootlader"

View File

@ -29,9 +29,9 @@ _PrepTitle="Prepare System"
_PrepBody="\nFollow the steps in order.\n\nConfigure settings before install." _PrepBody="\nFollow the steps in order.\n\nConfigure settings before install."
_PrepLayout="Keyboard Layout" _PrepLayout="Keyboard Layout"
_PrepShowDev="List Devices (optional)" _PrepShowDev="List Devices (optional)"
_PrepParts="Partition Drive" _PrepParts="Partition Device"
_PrepLUKS="LUKS Encryption (optional)" _PrepLUKS="LUKS Encryption (optional)"
_PrepLVM="Logical Volume Management (optional)" _PrepLVM="LVM (optional)"
_PrepMount="Mount Partitions" _PrepMount="Mount Partitions"
_PrepConfig="Configure Installation" _PrepConfig="Configure Installation"
_PrepInstall="Install $DIST" _PrepInstall="Install $DIST"
@ -57,10 +57,6 @@ _CloseInstBody="\nUnmount partitions and close the installer?\n"
## NEW ## 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" _OnlyOne="\nOnly one partition available"
# finished # finished
@ -104,19 +100,19 @@ _MirrorCmd="\nThe command below will be used to sort the mirrorlist, a short des
# window managers and packages # window managers and packages
_WMChoice="Select Window Managers or Desktop Environments" _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)?" _LoginTypeBody="\nUse console login (xinit) or a display manager (lightdm)?"
_WMLoginBody="\nSelect which window manager or desktop to use for login." _WMLoginBody="\nSelect which window manager or desktop to use for login."
_AutoLoginBody="\nDo you want to automatically log in when the computer starts?" _AutoLoginBody="\nDo you want to automatically log in when the computer starts?"
_PackageChoice="Additional Packages" _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" _ChooseExtraPackages="\nChoose additional packages to install?\n"
_ExtraPackages="Extra Packages" _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 ## END NEW

View File

@ -176,6 +176,7 @@ _PrepLUKS="Cryptage LUKS (optionnel)"
_PrepLVM="Gestionnaire de volume logique (optionnel)" _PrepLVM="Gestionnaire de volume logique (optionnel)"
_PrepParts="Partitionner le(s) disque(s)" _PrepParts="Partitionner le(s) disque(s)"
_PrepMount="Monter les partitions" _PrepMount="Monter les partitions"
_PrepConfig="Configurer l'installation"
_PrepInstall="Installer $DIST" _PrepInstall="Installer $DIST"
_BootLdr="Installer le chargeur d'amorçage" _BootLdr="Installer le chargeur d'amorçage"

View File

@ -175,6 +175,7 @@ _PrepLayout="Asztali billentyűzetkiosztás beállítása"
_PrepLUKS="LUKS Titkosítás (választható)" _PrepLUKS="LUKS Titkosítás (választható)"
_PrepLVM="Logikai kötetkezelés (választható)" _PrepLVM="Logikai kötetkezelés (választható)"
_PrepMount="Partíciók csatolása" _PrepMount="Partíciók csatolása"
_PrepConfig="A telepítés konfigurálása"
_PrepInstall="Alaptelepítés $DIST" _PrepInstall="Alaptelepítés $DIST"
_BootLdr="Rendszertöltő telepítése" _BootLdr="Rendszertöltő telepítése"

View File

@ -176,6 +176,7 @@ _PrepLayout="Configura la disposizione della tastiera"
_PrepLUKS="Crittografia LUKS (opzionale)" _PrepLUKS="Crittografia LUKS (opzionale)"
_PrepLVM="Logical Volume Management (opzionale)" _PrepLVM="Logical Volume Management (opzionale)"
_PrepMount="Montaggio partizioni" _PrepMount="Montaggio partizioni"
_PrepConfig="Configura installazione"
_PrepInstall="Installazione $DIST" _PrepInstall="Installazione $DIST"
_BootLdr="Installa il Bootloader" _BootLdr="Installa il Bootloader"

View File

@ -176,6 +176,7 @@ _PrepShowDev="Lista de Dispositivos (opcional)"
_PrepLUKS="Criptografia LUKS (opcional)" _PrepLUKS="Criptografia LUKS (opcional)"
_PrepLVM="Gereciamento de volume lógico (LVM) (opcional)" _PrepLVM="Gereciamento de volume lógico (LVM) (opcional)"
_PrepMount="Montar Partições" _PrepMount="Montar Partições"
_PrepConfig="Configurar instalação"
_PrepInstall="Instalar $DIST" _PrepInstall="Instalar $DIST"
_BootLdr="Instalar o carregador do sistema " _BootLdr="Instalar o carregador do sistema "

View File

@ -178,6 +178,7 @@ _PrepShowDev="Lista de Dispositivos (opcional)"
_PrepLUKS="Criptografia LUKS (opcional)" _PrepLUKS="Criptografia LUKS (opcional)"
_PrepLVM="Gestão de Volume Lógico (LVM) (opcional)" _PrepLVM="Gestão de Volume Lógico (LVM) (opcional)"
_PrepMount="Montar Partições" _PrepMount="Montar Partições"
_PrepConfig="Configurar instalação"
_PrepInstall="Instalar $DIST" _PrepInstall="Instalar $DIST"
_BootLdr="Instalar Bootloader" _BootLdr="Instalar Bootloader"

View File

@ -175,6 +175,7 @@ _PrepShowDev="Список устройств (опционально)"
_PrepLUKS="LUKS Шифрование (опционально)" _PrepLUKS="LUKS Шифрование (опционально)"
_PrepLVM="Менеджер логических томов (LVM) (опционально)" _PrepLVM="Менеджер логических томов (LVM) (опционально)"
_PrepMount="Смонтировать разделы" _PrepMount="Смонтировать разделы"
_PrepConfig="Настроить установку"
_PrepInstall="Установка $DIST" _PrepInstall="Установка $DIST"
_BootLdr="Установить загрузчик" _BootLdr="Установить загрузчик"

View File

@ -176,6 +176,7 @@ _PrepShowDev="Listar dispositivos (opcional)"
_PrepLUKS="Encriptación LUKS (opcional)" _PrepLUKS="Encriptación LUKS (opcional)"
_PrepLVM="Gestión de volúmenes lógicos (LVM) (opcional)" _PrepLVM="Gestión de volúmenes lógicos (LVM) (opcional)"
_PrepMount="Montar particiones" _PrepMount="Montar particiones"
_PrepConfig="Configurar instalación"
_PrepInstall="Instalar $DIST" _PrepInstall="Instalar $DIST"
_BootLdr="Instalar gestor de arranque" _BootLdr="Instalar gestor de arranque"