1
0
mirror of https://gitlab.com/JKANetwork/jka-toolkit.git synced 2026-02-18 19:11:31 +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
echo "$(gettext " Usage: apw <option> [packages]")" echo "$(gettext " Usage: apw <option> [packages]")"
echo "$(gettext " {-h | h} Show this help")" 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 " {-I | I} Install packages (Updates system also for preventing problems)")"
echo "$(gettext " {-Ir | Ir} Reinstall 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")" echo "$(gettext " {-R | R} Removes a package")"
@@ -32,7 +32,6 @@ case "$1" in
echo "$(gettext " {-S | S} Search in package database")" 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 " {-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 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 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 #Reading packages to install/remove.. (The rest of $) , it has to be done before the option echo, logically
packages=$2 packages=$2
#Control the incompleted arguments #Control the incompleted arguments
if [ -z $package ];then if [[ -z $package && ( $1 != "*u" || $1 != "*c*" ) ]];then
echo "$(gettext "No package specified, aborting")" echo "$(gettext "No package specified, aborting")"
exit exit
fi fi

View File

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