1
0
mirror of https://gitlab.com/JKANetwork/jka-toolkit.git synced 2026-02-21 20:33:48 +01:00

General updates

This commit is contained in:
JoseluCross
2016-06-09 20:37:28 +02:00
parent 2312693f44
commit 2805253e96
4 changed files with 111 additions and 114 deletions

Binary file not shown.

View File

@@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-06-06 20:18+0200\n"
"PO-Revision-Date: 2016-06-06 20:19+0200\n"
"POT-Creation-Date: 2016-06-09 15:19+0200\n"
"PO-Revision-Date: 2016-06-09 15:22+0200\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -18,27 +18,28 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Language: es\n"
#: jkazip:12
#: jkazip:23 jkazip:29 jkazip:35 jkazip:41 jkazip:47 jkazip:54 jkazip:60
#: jkazip:66 jkazip:72 jkazip:78 jkazip:84 jkazip:90 jkazip:96 jkazip:102
msgid "%s has been decompressed"
msgstr "%s se ha descomprimido"
#: jkazip:107 jkazip:275
#: jkazip:106 jkazip:269
msgid "Format %s unknown"
msgstr "Formato %s desconocido"
#: jkazip:113
#: jkazip:112
msgid "No option specified, use jkazip -h"
msgstr "Ninguna opción especificada, use jkazip -h"
#: jkazip:115
#: jkazip:114
msgid "\tsynopsis:\tjkazip <options> <file or directory>"
msgstr "\tsinopsis:\tjkazip <opciones> <archivo o directorio>"
#: jkazip:117
#: jkazip:116
msgid "\t-d,\t\tdecompress file"
msgstr "\t-d,\t\tdescomprimir archivo"
#: jkazip:118
#: jkazip:117
msgid ""
"\t-f <format>,\tspecified format whe decompress, necessary only when the "
"name have more than one point before the file extension"
@@ -46,19 +47,19 @@ msgstr ""
"\t-f <formato>,\tespecifica el formato cuando descomprime, necesario solo "
"cuando el nombre tiene más de un punto antes de la extensión del archivo"
#: jkazip:119
#: jkazip:118
msgid "\t-c <format>,\tcompress file"
msgstr "\t-c <formato>,\tcomprimir archivo"
#: jkazip:120
#: jkazip:119
msgid "\t-h,\t\tshow help box and exit"
msgstr "\t-h,\t\tmuestra la ayuda y termina"
#: jkazip:121
#: jkazip:120
msgid "\t-v,\t\tshow version"
msgstr "\t-v,\t\tmuestra la versión"
#: jkazip:123
#: jkazip:122
msgid ""
"\tThe order must be \"jkazip -d [-f format] <file or directory>\" or "
"\"jkazip -c <format> <file or directory\""
@@ -66,28 +67,27 @@ msgstr ""
"\tEl orden debe ser \"jkazip -d [-f formato] <archivo o directorio>\" o "
"\"jkazip -c <formato> <archivo o directorio>\""
#: jkazip:125
#: jkazip:124
msgid "\tExamples"
msgstr "\tEjemplos"
#: jkazip:126
#: jkazip:125
msgid "\tjkazip -d -f \"tar.gz\" file.txt.tar.gz"
msgstr "\tjkazip -d -f \"tar.gz\" archivo.txt.tar.gz"
#: jkazip:127
#: jkazip:126
msgid "\tjkazip -d file.7z"
msgstr "\tjkazip -d archivo.7z"
#: jkazip:128
#: jkazip:127
msgid "\tjkazip -c \"tar.xz\" directory"
msgstr "\tjkazip -c \"tar.xz\" directorio"
#: jkazip:130
#: jkazip:129
msgid "\tSupported formats: tar, gzip, bzip2, xzip, lzip, 7z, zip and rar"
msgstr "\tFormatos soportados: tar, gzip, bzip2, xzip, lzip, 7z, zip y "
"tar"
msgstr "\tFormatos soportados: tar, gzip, bzip2, xzip, lzip, 7z, zip y rar"
#: jkazip:131
#: jkazip:130
msgid ""
"\tOnly one file or directory (some formats don't support directories), for "
"more options use the each program individualy"
@@ -95,50 +95,51 @@ msgstr ""
"\tSolo un fichero o directorio (algunos formatos no soportan directorios), "
"para mas opciones usar cada programa individualmente"
#: jkazip:134
#: jkazip:133
msgid "jkazip by JKA Network; version %s"
msgstr "jkazip por JKA Network; versión %s"
#: jkazip:138 jkazip:172
#: jkazip:137 jkazip:167
msgid "No file or directory specified"
msgstr "Ningún archivo o directorio especificado"
#: jkazip:144 jkazip:158
msgid "Directory %s will be decompressed"
msgstr "El directorio %s será descomprimido"
#: jkazip:150 jkazip:181
msgid "%s no such file or directory"
msgstr "%s no existe el archivo o el directorio"
#: jkazip:161
#: jkazip:143 jkazip:156
msgid "File %s will be decompressed"
msgstr "El archivo %s será descomprimido"
#: jkazip:164
#: jkazip:145 jkazip:176
msgid "%s no such file or directory"
msgstr "%s no existe el archivo o el directorio"
#: jkazip:153
msgid "Directory %s will be decompressed"
msgstr "El directorio %s será descomprimido"
#: jkazip:159
msgid "%s no sush a file or directory"
msgstr "%s no existe el archivo o el directorio"
#: jkazip:175
#: jkazip:170
msgid "The directory %s will be compressed"
msgstr "El directorio %s será comprimido"
#: jkazip:178
#: jkazip:173
msgid "The file %s will be compressed"
msgstr "El archivo %s será comprimido"
#: jkazip:185
msgid "%s has been compressed"
msgstr "%s ha sido comprimido"
#: jkazip:187
#: jkazip:181
msgid "No format specified"
msgstr "Ningún formato especificado"
#: jkazip:273
#: jkazip:185 jkazip:191 jkazip:197 jkazip:203 jkazip:209 jkazip:215 jkazip:221
#: jkazip:227 jkazip:233 jkazip:239 jkazip:245 jkazip:251 jkazip:257 jkazip:263
msgid "%s has been compressed"
msgstr "%s ha sido comprimido"
#: jkazip:267
msgid "Format rar are not supported for compression"
msgstr "El formato rar no está soportado para la compresión"
#: jkazip:279
#: jkazip:273
msgid "Unknown option"
msgstr "Opción desconocida"

