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:
Binary file not shown.
@@ -7,8 +7,8 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: \n"
|
"Project-Id-Version: \n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2016-06-06 20:18+0200\n"
|
"POT-Creation-Date: 2016-06-09 15:19+0200\n"
|
||||||
"PO-Revision-Date: 2016-06-06 20:19+0200\n"
|
"PO-Revision-Date: 2016-06-09 15:22+0200\n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
@@ -18,27 +18,28 @@ msgstr ""
|
|||||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||||
"Language: es\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"
|
msgid "%s has been decompressed"
|
||||||
msgstr "%s se ha descomprimido"
|
msgstr "%s se ha descomprimido"
|
||||||
|
|
||||||
#: jkazip:107 jkazip:275
|
#: jkazip:106 jkazip:269
|
||||||
msgid "Format %s unknown"
|
msgid "Format %s unknown"
|
||||||
msgstr "Formato %s desconocido"
|
msgstr "Formato %s desconocido"
|
||||||
|
|
||||||
#: jkazip:113
|
#: jkazip:112
|
||||||
msgid "No option specified, use jkazip -h"
|
msgid "No option specified, use jkazip -h"
|
||||||
msgstr "Ninguna opción especificada, use jkazip -h"
|
msgstr "Ninguna opción especificada, use jkazip -h"
|
||||||
|
|
||||||
#: jkazip:115
|
#: jkazip:114
|
||||||
msgid "\tsynopsis:\tjkazip <options> <file or directory>"
|
msgid "\tsynopsis:\tjkazip <options> <file or directory>"
|
||||||
msgstr "\tsinopsis:\tjkazip <opciones> <archivo o directorio>"
|
msgstr "\tsinopsis:\tjkazip <opciones> <archivo o directorio>"
|
||||||
|
|
||||||
#: jkazip:117
|
#: jkazip:116
|
||||||
msgid "\t-d,\t\tdecompress file"
|
msgid "\t-d,\t\tdecompress file"
|
||||||
msgstr "\t-d,\t\tdescomprimir archivo"
|
msgstr "\t-d,\t\tdescomprimir archivo"
|
||||||
|
|
||||||
#: jkazip:118
|
#: jkazip:117
|
||||||
msgid ""
|
msgid ""
|
||||||
"\t-f <format>,\tspecified format whe decompress, necessary only when the "
|
"\t-f <format>,\tspecified format whe decompress, necessary only when the "
|
||||||
"name have more than one point before the file extension"
|
"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 "
|
"\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"
|
"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"
|
msgid "\t-c <format>,\tcompress file"
|
||||||
msgstr "\t-c <formato>,\tcomprimir archivo"
|
msgstr "\t-c <formato>,\tcomprimir archivo"
|
||||||
|
|
||||||
#: jkazip:120
|
#: jkazip:119
|
||||||
msgid "\t-h,\t\tshow help box and exit"
|
msgid "\t-h,\t\tshow help box and exit"
|
||||||
msgstr "\t-h,\t\tmuestra la ayuda y termina"
|
msgstr "\t-h,\t\tmuestra la ayuda y termina"
|
||||||
|
|
||||||
#: jkazip:121
|
#: jkazip:120
|
||||||
msgid "\t-v,\t\tshow version"
|
msgid "\t-v,\t\tshow version"
|
||||||
msgstr "\t-v,\t\tmuestra la versión"
|
msgstr "\t-v,\t\tmuestra la versión"
|
||||||
|
|
||||||
#: jkazip:123
|
#: jkazip:122
|
||||||
msgid ""
|
msgid ""
|
||||||
"\tThe order must be \"jkazip -d [-f format] <file or directory>\" or "
|
"\tThe order must be \"jkazip -d [-f format] <file or directory>\" or "
|
||||||
"\"jkazip -c <format> <file or directory\""
|
"\"jkazip -c <format> <file or directory\""
|
||||||
@@ -66,28 +67,27 @@ msgstr ""
|
|||||||
"\tEl orden debe ser \"jkazip -d [-f formato] <archivo o directorio>\" o "
|
"\tEl orden debe ser \"jkazip -d [-f formato] <archivo o directorio>\" o "
|
||||||
"\"jkazip -c <formato> <archivo o directorio>\""
|
"\"jkazip -c <formato> <archivo o directorio>\""
|
||||||
|
|
||||||
#: jkazip:125
|
#: jkazip:124
|
||||||
msgid "\tExamples"
|
msgid "\tExamples"
|
||||||
msgstr "\tEjemplos"
|
msgstr "\tEjemplos"
|
||||||
|
|
||||||
#: jkazip:126
|
#: jkazip:125
|
||||||
msgid "\tjkazip -d -f \"tar.gz\" file.txt.tar.gz"
|
msgid "\tjkazip -d -f \"tar.gz\" file.txt.tar.gz"
|
||||||
msgstr "\tjkazip -d -f \"tar.gz\" archivo.txt.tar.gz"
|
msgstr "\tjkazip -d -f \"tar.gz\" archivo.txt.tar.gz"
|
||||||
|
|
||||||
#: jkazip:127
|
#: jkazip:126
|
||||||
msgid "\tjkazip -d file.7z"
|
msgid "\tjkazip -d file.7z"
|
||||||
msgstr "\tjkazip -d archivo.7z"
|
msgstr "\tjkazip -d archivo.7z"
|
||||||
|
|
||||||
#: jkazip:128
|
#: jkazip:127
|
||||||
msgid "\tjkazip -c \"tar.xz\" directory"
|
msgid "\tjkazip -c \"tar.xz\" directory"
|
||||||
msgstr "\tjkazip -c \"tar.xz\" directorio"
|
msgstr "\tjkazip -c \"tar.xz\" directorio"
|
||||||
|
|
||||||
#: jkazip:130
|
#: jkazip:129
|
||||||
msgid "\tSupported formats: tar, gzip, bzip2, xzip, lzip, 7z, zip and rar"
|
msgid "\tSupported formats: tar, gzip, bzip2, xzip, lzip, 7z, zip and rar"
|
||||||
msgstr "\tFormatos soportados: tar, gzip, bzip2, xzip, lzip, 7z, zip y "
|
msgstr "\tFormatos soportados: tar, gzip, bzip2, xzip, lzip, 7z, zip y rar"
|
||||||
"tar"
|
|
||||||
|
|
||||||
#: jkazip:131
|
#: jkazip:130
|
||||||
msgid ""
|
msgid ""
|
||||||
"\tOnly one file or directory (some formats don't support directories), for "
|
"\tOnly one file or directory (some formats don't support directories), for "
|
||||||
"more options use the each program individualy"
|
"more options use the each program individualy"
|
||||||
@@ -95,50 +95,51 @@ msgstr ""
|
|||||||
"\tSolo un fichero o directorio (algunos formatos no soportan directorios), "
|
"\tSolo un fichero o directorio (algunos formatos no soportan directorios), "
|
||||||
"para mas opciones usar cada programa individualmente"
|
"para mas opciones usar cada programa individualmente"
|
||||||
|
|
||||||
#: jkazip:134
|
#: jkazip:133
|
||||||
msgid "jkazip by JKA Network; version %s"
|
msgid "jkazip by JKA Network; version %s"
|
||||||
msgstr "jkazip por JKA Network; versión %s"
|
msgstr "jkazip por JKA Network; versión %s"
|
||||||
|
|
||||||
#: jkazip:138 jkazip:172
|
#: jkazip:137 jkazip:167
|
||||||
msgid "No file or directory specified"
|
msgid "No file or directory specified"
|
||||||
msgstr "Ningún archivo o directorio especificado"
|
msgstr "Ningún archivo o directorio especificado"
|
||||||
|
|
||||||
#: jkazip:144 jkazip:158
|
#: jkazip:143 jkazip:156
|
||||||
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
|
|
||||||
msgid "File %s will be decompressed"
|
msgid "File %s will be decompressed"
|
||||||
msgstr "El archivo %s será descomprimido"
|
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"
|
msgid "%s no sush a file or directory"
|
||||||
msgstr "%s no existe el archivo o el directorio"
|
msgstr "%s no existe el archivo o el directorio"
|
||||||
|
|
||||||
#: jkazip:175
|
#: jkazip:170
|
||||||
msgid "The directory %s will be compressed"
|
msgid "The directory %s will be compressed"
|
||||||
msgstr "El directorio %s será comprimido"
|
msgstr "El directorio %s será comprimido"
|
||||||
|
|
||||||
#: jkazip:178
|
#: jkazip:173
|
||||||
msgid "The file %s will be compressed"
|
msgid "The file %s will be compressed"
|
||||||
msgstr "El archivo %s será comprimido"
|
msgstr "El archivo %s será comprimido"
|
||||||
|
|
||||||
#: jkazip:185
|
#: jkazip:181
|
||||||
msgid "%s has been compressed"
|
|
||||||
msgstr "%s ha sido comprimido"
|
|
||||||
|
|
||||||
#: jkazip:187
|
|
||||||
msgid "No format specified"
|
msgid "No format specified"
|
||||||
msgstr "Ningún formato especificado"
|
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"
|
msgid "Format rar are not supported for compression"
|
||||||
msgstr "El formato rar no está soportado para la compresión"
|
msgstr "El formato rar no está soportado para la compresión"
|
||||||
|
|
||||||
#: jkazip:279
|
#: jkazip:273
|
||||||
msgid "Unknown option"
|
msgid "Unknown option"
|
||||||
msgstr "Opción desconocida"
|
msgstr "Opción desconocida"
|
||||||
|
|||||||
@@ -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-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"
|
"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"
|
||||||
@@ -17,120 +17,122 @@ msgstr ""
|
|||||||
"Content-Type: text/plain; charset=CHARSET\n"
|
"Content-Type: text/plain; charset=CHARSET\n"
|
||||||
"Content-Transfer-Encoding: 8bit\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"
|
msgid "%s has been decompressed"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: jkazip:107 jkazip:275
|
#: jkazip:106 jkazip:269
|
||||||
msgid "Format %s unknown"
|
msgid "Format %s unknown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: jkazip:113
|
#: jkazip:112
|
||||||
msgid "No option specified, use jkazip -h"
|
msgid "No option specified, use jkazip -h"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: jkazip:115
|
#: jkazip:114
|
||||||
msgid "\tsynopsis:\tjkazip <options> <file or directory>"
|
msgid "\tsynopsis:\tjkazip <options> <file or directory>"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: jkazip:117
|
#: jkazip:116
|
||||||
msgid "\t-d,\t\tdecompress file"
|
msgid "\t-d,\t\tdecompress file"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: jkazip:118
|
#: jkazip:117
|
||||||
msgid ""
|
msgid ""
|
||||||
"\t-f <format>,\tspecified format whe decompress, necessary only when the "
|
"\t-f <format>,\tspecified format whe decompress, necessary only when the "
|
||||||
"name have more than one point before the file extension"
|
"name have more than one point before the file extension"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: jkazip:119
|
#: jkazip:118
|
||||||
msgid "\t-c <format>,\tcompress file"
|
msgid "\t-c <format>,\tcompress file"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: jkazip:120
|
#: jkazip:119
|
||||||
msgid "\t-h,\t\tshow help box and exit"
|
msgid "\t-h,\t\tshow help box and exit"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: jkazip:121
|
#: jkazip:120
|
||||||
msgid "\t-v,\t\tshow version"
|
msgid "\t-v,\t\tshow version"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: jkazip:123
|
#: jkazip:122
|
||||||
msgid ""
|
msgid ""
|
||||||
"\tThe order must be \"jkazip -d [-f format] <file or directory>\" or "
|
"\tThe order must be \"jkazip -d [-f format] <file or directory>\" or "
|
||||||
"\"jkazip -c <format> <file or directory\""
|
"\"jkazip -c <format> <file or directory\""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: jkazip:125
|
#: jkazip:124
|
||||||
msgid "\tExamples"
|
msgid "\tExamples"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: jkazip:126
|
#: jkazip:125
|
||||||
msgid "\tjkazip -d -f \"tar.gz\" file.txt.tar.gz"
|
msgid "\tjkazip -d -f \"tar.gz\" file.txt.tar.gz"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: jkazip:127
|
#: jkazip:126
|
||||||
msgid "\tjkazip -d file.7z"
|
msgid "\tjkazip -d file.7z"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: jkazip:128
|
#: jkazip:127
|
||||||
msgid "\tjkazip -c \"tar.xz\" directory"
|
msgid "\tjkazip -c \"tar.xz\" directory"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: jkazip:130
|
#: jkazip:129
|
||||||
msgid "\tSupported formats: tar, gzip, bzip2, xzip, lzip, 7z, zip and rar"
|
msgid "\tSupported formats: tar, gzip, bzip2, xzip, lzip, 7z, zip and rar"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: jkazip:131
|
#: jkazip:130
|
||||||
msgid ""
|
msgid ""
|
||||||
"\tOnly one file or directory (some formats don't support directories), for "
|
"\tOnly one file or directory (some formats don't support directories), for "
|
||||||
"more options use the each program individualy"
|
"more options use the each program individualy"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: jkazip:134
|
#: jkazip:133
|
||||||
msgid "jkazip by JKA Network; version %s"
|
msgid "jkazip by JKA Network; version %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: jkazip:138 jkazip:172
|
#: jkazip:137 jkazip:167
|
||||||
msgid "No file or directory specified"
|
msgid "No file or directory specified"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: jkazip:144 jkazip:158
|
#: jkazip:143 jkazip:156
|
||||||
msgid "Directory %s will be decompressed"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: jkazip:150 jkazip:181
|
|
||||||
msgid "%s no such file or directory"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: jkazip:161
|
|
||||||
msgid "File %s will be decompressed"
|
msgid "File %s will be decompressed"
|
||||||
msgstr ""
|
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"
|
msgid "%s no sush a file or directory"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: jkazip:175
|
#: jkazip:170
|
||||||
msgid "The directory %s will be compressed"
|
msgid "The directory %s will be compressed"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: jkazip:178
|
#: jkazip:173
|
||||||
msgid "The file %s will be compressed"
|
msgid "The file %s will be compressed"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: jkazip:185
|
#: jkazip:181
|
||||||
msgid "%s has been compressed"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: jkazip:187
|
|
||||||
msgid "No format specified"
|
msgid "No format specified"
|
||||||
msgstr ""
|
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"
|
msgid "Format rar are not supported for compression"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: jkazip:279
|
#: jkazip:273
|
||||||
msgid "Unknown option"
|
msgid "Unknown option"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ export TEXTDOMAIN='jkazip'
|
|||||||
export TEXTDOMAINDIR='/usr/share/locale'
|
export TEXTDOMAINDIR='/usr/share/locale'
|
||||||
|
|
||||||
function decompress() {
|
function decompress() {
|
||||||
msg_de=""$(gettext "%s has been decompressed")" "$2""
|
|
||||||
if [ $files -eq 0 ];then
|
if [ $files -eq 0 ];then
|
||||||
format=$(ls $2 | cut -f2 -d".")
|
format=$(ls $2 | cut -f2 -d".")
|
||||||
format2=$(ls $2 | cut -f3 -d".")
|
format2=$(ls $2 | cut -f3 -d".")
|
||||||
@@ -21,86 +20,86 @@ function decompress() {
|
|||||||
if [ -z $format2 ];then
|
if [ -z $format2 ];then
|
||||||
tar xvf $2
|
tar xvf $2
|
||||||
if [ $? -eq 0 ];then
|
if [ $? -eq 0 ];then
|
||||||
printf -- $msg_de
|
printf -- "$(gettext "%s has been decompressed")" "$2"
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
elif [ $format2 = "gz" ];then
|
elif [ $format2 = "gz" ];then
|
||||||
tar xvzf $2
|
tar xvzf $2
|
||||||
if [ $? -eq 0 ];then
|
if [ $? -eq 0 ];then
|
||||||
printf -- $msg_de
|
printf -- "$(gettext "%s has been decompressed")" "$2"
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
elif [ $format2 = "bz2" ];then
|
elif [ $format2 = "bz2" ];then
|
||||||
tar xvjf $2
|
tar xvjf $2
|
||||||
if [ $? -eq 0 ];then
|
if [ $? -eq 0 ];then
|
||||||
printf -- $msg_de
|
printf -- "$(gettext "%s has been decompressed")" "$2"
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
elif [ $format2 = "xz" ];then
|
elif [ $format2 = "xz" ];then
|
||||||
tar xvJf $2
|
tar xvJf $2
|
||||||
if [ $? -eq 0 ];then
|
if [ $? -eq 0 ];then
|
||||||
printf -- $msg_de
|
printf -- "$(gettext "%s has been decompressed")" "$2"
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
elif [ $format2 = "lz" ];then
|
elif [ $format2 = "lz" ];then
|
||||||
tar cvf $2 --lzip
|
tar cvf $2 --lzip
|
||||||
if [ $? -eq 0 ];then
|
if [ $? -eq 0 ];then
|
||||||
printf -- $msg_de
|
printf -- "$(gettext "%s has been decompressed")" "$2"
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
elif [ $format = "tlz" ];then
|
elif [ $format = "tlz" ];then
|
||||||
tar cvf $2 --lzip
|
tar cvf $2 --lzip
|
||||||
if [ $? -eq 0 ];then
|
if [ $? -eq 0 ];then
|
||||||
printf -- $msg_de
|
printf -- "$(gettext "%s has been decompressed")" "$2"
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
elif [ $format = "tbz2" ];then
|
elif [ $format = "tbz2" ];then
|
||||||
tar xvjf $2
|
tar xvjf $2
|
||||||
if [ $? -eq 0 ];then
|
if [ $? -eq 0 ];then
|
||||||
printf -- $msg_de
|
printf -- "$(gettext "%s has been decompressed")" "$2"
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
elif [ $format = "tgz" ];then
|
elif [ $format = "tgz" ];then
|
||||||
tar xvzf $2
|
tar xvzf $2
|
||||||
if [ $? -eq 0 ];then
|
if [ $? -eq 0 ];then
|
||||||
printf -- $msg_de
|
printf -- "$(gettext "%s has been decompressed")" "$2"
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
elif [ $format = "txz" ];then
|
elif [ $format = "txz" ];then
|
||||||
tar xvJf $2
|
tar xvJf $2
|
||||||
if [ $? -eq 0 ];then
|
if [ $? -eq 0 ];then
|
||||||
printf -- $msg_de
|
printf -- "$(gettext "%s has been decompressed")" "$2"
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
elif [ $format = "7z" -o $format = "7zip" ];then
|
elif [ $format = "7z" -o $format = "7zip" ];then
|
||||||
7z e $2
|
7z e $2
|
||||||
if [ $? -eq 0 ];then
|
if [ $? -eq 0 ];then
|
||||||
printf -- $msg_de
|
printf -- "$(gettext "%s has been decompressed")" "$2"
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
elif [ $format = "zip" ];then
|
elif [ $format = "zip" ];then
|
||||||
unzip $2
|
unzip $2
|
||||||
if [ $? -eq 0 ];then
|
if [ $? -eq 0 ];then
|
||||||
printf -- $msg_de
|
printf -- "$(gettext "%s has been decompressed")" "$2"
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
elif [ $format = "gz" -o $format = "gzip" ];then
|
elif [ $format = "gz" -o $format = "gzip" ];then
|
||||||
gzip -dk $2
|
gzip -dk $2
|
||||||
if [ $? -eq 0 ];then
|
if [ $? -eq 0 ];then
|
||||||
printf -- $msg_de
|
printf -- "$(gettext "%s has been decompressed")" "$2"
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
elif [ $format = "bz2" -o $format = "bzip" ];then
|
elif [ $format = "bz2" -o $format = "bzip" ];then
|
||||||
bzip2 -dk $2
|
bzip2 -dk $2
|
||||||
if [ $? -eq 0 ];then
|
if [ $? -eq 0 ];then
|
||||||
printf -- $msg_de
|
printf -- "$(gettext "%s has been decompressed")" "$2"
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
elif [ $format = "rar" ];then
|
elif [ $format = "rar" ];then
|
||||||
unrar x $2
|
unrar x $2
|
||||||
if [ $? -eq 0 ];then
|
if [ $? -eq 0 ];then
|
||||||
printf -- $msg_de
|
printf -- "$(gettext "%s has been decompressed")" "$2"
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
@@ -139,13 +138,9 @@ elif [ $1 = "-d" ];then
|
|||||||
exit
|
exit
|
||||||
elif [ $2 = "-f" ];then
|
elif [ $2 = "-f" ];then
|
||||||
files=1
|
files=1
|
||||||
elif [ -d $2 ];then
|
|
||||||
files=0
|
|
||||||
printf -- "$(gettext "Directory %s will be decompressed")" "$2"
|
|
||||||
echo
|
|
||||||
elif [ -f $2 ];then
|
elif [ -f $2 ];then
|
||||||
files=0
|
files=0
|
||||||
echo "$(gettext "File $ will be decompressed")"
|
echo "$(gettext "File %s will be decompressed")" "$2"
|
||||||
else
|
else
|
||||||
printf -- "$(gettext "%s no such file or directory")" "$2"
|
printf -- "$(gettext "%s no such file or directory")" "$2"
|
||||||
echo
|
echo
|
||||||
@@ -182,91 +177,90 @@ elif [ $1 = "-c" ];then
|
|||||||
echo
|
echo
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
msg_co=""$(gettext "%s has been compressed")" "$3""
|
|
||||||
if [ -z $2 ];then
|
if [ -z $2 ];then
|
||||||
echo "$(gettext "No format specified")"
|
echo "$(gettext "No format specified")"
|
||||||
elif [ $2 = "tar" ] 2> /dev/null ;then
|
elif [ $2 = "tar" ] 2> /dev/null ;then
|
||||||
tar cvf $3.tar $3
|
tar cvf $3.tar $3
|
||||||
if [ $? -eq 0 ];then
|
if [ $? -eq 0 ];then
|
||||||
printf -- $msg_co
|
printf -- "$(gettext "%s has been compressed")" "$3"
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
elif [ $2 = "tar.gz" ] 2> /dev/null ;then
|
elif [ $2 = "tar.gz" ] 2> /dev/null ;then
|
||||||
tar cvzf $3.tar.gz $3
|
tar cvzf $3.tar.gz $3
|
||||||
if [ $? -eq 0 ];then
|
if [ $? -eq 0 ];then
|
||||||
printf -- $msg_co
|
printf -- "$(gettext "%s has been compressed")" "$3"
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
elif [ $2 = "tar.bz2" ] 2> /dev/null ;then
|
elif [ $2 = "tar.bz2" ] 2> /dev/null ;then
|
||||||
tar cvjf $3.tar.bz2 $3
|
tar cvjf $3.tar.bz2 $3
|
||||||
if [ $? -eq 0 ];then
|
if [ $? -eq 0 ];then
|
||||||
printf -- $msg_co
|
printf -- "$(gettext "%s has been compressed")" "$3"
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
elif [ $2 = "tar.xz" ] 2> /dev/null ;then
|
elif [ $2 = "tar.xz" ] 2> /dev/null ;then
|
||||||
tar cvJf $3.tar.xz $3
|
tar cvJf $3.tar.xz $3
|
||||||
if [ $? -eq 0 ];then
|
if [ $? -eq 0 ];then
|
||||||
printf -- $msg_co
|
printf -- "$(gettext "%s has been compressed")" "$3"
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
elif [ $2 = "tar.xz" ] 2> /dev/null ;then
|
elif [ $2 = "tar.xz" ] 2> /dev/null ;then
|
||||||
tar cvf $3.tar.lz --lzip $3
|
tar cvf $3.tar.lz --lzip $3
|
||||||
if [ $? -eq 0 ];then
|
if [ $? -eq 0 ];then
|
||||||
printf -- $msg_co
|
printf -- "$(gettext "%s has been compressed")" "$3"
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
elif [ $2 = "tlz" ] 2> /dev/null ;then
|
elif [ $2 = "tlz" ] 2> /dev/null ;then
|
||||||
tar cvf $3.tlz --lzip $3
|
tar cvf $3.tlz --lzip $3
|
||||||
if [ $? -eq 0 ];then
|
if [ $? -eq 0 ];then
|
||||||
printf -- $msg_co
|
printf -- "$(gettext "%s has been compressed")" "$3"
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
elif [ $2 = "tbz2" ] 2> /dev/null ;then
|
elif [ $2 = "tbz2" ] 2> /dev/null ;then
|
||||||
tar cvjf $3.tbz2 $3
|
tar cvjf $3.tbz2 $3
|
||||||
if [ $? -eq 0 ];then
|
if [ $? -eq 0 ];then
|
||||||
printf -- $msg_co
|
printf -- "$(gettext "%s has been compressed")" "$3"
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
elif [ $2 = "tgz" ] 2> /dev/null ;then
|
elif [ $2 = "tgz" ] 2> /dev/null ;then
|
||||||
tar cvjf $3.tgz $3
|
tar cvjf $3.tgz $3
|
||||||
if [ $? -eq 0 ];then
|
if [ $? -eq 0 ];then
|
||||||
printf -- $msg_co
|
printf -- "$(gettext "%s has been compressed")" "$3"
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
elif [ $2 = "txz" ] 2> /dev/null ;then
|
elif [ $2 = "txz" ] 2> /dev/null ;then
|
||||||
tar cvJf $3.txz $3
|
tar cvJf $3.txz $3
|
||||||
if [ $? -eq 0 ];then
|
if [ $? -eq 0 ];then
|
||||||
printf -- $msg_co
|
printf -- "$(gettext "%s has been compressed")" "$3"
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
elif [ $2 = "7z" -o $2 = "7zip" ] 2> /dev/null ;then
|
elif [ $2 = "7z" -o $2 = "7zip" ] 2> /dev/null ;then
|
||||||
7z a $3.7z $3
|
7z a $3.7z $3
|
||||||
if [ $? -eq 0 ];then
|
if [ $? -eq 0 ];then
|
||||||
printf -- $msg_co
|
printf -- "$(gettext "%s has been compressed")" "$3"
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
elif [ $2 = "zip" ] 2> /dev/null ;then
|
elif [ $2 = "zip" ] 2> /dev/null ;then
|
||||||
zip $3.zip $3
|
zip $3.zip $3
|
||||||
if [ $? -eq 0 ];then
|
if [ $? -eq 0 ];then
|
||||||
printf -- $msg_co
|
printf -- "$(gettext "%s has been compressed")" "$3"
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
elif [ $2 = "gz" -o $2 = "gzip" ] 2> /dev/null ;then
|
elif [ $2 = "gz" -o $2 = "gzip" ] 2> /dev/null ;then
|
||||||
gzip -9k $3
|
gzip -9k $3
|
||||||
if [ $? -eq 0 ];then
|
if [ $? -eq 0 ];then
|
||||||
printf -- $msg_co
|
printf -- "$(gettext "%s has been compressed")" "$3"
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
elif [ $2 = "bz2" -o $2 = "bzip2" ] 2> /dev/null ;then
|
elif [ $2 = "bz2" -o $2 = "bzip2" ] 2> /dev/null ;then
|
||||||
bzip2 -9k $3
|
bzip2 -9k $3
|
||||||
if [ $? -eq 0 ];then
|
if [ $? -eq 0 ];then
|
||||||
printf -- $msg_co
|
printf -- "$(gettext "%s has been compressed")" "$3"
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
elif [ $2 = "lz" -o $2 = "lzip" ] 2> /dev/null ;then
|
elif [ $2 = "lz" -o $2 = "lzip" ] 2> /dev/null ;then
|
||||||
lzip -9k $3
|
lzip -9k $3
|
||||||
if [ $? -eq 0 ];then
|
if [ $? -eq 0 ];then
|
||||||
printf -- $msg_co
|
printf -- "$(gettext "%s has been compressed")" "$3"
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
elif [ $2 = "rar" ] 2> /dev/null ;then
|
elif [ $2 = "rar" ] 2> /dev/null ;then
|
||||||
|
|||||||
Reference in New Issue
Block a user