mirror of
https://gitlab.com/JKANetwork/JKArch.git
synced 2026-02-15 09:41:31 +01:00
136 lines
5.3 KiB
Bash
Executable File
136 lines
5.3 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
function translate_es {
|
|
case "$1" in
|
|
"JKArch install script")
|
|
echo "Script de instalacion de JKArch (BETA)";;
|
|
"Intro arch install script")
|
|
echo "Mediante unas preguntas y avanzando, instalaremos arch en su ordenador \nHa sido pensado para ser simple, y guiado por opciones, pero debes estar atento durante el proceso. \nAviso: No debes interrumpir la instalacion por ningun motivo, a no ser que quieras que quede incompleta";;
|
|
"Part. scheme before your changes")
|
|
echo "Esquema de particiones antes de los cambios";;
|
|
"Your partition scheme")
|
|
echo "Tu esquema de particiones:";;
|
|
"Your changes")
|
|
echo "Cambios que has realizado";;
|
|
"Pause function")
|
|
echo "Pulse enter para continuar...";;
|
|
"Questions about partitions")
|
|
echo "Preguntas acerca de las unidades donde instalar el sistema";;
|
|
"Text of questions about partitions dialog")
|
|
echo "Esta parte es la mas importante, antes de seguir se mostrarán los discos duros. Si esta vacío o es nuevo, recomendamos formatear en DOS/MBR. Si sabe lo que hace, o ya usaba GPT/UEFI, tendrá que seleccionar la partición EFI, recuerdelo \n (Si lo instala junto a windows 8.1/10 de 64 bits con UEFI activado, entonces usa EFI y tendrás que seleccionar la unidad EFI/ESP que utiliza luego) \n(UEFI NECESITA QUE EL ARRANQUE HAYA SIDO POR UEFI)";;
|
|
"ERROR: You dont have HDD, insert one, poweroff")
|
|
echo "ERROR: No tienes discos duros, no se puede continuar. Por favor enchufe/inserte un disco duro y reinicie. \n Al pulsar aceptar se reiniciara el sistema";;
|
|
"System configuration")
|
|
echo "Configuración de su sistema";;
|
|
"Select hard disk to edit")
|
|
echo "Seleccione el disco duro para editar";;
|
|
"Full hard disk install")
|
|
echo "Instalacion en un disco duro completo";;
|
|
"Select root partition")
|
|
echo "Elige la particion a usar como sistema raíz ('/')";;
|
|
"Select home partition")
|
|
echo "Elige la particion a usar como home (/home)";;
|
|
"Not valid")
|
|
echo "No valido";;
|
|
"¿Do you want to edit partitions?¿How?")
|
|
echo "¿Quieres editar las particiones?¿Como?";;
|
|
"Ok, last thing before start installing, summary of changes")
|
|
echo "Ok, vamos a comenzar la instalacion, pero antes, un resumen de donde lo va a instalar.";;
|
|
"If you agree with that, press enter. If not, turn off the computer")
|
|
echo "Si estas de acuerdo, presione enter, en caso contrario, apague el ordenador a la fuerza y no comenzará la instalación";;
|
|
"Root partition")
|
|
echo "Partición raiz (/)";;
|
|
"Home partition")
|
|
echo "Partición home (/home)";;
|
|
"EFI partition in")
|
|
echo "Tienes una partición EFI en";;
|
|
"ext4 formatted")
|
|
echo "formateado en ext4";;
|
|
"btrfs formatted")
|
|
echo "formateado en btrfs";;
|
|
"XFS formatted")
|
|
echo "formateado en XFS";;
|
|
"not formatted")
|
|
echo "sin formatear";;
|
|
"End")
|
|
echo "Fin";;
|
|
"Setup finished, press enter to reboot.")
|
|
echo "Instalación finalizada, al pulsar aceptar, se reiniciará el sistema";;
|
|
*)
|
|
echo "$1";;
|
|
esac
|
|
}
|
|
|
|
function translate_en {
|
|
case "$1" in
|
|
"JKArch install script")
|
|
echo "$1";;
|
|
"Intro arch install script")
|
|
echo "Through simple questions, we will install arch in your computer. \nIts designed to be simple and guied by options, but you need to be careful during the process. \nWarning: You musnt stop the install never, or anything can happen";;
|
|
"Part. scheme before your changes")
|
|
echo "Your partition scheme before your changes";;
|
|
"Your partition scheme")
|
|
echo "$1:";;
|
|
"Your changes")
|
|
echo "$1";;
|
|
"Pause function")
|
|
echo "Press enter to continue...";;
|
|
"Questions about partitions")
|
|
echo "Questions about partitions where system will be installed";;
|
|
"Text of questions about partitions dialog")
|
|
echo "This is the most important part. We will show you your partition scheme. If it's empty, please format it in DOS/MBR type. If you know what are you doing, or if you have formatted in GPT/UEFI, you will have to select EFI/ESP partition later. \n(If you install it alongside with Windows 8.1/10 64 bits with UEFI, you will be to select EFI/ESP partition that windows makes) \n(UEFI NEEDS THAT COMPUTER BOOT HAS BEEN MADE IN UEFI MODE)";;
|
|
"ERROR: You dont have HDD, insert one, poweroff")
|
|
echo "ERROR: You dont have any HDD/SSD, setup can't continue. Plug-in some HDD/SSD and start again. When you press enter, computer will poweroff.";;
|
|
"System configuration")
|
|
echo "$1";;
|
|
"Select hard disk to edit")
|
|
echo "$1";;
|
|
"Full hard disk install")
|
|
echo "$1";;
|
|
"Select root partition")
|
|
echo "Select root (/) partition";;
|
|
"Select home partition")
|
|
echo "Select home (/home) (users) partition";;
|
|
"Not valid")
|
|
echo "$1";;
|
|
"¿Do you want to edit partitions?¿How?")
|
|
echo "$1";;
|
|
"Ok, last thing before start installing, summary of changes")
|
|
echo "Ok, last thing before start installing, summary of changes we will do";;
|
|
"If you agree with that, press enter. If not, turn off the computer")
|
|
echo "If you agree with that, press enter. If not, turn off the computer";;
|
|
"Root partition")
|
|
echo "$1";;
|
|
"Home partition")
|
|
echo "$1";;
|
|
"EFI partition in")
|
|
echo "$1";;
|
|
"ext4 formatted")
|
|
echo "$1";;
|
|
"btrfs formatted")
|
|
echo "$1";;
|
|
"XFS formatted")
|
|
echo "$1";;
|
|
"not formatted")
|
|
echo "$1";;
|
|
"End")
|
|
echo "$1";;
|
|
"Setup finished, press enter to reboot.")
|
|
echo "$1";;
|
|
|
|
*)
|
|
translate_es "$1";;
|
|
esac
|
|
}
|
|
|
|
|
|
|
|
function T {
|
|
case $sclang in
|
|
"es")
|
|
translate_es "$1";;
|
|
"en")
|
|
translate_en "$1";;
|
|
esac
|
|
}
|