View File

@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-06-08 16:40+0200\n"
"POT-Creation-Date: 2016-06-09 15:19+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"
@@ -17,120 +17,122 @@ msgstr ""
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: jkazip:12
#: jkazip:23 jkazip:29 jkazip:35 jkazip:41 jkazip:47 jkazip:54 jkazip:60
#: jkazip:66 jkazip:72 jkazip:78 jkazip:84 jkazip:90 jkazip:96 jkazip:102
msgid "%s has been decompressed"
msgstr ""
#: jkazip:107 jkazip:275
#: jkazip:106 jkazip:269
msgid "Format %s unknown"
msgstr ""
#: jkazip:113
#: jkazip:112
msgid "No option specified, use jkazip -h"
msgstr ""
#: jkazip:115
#: jkazip:114
msgid "\tsynopsis:\tjkazip <options> <file or directory>"
msgstr ""
#: jkazip:117
#: jkazip:116
msgid "\t-d,\t\tdecompress file"
msgstr ""
#: jkazip:118
#: jkazip:117
msgid ""
"\t-f <format>,\tspecified format whe decompress, necessary only when the "
"name have more than one point before the file extension"
msgstr ""
#: jkazip:119
#: jkazip:118
msgid "\t-c <format>,\tcompress file"
msgstr ""
#: jkazip:120
#: jkazip:119
msgid "\t-h,\t\tshow help box and exit"
msgstr ""
#: jkazip:121
#: jkazip:120
msgid "\t-v,\t\tshow version"
msgstr ""
#: jkazip:123
#: jkazip:122
msgid ""
"\tThe order must be \"jkazip -d [-f format] <file or directory>\" or "
"\"jkazip -c <format> <file or directory\""
msgstr ""
#: jkazip:125
#: jkazip:124
msgid "\tExamples"
msgstr ""
#: jkazip:126
#: jkazip:125
msgid "\tjkazip -d -f \"tar.gz\" file.txt.tar.gz"
msgstr ""
#: jkazip:127
#: jkazip:126
msgid "\tjkazip -d file.7z"
msgstr ""
#: jkazip:128
#: jkazip:127
msgid "\tjkazip -c \"tar.xz\" directory"
msgstr ""
#: jkazip:130
#: jkazip:129
msgid "\tSupported formats: tar, gzip, bzip2, xzip, lzip, 7z, zip and rar"
msgstr ""
#: jkazip:131
#: jkazip:130
msgid ""
"\tOnly one file or directory (some formats don't support directories), for "
"more options use the each program individualy"
msgstr ""
#: jkazip:134
#: jkazip:133
msgid "jkazip by JKA Network; version %s"
msgstr ""
#: jkazip:138 jkazip:172
#: jkazip:137 jkazip:167
msgid "No file or directory specified"
msgstr ""
#: jkazip:144 jkazip:158
msgid "Directory %s will be decompressed"
msgstr ""
#: jkazip:150 jkazip:181
msgid "%s no such file or directory"
msgstr ""
#: jkazip:161
#: jkazip:143 jkazip:156
msgid "File %s will be decompressed"
msgstr ""
#: jkazip:164
#: jkazip:145 jkazip:176
msgid "%s no such file or directory"
msgstr ""
#: jkazip:153
msgid "Directory %s will be decompressed"
msgstr ""
#: jkazip:159
msgid "%s no sush a file or directory"
msgstr ""
#: jkazip:175
#: jkazip:170
msgid "The directory %s will be compressed"
msgstr ""
#: jkazip:178
#: jkazip:173
msgid "The file %s will be compressed"
msgstr ""
#: jkazip:185
msgid "%s has been compressed"
msgstr ""
#: jkazip:187
#: jkazip:181
msgid "No format specified"
msgstr ""
#: jkazip:273
#: jkazip:185 jkazip:191 jkazip:197 jkazip:203 jkazip:209 jkazip:215 jkazip:221
#: jkazip:227 jkazip:233 jkazip:239 jkazip:245 jkazip:251 jkazip:257 jkazip:263
msgid "%s has been compressed"
msgstr ""
#: jkazip:267
msgid "Format rar are not supported for compression"
msgstr ""
#: jkazip:279
#: jkazip:273
msgid "Unknown option"
msgstr ""

