1
0
mirror of https://gitlab.com/JKANetwork/jka-toolkit.git synced 2026-02-17 18:41:34 +01:00
This commit is contained in:
kprkpr
2016-06-07 16:08:08 +02:00
parent cfde167c31
commit 5760eb12b4
4 changed files with 52 additions and 61 deletions

View File

@@ -22,7 +22,7 @@ case "$1" in
echo
echo "$(gettext " Usage: apw <option> [packages]")"
echo "$(gettext " {-h | h} Show this help")"
echo "$(gettext " {-U | U} Update system")"
echo "$(gettext " {-U | U} Update system. If errors, you can do -Uf to force it")"
echo "$(gettext " {-I | I} Install packages (Updates system also for preventing problems)")"
echo "$(gettext " {-Ir | Ir} Reinstall packages (Updates system also for preventing problems)")"
echo "$(gettext " {-R | R} Removes a package")"
@@ -32,7 +32,6 @@ case "$1" in
echo "$(gettext " {-S | S} Search in package database")"
echo "$(gettext " {-F | F} Install file (distro family dependent, e.g. .deb , .pkg.tar.xz,...)")"
echo "$(gettext " Append y to -U or -I (-Uy -Iy -Iry) for autoconfirm the operations")"
echo "$(gettext " Append f to -U (-Uf) to force system update and ignore errors")"
exit
;;
"")
@@ -86,7 +85,7 @@ SO=$(cat /etc/apw.conf)
#Reading packages to install/remove.. (The rest of $) , it has to be done before the option echo, logically
packages=$2
#Control the incompleted arguments
if [ -z $package ];then
if [[ -z $package && ( $1 != "*u" || $1 != "*c*" ) ]];then
echo "$(gettext "No package specified, aborting")"
exit
fi

View File

@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-06-07 15:38+0200\n"
"POT-Creation-Date: 2016-06-07 16:05+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -30,7 +30,7 @@ msgid "\t{-h | h} \tShow this help"
msgstr ""
#: apw:25
msgid "\t{-U | U}\tUpdate system"
msgid "\t{-U | U}\tUpdate system. If errors, you can do -Uf to force it"
msgstr ""
#: apw:26
@@ -78,102 +78,98 @@ msgstr ""
msgid "\tAppend y to -U or -I (-Uy -Iy -Iry) for autoconfirm the operations"
msgstr ""
#: apw:35
msgid "\tAppend f to -U (-Uf) to force system update and ignore errors"
msgstr ""
#: apw:39
#: apw:38
msgid "apw - A Packager Wrapper"
msgstr ""
#: apw:40 apw:275
#: apw:39 apw:274
msgid "Use apw -h for help"
msgstr ""
#: apw:48
#: apw:47
msgid "apw has to run as root, please run as root/with sudo"
msgstr ""
#: apw:53
#: apw:52
msgid "It's the first run of the program, we need a thing before continue"
msgstr ""
#: apw:54
#: apw:53
msgid "What, or in what is based your Linux?"
msgstr ""
#: apw:55
#: apw:54
msgid ""
"(The answer will be recorded in /etc/apw.conf, if you want to reset apw, "
"delete this file)"
msgstr ""
#: apw:90
#: apw:89
msgid "No package specified, aborting"
msgstr ""
#: apw:108
#: apw:107
msgid "Updating system"
msgstr ""
#: apw:121
#: apw:120
msgid "Force updating system"
msgstr ""
#: apw:128 apw:139
#: apw:127 apw:138
msgid "Not supported on your distribution. Doing -U instead"
msgstr ""
#: apw:143 apw:154
#: apw:142 apw:153
msgid "You are going to install %s and dependencies"
msgstr ""
#: apw:162
#: apw:161
msgid "Not supported on your distribution. Doing -I instead"
msgstr ""
#: apw:166 apw:177
#: apw:165 apw:176
msgid "You are going to reinstall %s"
msgstr ""
#: apw:184
#: apw:183
msgid "Not supported on your distribution. Doing -Ir instead"
msgstr ""
#: apw:188 apw:198
#: apw:187 apw:197
msgid "You are going to remove %s"
msgstr ""
#: apw:205
#: apw:204
msgid "Not supported on your distribution. Doing -R instead"
msgstr ""
#: apw:209 apw:218
#: apw:208 apw:217
msgid "Removing %s along with his dependencies that are not more in use"
msgstr ""
#: apw:215 apw:224 apw:241 apw:251
#: apw:214 apw:223 apw:240 apw:250
msgid "Not supported on your distribution"
msgstr ""
#: apw:227
#: apw:226
msgid "Cleaning package manager"
msgstr ""
#: apw:244
#: apw:243
msgid ""
"Cleaning system from dependencies that are not in use (BE CAREFUL, ONLY "
"ADVANCED)"
msgstr ""
#: apw:254
#: apw:253
msgid "Searching %s"
msgstr ""
#: apw:263
#: apw:262
msgid "Installing files: %s"
msgstr ""
#: apw:274
#: apw:273
msgid "Invalid option especified"
msgstr ""

