1
0
mirror of https://gitlab.com/JKANetwork/jka-toolkit.git synced 2026-02-21 12:23:46 +01:00

Add spanish translation to jkazip

This commit is contained in:
JoseluCross
2016-06-06 16:35:08 +02:00
parent d795f73dd3
commit fd753f43cc
5 changed files with 276 additions and 54 deletions

Binary file not shown.

View File

@@ -0,0 +1,111 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-06-06 16:33+0200\n"
"PO-Revision-Date: 2016-06-06 16:34+0200\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.8.7.1\n"
"Last-Translator: JoseluCross <jlgarrido97@gmail.com>\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Language: es\n"
#: jkazip:12
msgid "%s has been decompressed"
msgstr "%s se ha descomprimido"
#: jkazip:83
msgid "Format %s unknown"
msgstr "Formato %s desconocido"
#: jkazip:88
msgid "No option specified, use jkazip -h"
msgstr "Ninguna opción especificada, use jkazip -h"
#: jkazip:90
msgid "\tsynopsis:\tjkazip <options> <file or directory>"
msgstr "\tsinopsis:\tjkazip <opciones> <archivo o directorio>"
#: jkazip:92
msgid "\t-d,\t\tdecompress file"
msgstr "\t-d,\t\tdescomprimir archivo"
#: jkazip:93
msgid ""
"\t-f <format>,\tspecified format whe decompress, necessary only when the "
"name have more than one point before the file extension"
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:94
msgid "\t-c <format>,\tcompress file"
msgstr "\t-c <formato>,\tcomprimir archivo"
#: jkazip:95
msgid "\t-h,\t\tshow help box and exit"
msgstr "\t-h,\t\tmuestra la ayuda y termina"
#: jkazip:96
msgid "\t-v,\t\tshow version"
msgstr "\t-v,\t\tmuestra la versión"
#: jkazip:98
msgid ""
"\tThe order must be \"jkazip -d [-f format] <file or directory>\" or "
"\"jkazip -c <format> <file or directory\""
msgstr ""
"\tEl orden debe ser \"jkazip -d [-f formato] <archivo o directorio>\" o "
"\"jkazip -c <formato> <archivo o directorio>\""
#: jkazip:100
msgid "\tExamples"
msgstr "\tEjemplos"
#: jkazip:101
msgid "\tjkazip -d -f \"tar.gz\" file.txt.tar.gz"
msgstr "\tjkazip -d -f \"tar.gz\" archivo.txt.tar.gz"
#: jkazip:102
msgid "\tjkazip -d file.7z"
msgstr "\tjkazip -d archivo.7z"
#: jkazip:103
msgid "\tjkazip -c \"tar.xz\" directory"
msgstr "\tjkazip -c \"tar.xz\" directorio"
#: jkazip:105
msgid "\tSupported formats: tar,gzip,bzip2,xzip,7z,zip and rar"
msgstr "\tFormatos soportados: tar,gzip,bzip2,xzip,7z,zip y tar"
#: jkazip:106
msgid ""
"\tOnly one file or directory (some formats don't support directories), for "
"more options use the each program individualy"
msgstr ""
"\tSolo un fichero o directorio (algunos formatos no soportan directorios), "
"para mas opciones usar cada programa individualmente"
#: jkazip:109
msgid "jkazip by JKA Network; version %s"
msgstr "jkazip por JKA Network; versión %s"
#: jkazip:112 jkazip:141
msgid "No file or directory specified"
msgstr "Ningún archivo o directorio especificado"
#: jkazip:153
msgid "No format specified"
msgstr "Ningún formato especificado"
#: jkazip:218
msgid "Unknown option"
msgstr "Opción desconocida"

View File

@@ -0,0 +1,104 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-06-06 16:32+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"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: jkazip:12
msgid "%s has been decompressed"
msgstr ""
#: jkazip:83
msgid "Format %s unknown"
msgstr ""
#: jkazip:88
msgid "No option specified, use jkazip -h"
msgstr ""
#: jkazip:90
msgid "\tsynopsis:\tjkazip <options> <file or directory>"
msgstr ""
#: jkazip:92
msgid "\t-d,\t\tdecompress file"
msgstr ""
#: jkazip:93
msgid ""
"\t-f <format>,\tspecified format whe decompress, necessary only when the "
"name have more than one point before the file extension"
msgstr ""
#: jkazip:94
msgid "\t-c <format>,\tcompress file"
msgstr ""
#: jkazip:95
msgid "\t-h,\t\tshow help box and exit"
msgstr ""
#: jkazip:96
msgid "\t-v,\t\tshow version"
msgstr ""
#: jkazip:98
msgid ""
"\tThe order must be \"jkazip -d [-f format] <file or directory>\" or "
"\"jkazip -c <format> <file or directory\""
msgstr ""
#: jkazip:100
msgid "\tExamples"
msgstr ""
#: jkazip:101
msgid "\tjkazip -d -f \"tar.gz\" file.txt.tar.gz"
msgstr ""
#: jkazip:102
msgid "\tjkazip -d file.7z"
msgstr ""
#: jkazip:103
msgid "\tjkazip -c \"tar.xz\" directory"
msgstr ""
#: jkazip:105
msgid "\tSupported formats: tar,gzip,bzip2,xzip,7z,zip and rar"
msgstr ""
#: jkazip:106
msgid ""
"\tOnly one file or directory (some formats don't support directories), for "
"more options use the each program individualy"
msgstr ""
#: jkazip:109
msgid "jkazip by JKA Network; version %s"
msgstr ""
#: jkazip:112 jkazip:141
msgid "No file or directory specified"
msgstr ""
#: jkazip:153
msgid "No format specified"
msgstr ""
#: jkazip:218
msgid "Unknown option"
msgstr ""