View File

@@ -9,7 +9,6 @@ export TEXTDOMAIN='jkazip'
export TEXTDOMAINDIR='/usr/share/locale'
function decompress() {
msg_de=""$(gettext "%s has been decompressed")" "$2""
if [ $files -eq 0 ];then
format=$(ls $2 | cut -f2 -d".")
format2=$(ls $2 | cut -f3 -d".")
@@ -21,86 +20,86 @@ function decompress() {
if [ -z $format2 ];then
tar xvf $2
if [ $? -eq 0 ];then
printf -- $msg_de
printf -- "$(gettext "%s has been decompressed")" "$2"
echo
fi
elif [ $format2 = "gz" ];then
tar xvzf $2
if [ $? -eq 0 ];then
printf -- $msg_de
printf -- "$(gettext "%s has been decompressed")" "$2"
echo
fi
elif [ $format2 = "bz2" ];then
tar xvjf $2
if [ $? -eq 0 ];then
printf -- $msg_de
printf -- "$(gettext "%s has been decompressed")" "$2"
echo
fi
elif [ $format2 = "xz" ];then
tar xvJf $2
if [ $? -eq 0 ];then
printf -- $msg_de
printf -- "$(gettext "%s has been decompressed")" "$2"
echo
fi
elif [ $format2 = "lz" ];then
tar cvf $2 --lzip
if [ $? -eq 0 ];then
printf -- $msg_de
printf -- "$(gettext "%s has been decompressed")" "$2"
echo
fi
fi
elif [ $format = "tlz" ];then
tar cvf $2 --lzip
if [ $? -eq 0 ];then
printf -- $msg_de
printf -- "$(gettext "%s has been decompressed")" "$2"
echo
fi
elif [ $format = "tbz2" ];then
tar xvjf $2
if [ $? -eq 0 ];then
printf -- $msg_de
printf -- "$(gettext "%s has been decompressed")" "$2"
echo
fi
elif [ $format = "tgz" ];then
tar xvzf $2
if [ $? -eq 0 ];then
printf -- $msg_de
printf -- "$(gettext "%s has been decompressed")" "$2"
echo
fi
elif [ $format = "txz" ];then
tar xvJf $2
if [ $? -eq 0 ];then
printf -- $msg_de
printf -- "$(gettext "%s has been decompressed")" "$2"
echo
fi
elif [ $format = "7z" -o $format = "7zip" ];then
7z e $2
if [ $? -eq 0 ];then
printf -- $msg_de
printf -- "$(gettext "%s has been decompressed")" "$2"
echo
fi
elif [ $format = "zip" ];then
unzip $2
if [ $? -eq 0 ];then
printf -- $msg_de
printf -- "$(gettext "%s has been decompressed")" "$2"
echo
fi
elif [ $format = "gz" -o $format = "gzip" ];then
gzip -dk $2
if [ $? -eq 0 ];then
printf -- $msg_de
printf -- "$(gettext "%s has been decompressed")" "$2"
echo
fi
elif [ $format = "bz2" -o $format = "bzip" ];then
bzip2 -dk $2
if [ $? -eq 0 ];then
printf -- $msg_de
printf -- "$(gettext "%s has been decompressed")" "$2"
echo
fi
elif [ $format = "rar" ];then
unrar x $2
if [ $? -eq 0 ];then
printf -- $msg_de
printf -- "$(gettext "%s has been decompressed")" "$2"
echo
fi
else
@@ -139,13 +138,9 @@ elif [ $1 = "-d" ];then
exit
elif [ $2 = "-f" ];then
files=1
elif [ -d $2 ];then
files=0
printf -- "$(gettext "Directory %s will be decompressed")" "$2"
echo
elif [ -f $2 ];then
files=0
echo "$(gettext "File $ will be decompressed")"
echo "$(gettext "File %s will be decompressed")" "$2"
else
printf -- "$(gettext "%s no such file or directory")" "$2"
echo
@@ -182,91 +177,90 @@ elif [ $1 = "-c" ];then
echo
exit
fi
msg_co=""$(gettext "%s has been compressed")" "$3""
if [ -z $2 ];then
echo "$(gettext "No format specified")"
elif [ $2 = "tar" ] 2> /dev/null ;then
tar cvf $3.tar $3
if [ $? -eq 0 ];then
printf -- $msg_co
printf -- "$(gettext "%s has been compressed")" "$3"
echo
fi
elif [ $2 = "tar.gz" ] 2> /dev/null ;then
tar cvzf $3.tar.gz $3
if [ $? -eq 0 ];then
printf -- $msg_co
printf -- "$(gettext "%s has been compressed")" "$3"
echo
fi
elif [ $2 = "tar.bz2" ] 2> /dev/null ;then
tar cvjf $3.tar.bz2 $3
if [ $? -eq 0 ];then
printf -- $msg_co
printf -- "$(gettext "%s has been compressed")" "$3"
echo
fi
elif [ $2 = "tar.xz" ] 2> /dev/null ;then
tar cvJf $3.tar.xz $3
if [ $? -eq 0 ];then
printf -- $msg_co
printf -- "$(gettext "%s has been compressed")" "$3"
echo
fi
elif [ $2 = "tar.xz" ] 2> /dev/null ;then
tar cvf $3.tar.lz --lzip $3
if [ $? -eq 0 ];then
printf -- $msg_co
printf -- "$(gettext "%s has been compressed")" "$3"
echo
fi
elif [ $2 = "tlz" ] 2> /dev/null ;then
tar cvf $3.tlz --lzip $3
if [ $? -eq 0 ];then
printf -- $msg_co
printf -- "$(gettext "%s has been compressed")" "$3"
echo
fi
elif [ $2 = "tbz2" ] 2> /dev/null ;then
tar cvjf $3.tbz2 $3
if [ $? -eq 0 ];then
printf -- $msg_co
printf -- "$(gettext "%s has been compressed")" "$3"
echo
fi
elif [ $2 = "tgz" ] 2> /dev/null ;then
tar cvjf $3.tgz $3
if [ $? -eq 0 ];then
printf -- $msg_co
printf -- "$(gettext "%s has been compressed")" "$3"
echo
fi
elif [ $2 = "txz" ] 2> /dev/null ;then
tar cvJf $3.txz $3
if [ $? -eq 0 ];then
printf -- $msg_co
printf -- "$(gettext "%s has been compressed")" "$3"
echo
fi
elif [ $2 = "7z" -o $2 = "7zip" ] 2> /dev/null ;then
7z a $3.7z $3
if [ $? -eq 0 ];then
printf -- $msg_co
printf -- "$(gettext "%s has been compressed")" "$3"
echo
fi
elif [ $2 = "zip" ] 2> /dev/null ;then
zip $3.zip $3
if [ $? -eq 0 ];then
printf -- $msg_co
printf -- "$(gettext "%s has been compressed")" "$3"
echo
fi
elif [ $2 = "gz" -o $2 = "gzip" ] 2> /dev/null ;then
gzip -9k $3
if [ $? -eq 0 ];then
printf -- $msg_co
printf -- "$(gettext "%s has been compressed")" "$3"
echo
fi
elif [ $2 = "bz2" -o $2 = "bzip2" ] 2> /dev/null ;then
bzip2 -9k $3
if [ $? -eq 0 ];then
printf -- $msg_co
printf -- "$(gettext "%s has been compressed")" "$3"
echo
fi
elif [ $2 = "lz" -o $2 = "lzip" ] 2> /dev/null ;then
lzip -9k $3
if [ $? -eq 0 ];then
printf -- $msg_co
printf -- "$(gettext "%s has been compressed")" "$3"
echo
fi
elif [ $2 = "rar" ] 2> /dev/null ;then