mirror of
https://gitlab.com/JKANetwork/JKArch.git
synced 2026-02-15 09:41:31 +01:00
67 lines
3.1 KiB
Bash
Executable File
67 lines
3.1 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";;
|
|
*)
|
|
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";;
|
|
*)
|
|
translate_es "$1";;
|
|
esac
|
|
}
|
|
|
|
|
|
|
|
function T {
|
|
case $sclang in
|
|
"es")
|
|
translate_es "$1";;
|
|
"en")
|
|
translate_en "$1";;
|
|
esac
|
|
}
|