Binary file not shown.

View File

@@ -31,8 +31,8 @@ msgid "\t{-h | h} \tShow this help"
msgstr "\t{-h | h} \tMuestra esta ayuda"
#: apw:25
msgid "\t{-U | U}\tUpdate system"
msgstr "\t{-U | U}\tActualiza el sistema"
msgid "\t{-U | U}\tUpdate system. If errors, you can do -Uf to force it"
msgstr "\t{-U | U}\tActualiza el sistema. Si hay errores, puedes usar -Uf para forzarlo"
#: apw:26
msgid ""
@@ -88,33 +88,29 @@ msgstr ""
msgid "\tAppend y to -U or -I (-Uy -Iy -Iry) for autoconfirm the operations"
msgstr "\tAñadir y a -U o -I (-Uy -Iy -Iry) para autoconfirmar la operación"
#: apw:35
msgid "\tAppend f to -U (-Uf) to force system update and ignore errors"
msgstr "\tAñadir f to -U (-Uf) para forzar la actualización del sistema e ignorar los errores"
#: apw:39
#: apw:38
msgid "apw - A Packager Wrapper"
msgstr "apw - A Package Wrapper"
#: apw:40 apw:275
#: apw:39 apw:274
msgid "Use apw -h for help"
msgstr "Usa apw -h para ver la ayuda"
#: apw:48
#: apw:47
msgid "apw has to run as root, please run as root/with sudo"
msgstr "apw tiene que ejecutarse como root, por favor usalo como root/sudo"
#: apw:53
#: apw:52
msgid "It's the first run of the program, we need a thing before continue"
msgstr ""
"Esta es la primera ejecución del programa, necesitamos algo antes de "
"continuar"
#: apw:54
#: apw:53
msgid "What, or in what is based your Linux?"
msgstr "¿Qué o en qué está basado tu distribución Linux?"
#: apw:55
#: apw:54
msgid ""
"(The answer will be recorded in /etc/apw.conf, if you want to reset apw, "
"delete this file)"
@@ -122,59 +118,59 @@ msgstr ""
"(La respuesta será guardada en /etc/apw.conf, si quieres resetear apw borra "
"el fichero)"
#: apw:90
#: apw:89
msgid "No package specified, aborting"
msgstr "Ningún paquete especificado, cerrando"
#: apw:108
#: apw:107
msgid "Updating system"
msgstr "Actualizando el sistema"
#: apw:121
#: apw:120
msgid "Force updating system"
msgstr "Forzando la actualización del sistema"
#: apw:128 apw:139
#: apw:127 apw:138
msgid "Not supported on your distribution. Doing -U instead"
msgstr "No soportado en tu distribución. Usando -U en su lugar"
#: apw:143 apw:154
#: apw:142 apw:153
msgid "You are going to install %s and dependencies"
msgstr "Vas a instalar %s y sus dependencias"
#: apw:162
#: apw:161
msgid "Not supported on your distribution. Doing -I instead"
msgstr "No soportado en tu distribución. Usando -I en su lugar"
#: apw:166 apw:177
#: apw:165 apw:176
msgid "You are going to reinstall %s"
msgstr "Vas a reinstalar %s"
#: apw:184
#: apw:183
msgid "Not supported on your distribution. Doing -Ir instead"
msgstr "No soportado en tu distribución. Usando -Ir en su lugar"
#: apw:188 apw:198
#: apw:187 apw:197
msgid "You are going to remove %s"
msgstr "Vas a borrar %s"
#: apw:205
#: apw:204
msgid "Not supported on your distribution. Doing -R instead"
msgstr "No soportado en tu distribución. Usando -R en su lugar"
#: apw:209 apw:218
#: apw:208 apw:217
msgid "Removing %s along with his dependencies that are not more in use"
msgstr "Quitando %s junto con las dependencias que no están más en uso"
#: apw:215 apw:224 apw:241 apw:251
#: apw:214 apw:223 apw:240 apw:250
msgid "Not supported on your distribution"
msgstr "No soportado en tu distribución"
#: apw:227
#: apw:226
msgid "Cleaning package manager"
msgstr "Limpiando gestor de paquetes"
#: apw:244
#: apw:243
msgid ""
"Cleaning system from dependencies that are not in use (BE CAREFUL, ONLY "
"ADVANCED)"
@@ -182,14 +178,14 @@ msgstr ""
"Limpiar el sistema de dependencias que no están en uso (CUIDADO, SOLO "
"EXPERIMENTADOS)"
#: apw:254
#: apw:253
msgid "Searching %s"
msgstr "Buscando %s"
#: apw:263
#: apw:262
msgid "Installing files: %s"
msgstr "Instalando archivos: %s"
#: apw:274
#: apw:273
msgid "Invalid option especified"
msgstr "Opción inválida seleccionada"