View File

@@ -3,7 +3,13 @@
#A script for de/compress files and folders in many formats
#Author: JKA Network - contacto@jkanetwork.com
#Function decompress(); decompress the file whith the format especified
# gettext initialization
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".")
@@ -15,198 +21,199 @@ function decompress() {
if [ -z $format2 ];then
tar xvf $2
if [ $? -eq 0 ];then
echo "$2 has been decompressed"
echo $msg_de
fi
elif [ $format2 = "gz" ];then
tar xvzf $2
if [ $? -eq 0 ];then
echo "$2 has been decompressed"
echo $msg_de
fi
elif [ $format2 = "bz2" ];then
tar xvjf $2
if [ $? -eq 0 ];then
echo "$2 has been decompressed"
echo $msg_de
fi
elif [ $format2 = "xz" ];then
tar xvJf $2
if [ $? -eq 0 ];then
echo "$2 has been decompressed"
echo $msg_de
fi
fi
elif [ $format = "tbz2" ];then
tar xvjf $2
if [ $? -eq 0 ];then
echo "$2 has been decompressed"
echo $msg_de
fi
elif [ $format = "tgz" ];then
tar xvjf $2
if [ $? -eq 0 ];then
echo "$2 has been decompressed"
echo $msg_de
fi
elif [ $format = "txz" ];then
tar xvJf $2
if [ $? -eq 0 ];then
echo "$2 has been decompressed"
echo $msg_de
fi
elif [ $format = "7z" -o $format = "7zip" ];then
7z e $2
if [ $? -eq 0 ];then
echo "$2 has been decompressed"
echo $msg_de
fi
elif [ $format = "zip" ];then
unzip $2
if [ $? -eq 0 ];then
echo "$2 has been decompressed"
echo $msg_de
fi
elif [ $format = "gz" -o $format = "gzip" ];then
gzip -dk $2
if [ $? -eq 0 ];then
echo "$2 has been decompressed"
echo $msg_de
fi
elif [ $format = "bz2" -o $format = "bzip" ];then
bzip2 -dk $2
if [ $? -eq 0 ];then
echo "$2 has been decompressed"
echo $msg_de
fi
elif [ $format = "rar" ];then
rar -x $2
if [ $? -eq 0 ];then
echo "$2 has been decompressed"
echo $msg_de
fi
else
echo "Format $format unknown"
echo "$(gettext "Format %s unknown" $format)"
fi
}
version="0.2.2"
if [ -z $1 ];then
echo "No option specified, use jkazip -h"
echo "$(gettext "No option specified, use jkazip -h")"
elif [ $1 = "-h" ];then
echo " synopsis: jkazip <options> <file or directory>"
echo "$(gettext " synopsis: jkazip <options> <file or directory>")"
echo ""
echo " -d, decompress file"
echo " -f <format>, specified format whe decompress, necessary only when the name have more than one point before the file extension"
echo " -c <format>, compress file"
echo " -h, show help box and exit"
echo " -v, show version"
echo "$(gettext " -d, decompress file")"
echo "$(gettext " -f <format>, specified format whe decompress, necessary only when the name have more than one point before the file extension")"
echo "$(gettext " -c <format>, compress file")"
echo "$(gettext " -h, show help box and exit")"
echo "$(gettext " -v, show version")"
echo ""
echo " The order must be \"jkazip -d [-f format] <file or directory>\" or \"jkazip -c <format> <file or directory\""
echo "$(gettext " The order must be \"jkazip -d [-f format] <file or directory>\" or \"jkazip -c <format> <file or directory\"")"
echo ""
echo " Examples"
echo " jkazip -d -f \"tar.gz\" file.txt.tar.gz"
echo " jkazip -d file.7z"
echo " jkazip -c \"tar.xz\" directory"
echo "$(gettext " Examples")"
echo "$(gettext " jkazip -d -f \"tar.gz\" file.txt.tar.gz")"
echo "$(gettext " jkazip -d file.7z")"
echo "$(gettext " jkazip -c \"tar.xz\" directory")"
echo ""
echo " Supported formats: tar,gzip,bzip2,xzip,7z,zip and rar"
echo " Only one file or directory (some formats don't support directories), for more options use the each program individualy"
echo "$(gettext " Supported formats: tar,gzip,bzip2,xzip,7z,zip and rar")"
echo "$(gettext " Only one file or directory (some formats don't support directories), for more options use the each program individualy")"
echo ""
elif [ $1 = "-v" ];then
echo "jkazip by JKA Network; version $version"
echo "$(gettext "jkazip by JKA Network; version %s" $version)"
elif [ $1 = "-d" ];then
if [ -z $2 ];then
echo "No file or directory specified"
echo "$(gettext "No file or directory specified")"
exit
elif [ $2 = "-f" ];then
files=1
elif [ -d $2 ];then
files=0
echo "Directory $2 will be decompressed"
echo "$(gettext "Directory $2 will be decompressed")"
elif [ -f $2 ];then
files=0
echo "File $ will be decompressed"
echo "$(gettext "File $ will be decompressed")"
else
echo "$2 no such file or directory"
echo "$(gettext "$2 no such file or directory")"
exit
fi
if [ $files -eq 0 ];then
decompress 0 $2
elif [ $files -eq 1 ];then
if [ -d $4 ];then
echo "Directory $4 will be decompressed"
echo "$(gettext "Directory $4 will be decompressed")"
elif [ -f $4 ];then
echo "File $4 will be decompressed"
echo "$(gettext "File $4 will be decompressed")"
else
echo "$4 no sush a file or directory"
echo "$(gettext "$4 no sush a file or directory")"
exit
fi
decompress $3 $4
fi
elif [ $1 = "-c" ];then
if [ -z $3 ];then
echo "No file or directory specified"
echo "$(gettext "No file or directory specified")"
exit
elif [ -d $3 ];then
echo "The directory $3 will be compressed"
echo "$(gettext "The directory $3 will be compressed")"
elif [ -f $3 ];then
echo "The file $3 will be compressed"
echo "$(gettext "The file $3 will be compressed")"
else
echo "$3 no such file or directory"
echo "$(gettext "$3 no such file or directory")"
exit
fi
msg_co="$(gettext "$3 has been compressed")"
if [ -z $2 ];then
echo "No format specified"
echo "$(gettext "No format specified")"
elif [ $2 = "tar" ] 2> /dev/null ;then
tar cvf $3.tar $3
if [ $? -eq 0 ];then
echo "$3 has been compressed"
echo $msg_co
fi
elif [ $2 = "tar.gz" ] 2> /dev/null ;then
tar cvzf $3.tar.gz $3
if [ $? -eq 0 ];then
echo "$3 has been compressed"
echo $msg_co
fi
elif [ $2 = "tar.bz2" ] 2> /dev/null ;then
tar cvjf $3.tar.bz2 $3
if [ $? -eq 0 ];then
echo "$3 has been compressed"
echo $msg_co
fi
elif [ $2 = "tar.xz" ] 2> /dev/null ;then
tar cvJf $3.tar.xz $3
if [ $? -eq 0 ];then
echo "$3 has been compressed"
echo $msg_co
fi
elif [ $2 = "tbz2" ] 2> /dev/null ;then
tar cvjf $3.tbz2 $3
if [ $? -eq 0 ];then
echo "$3 has been compressed"
echo $msg_co
fi
elif [ $2 = "tgz" ] 2> /dev/null ;then
tar cvjf $3.tgz $3
if [ $? -eq 0 ];then
echo "$3 has been compressed"
echo $msg_co
fi
elif [ $2 = "txz" ] 2> /dev/null ;then
tar cvJf $3.txz $3
if [ $? -eq 0 ];then
echo "$3 has been compressed"
echo $msg_co
fi
elif [ $2 = "7z" -o $2 = "7zip" ] 2> /dev/null ;then
7z a $3.7z $3
if [ $? -eq 0 ];then
echo "$3 has been compressed"
echo $msg_co
fi
elif [ $2 = "zip" ] 2> /dev/null ;then
zip $3.zip $3
if [ $? -eq 0 ];then
echo "$3 has been compressed"
echo $msg_co
fi
elif [ $2 = "gz" -o $2 = "gzip" ] 2> /dev/null ;then
gzip -9k $3
if [ $? -eq 0 ];then
echo "$3 has been compressed"
echo $msg_co
fi
elif [ $2 = "bz2" -o $2 = "bzip2" ] 2> /dev/null ;then
bzip2 -k $3
if [ $? -eq 0 ];then
echo "$3 has been compressed"
echo $msg_co
fi
elif [ $2 = "rar" ] 2> /dev/null ;then
rar -a $3.rar $3
if [ $? -eq 0 ];then
echo "$3 has been compressed"
echo $msg_co
fi
else
echo "Format $2 unknown"
echo "$(gettext "Format $2 unknown")"
fi
else
echo "Unknown option"
echo "$(gettext "Unknown option")"
fi

Binary file not shown.