1
0
mirror of https://gitlab.com/JKANetwork/jka-toolkit.git synced 2026-02-18 11:01:32 +01:00

Update translations

This commit is contained in:
JoseluCross
2016-06-06 17:52:28 +02:00
parent fd753f43cc
commit a67be65642
9 changed files with 452 additions and 63 deletions

View File

@@ -6,30 +6,36 @@
# $1 is the command # $1 is the command
# $2,$3.. will be $packages # $2,$3.. will be $packages
# gettext initialization
export TEXTDOMAIN='apw'
export TEXTDOMAINDIR='/usr/share/locale'
#Version variable
version="1.6"
#This option is for make if case insensitive #This option is for make if case insensitive
shopt -s nocasematch shopt -s nocasematch
#Basic info echo #Basic info echo
case "$1" in case "$1" in
*h) *h)
echo "apw - A Packager Wrapper, a Idea from JKA Network, version 1.6" echo "$(gettext "apw - A Packager Wrapper, a Idea from JKA Network, version %s")"
echo " Usage: apw <option> [packages]" echo "$(gettext " Usage: apw <option> [packages]")"
echo " {-h | h} Show this help" echo "$(gettext " {-h | h} Show this help")"
echo " {-U | U} Update system" echo "$(gettext " {-U | U} Update system")"
echo " {-I | I} Install packages (Updates system also for preventing problems)" echo "$(gettext " {-I | I} Install packages (Updates system also for preventing problems)")"
echo " {-Ir | Ir} Reinstall packages (Updates system also for preventing problems)" echo "$(gettext " {-Ir | Ir} Reinstall packages (Updates system also for preventing problems)")"
echo " {-R | R} Removes a package" echo "$(gettext " {-R | R} Removes a package")"
echo " {-Rd | Rd} Removes a package along with dependencies that are not more in use (Only for Arch)" echo "$(gettext " {-Rd | Rd} Removes a package along with dependencies that are not more in use (Only for Arch)")"
echo " {-C | C} Clean temp files" echo "$(gettext " {-C | C} Clean temp files")"
echo " {-Cd | Cd} Clean system from dependencies that are not in use (ADVANCED, BE CAREFUL!)" echo "$(gettext " {-Cd | Cd} Clean system from dependencies that are not in use (ADVANCED, BE CAREFUL!)")"
echo " {-S | S} Search in package database" echo "$(gettext " {-S | S} Search in package database")"
echo " {-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 " 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")"
exit exit
;; ;;
"") "")
echo "apw - A Packager Wrapper" echo "$(gettext "apw - A Packager Wrapper")"
echo "Use apw -h for help" echo "$(gettext "Use apw -h for help")"
exit exit
;; ;;
esac esac
@@ -37,14 +43,14 @@ esac
#Force sudo #Force sudo
uid=$(/usr/bin/id -u) uid=$(/usr/bin/id -u)
if [[ $uid != "0" ]];then if [[ $uid != "0" ]];then
echo "apw has to run as root, please run as root/with sudo" echo "$(gettext "apw has to run as root, please run as root/with sudo")"
exit exit
fi fi
if [[ ! -f /etc/apw.conf ]];then if [[ ! -f /etc/apw.conf ]];then
echo "It's the first run of the program, we need a thing before continue" echo "$(gettext "It's the first run of the program, we need a thing before continue")"
echo "What, or in what is based your Linux?" echo "$(gettext "What, or in what is based your Linux?")"
echo "(The answer will be recorded in /etc/apw.conf, if you want to reset apw, delete this file)" echo "$(gettext "(The answer will be recorded in /etc/apw.conf, if you want to reset apw, delete this file)")"
options=("Debian/Ubuntu (apt)" "Fedora/Redhat (dnf)" "CentOS 6 (yum)" "Archlinux (pacman)" "Suse (zypper)") options=("Debian/Ubuntu (apt)" "Fedora/Redhat (dnf)" "CentOS 6 (yum)" "Archlinux (pacman)" "Suse (zypper)")
select opt in "${options[@]}" select opt in "${options[@]}"
do do
@@ -92,10 +98,10 @@ if [[ $SO = "apt" && ! -f /usr/bin/apt ]];then
fi fi
#Command wrapper #Command wrapper
updating="$(gettext "Updating system")"
case "$1" in case "$1" in
*U) *U)
echo "Updating system" echo $updating
case "$SO" in case "$SO" in
apt) apt)
apt update && apt upgrade;; apt update && apt upgrade;;
@@ -105,18 +111,18 @@ case "$1" in
$SO update;; $SO update;;
esac;; esac;;
*Uy) *Uy)
echo "Updating system" echo $updating
case "$SO" in case "$SO" in
apt) apt)
apt update && apt -y upgrade;; apt update && apt -y upgrade;;
pacman) pacman)
pacman -Syu $packages --noconfirm;; pacman -Syu $packages --noconfirm;;
yum | dnf | zypper) yum | dnf | zypper)
echo "Not supported, I didn't know the command. Doing a -U instead" echo "$(gettext "Not supported on your distribution. Use -U instead")"
$SO update;; $SO update;;
esac;; esac;;
*I) *I)
echo "You are going to install $packages and dependencies" echo "$(gettext "You are going to install %s and dependencies" $packages)"
case "$SO" in case "$SO" in
apt) apt)
apt update && apt install $packages;; apt update && apt install $packages;;
@@ -126,18 +132,18 @@ case "$1" in
$SO install $packages;; $SO install $packages;;
esac;; esac;;
*Iy) *Iy)
echo "You are going to install $packages and dependencies" echo "$(gettext "You are going to install %s and dependencies" $packages)"
case "$SO" in case "$SO" in
apt) apt)
apt update && apt -y install $packages;; apt update && apt -y install $packages;;
pacman) pacman)
pacman -Syu $packages --noconfirm --needed;; pacman -Syu $packages --noconfirm --needed;;
yum | dnf | zypper) yum | dnf | zypper)
echo "Not supported, I don't know the command. Doing a -I instead" echo "$(gettext "Not supported on your distribution. Use -I instead")"
$SO install $packages;; $SO install $packages;;
esac;; esac;;
*Ir) *Ir)
echo "You are going to reinstall $packages" echo "$(gettext "You are going to reinstall %s" $packages)"
case "$SO" in case "$SO" in
apt) apt)
apt update && apt install --reinstall $packages;; apt update && apt install --reinstall $packages;;
@@ -147,18 +153,18 @@ case "$1" in
$SO reinstall $packages;; $SO reinstall $packages;;
esac;; esac;;
*Iry) *Iry)
echo "You are going to reinstall $packages" echo "$(gettext "You are going to reinstall $packages")"
case "$SO" in case "$SO" in
apt) apt)
apt update && apt -y install --reinstall $packages;; apt update && apt -y install --reinstall $packages;;
pacman) pacman)
pacman -Syu $packages --noconfirm;; pacman -Syu $packages --noconfirm;;
yum | dnf | zypper) yum | dnf | zypper)
echo "Not supported, I don't know the command. Doing a -Ir instead" echo "$(gettext "Not supported on your distribution. Use -Ir instead")"
$SO reinstall $packages;; $SO reinstall $packages;;
esac;; esac;;
*R) *R)
echo "You are going to remove $packages" echo "$(gettext "You are going to remove %s" $packages)"
case "$SO" in case "$SO" in
apt) apt)
apt remove $packages;; apt remove $packages;;
@@ -168,34 +174,34 @@ case "$1" in
$SO remove $packages;; $SO remove $packages;;
esac;; esac;;
*Ry) *Ry)
echo "You are going to remove $packages" echo "$(gettext "You are going to remove %s" $packages)"
case "$SO" in case "$SO" in
apt) apt)
apt -y remove $packages;; apt -y remove $packages;;
pacman) pacman)
pacman -R $packages --noconfirm;; pacman -R $packages --noconfirm;;
yum | dnf | zypper) yum | dnf | zypper)
echo "Not supported, I don't know the command. Doing a -R instead" echo "$(gettext "Not supported on your distribution. Use -R instead")"
$SO remove $packages;; $SO remove $packages;;
esac;; esac;;
*Rd) *Rd)
echo "Removing $packages along with his dependencies that are not more in use" echo "$(gettext "Removing %s along with his dependencies that are not more in use" $packages)"
case "$SO" in case "$SO" in
pacman) pacman)
pacman -Rs $packages;; pacman -Rs $packages;;
*) *)
echo "I don't know how to do this option in this packager";; echo "$(gettext "Not supported on your distribution")";;
esac;; esac;;
*Rdy) *Rdy)
echo "Removing $packages along with his dependencies that are not more in use" echo "$(gettext "Removing %s along with his dependencies that are not more in use" $packages)"
case "$SO" in case "$SO" in
pacman) pacman)
pacman -Rs $packages --noconfirm;; pacman -Rs $packages --noconfirm;;
*) *)
echo "I don't know how to do this option in this packager";; echo "$(gettext "Not supported on your distribution")";;
esac;; esac;;
*C) *C)
echo "Cleaning package manager" echo "$(gettext "Cleaning package manager")"
case "$SO" in case "$SO" in
apt) apt)
apt clean apt clean
@@ -209,30 +215,28 @@ case "$1" in
dnf) dnf)
dnf clean all --enablerepo=\*;; dnf clean all --enablerepo=\*;;
zypper) zypper)
echo "I don't know this option in Zypper";; echo "$(gettext "Not supported on your distribution")";;
esac;; esac;;
*Cd) *Cd)
echo "Cleaning system from dependencies that are not in use (BE CAREFUL, ONLY ADVANCED)" echo "$(gettext "Cleaning system from dependencies that are not in use (BE CAREFUL, ONLY ADVANCED)")"
case "$SO" in case "$SO" in
apt) apt)
apt autoremove --purge;; apt autoremove --purge;;
pacman) pacman)
pacman -Rs $(pacman -Qdtq);; pacman -Rs $(pacman -Qdtq);;
*) *)
echo "I don't know how to do this option in this packager";; echo "$(gettext "Not supported on your distribution")";;
esac;; esac;;
*S) *S)
echo "Searching $packages" echo "$(gettext "Searching %s" $packages)"
case "$SO" in case "$SO" in
apt)
apt search $packages;;
pacman) pacman)
pacman -Ss $packages;; pacman -Ss $packages;;
yum | dnf | zypper) apr | yum | dnf | zypper)
$SO search $packages;; $SO search $packages;;
esac;; esac;;
*F) *F)
echo "Installing files: $packages" echo "$(gettext "Installing files: %s"$packages)"
case "$SO" in case "$SO" in
apt) apt)
dpkg -I $packages;; dpkg -I $packages;;
@@ -242,8 +246,8 @@ case "$1" in
rpm -Uvh $packages;; rpm -Uvh $packages;;
esac;; esac;;
*) *)
echo "Invalid option especified" echo "$(gettext "Invalid option especified")"
echo "Use apw -h for help" echo "$(gettext "Use apw -h for help")"
exit;; exit;;
esac esac

View File

@@ -0,0 +1,163 @@
# 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 17:25+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"
#: apw:21
msgid "apw - A Packager Wrapper, a Idea from JKA Network, version %s"
msgstr ""
#: apw:22
msgid "\tUsage: apw <option> [packages]"
msgstr ""
#: apw:23
msgid "\t{-h | h} \tShow this help"
msgstr ""
#: apw:24
msgid "\t{-U | U}\tUpdate system"
msgstr ""
#: apw:25
msgid ""
"\t{-I | I}\tInstall packages (Updates system also for preventing problems)"
msgstr ""
#: apw:26
msgid ""
"\t{-Ir | Ir}\tReinstall packages (Updates system also for preventing "
"problems)"
msgstr ""
#: apw:27
msgid "\t{-R | R}\tRemoves a package"
msgstr ""
#: apw:28
msgid ""
"\t{-Rd | Rd}\tRemoves a package along with dependencies that are not more in "
"use (Only for Arch)"
msgstr ""
#: apw:29
msgid "\t{-C | C}\tClean temp files"
msgstr ""
#: apw:30
msgid ""
"\t{-Cd | Cd}\tClean system from dependencies that are not in use (ADVANCED, "
"BE CAREFUL!)"
msgstr ""
#: apw:31
msgid "\t{-S | S}\tSearch in package database"
msgstr ""
#: apw:32
msgid ""
"\t{-F | F}\tInstall file (distro family dependent, e.g. .deb , .pkg.tar."
"xz,...)"
msgstr ""
#: apw:33
msgid "\tAppend y to -U or -I (-Uy -Iy -Iry) for autoconfirm the operations"
msgstr ""
#: apw:37
msgid "apw - A Packager Wrapper"
msgstr ""
#: apw:38 apw:250
msgid "Use apw -h for help"
msgstr ""
#: apw:46
msgid "apw has to run as root, please run as root/with sudo"
msgstr ""
#: apw:51
msgid "It's the first run of the program, we need a thing before continue"
msgstr ""
#: apw:52
msgid "What, or in what is based your Linux?"
msgstr ""
#: apw:53
msgid ""
"(The answer will be recorded in /etc/apw.conf, if you want to reset apw, "
"delete this file)"
msgstr ""
#: apw:101
msgid "Updating system"
msgstr ""
#: apw:121
msgid "Not supported on your distribution. Use -U instead"
msgstr ""
#: apw:125 apw:135
msgid "You are going to install %s and dependencies"
msgstr ""
#: apw:142
msgid "Not supported on your distribution. Use -I instead"
msgstr ""
#: apw:146
msgid "You are going to reinstall %s"
msgstr ""
#: apw:163
msgid "Not supported on your distribution. Use -Ir instead"
msgstr ""
#: apw:167 apw:177
msgid "You are going to remove %s"
msgstr ""
#: apw:184
msgid "Not supported on your distribution. Use -R instead"
msgstr ""
#: apw:188 apw:196
msgid "Removing %s along with his dependencies that are not more in use"
msgstr ""
#: apw:193 apw:201 apw:218 apw:228
msgid "Not supported on your distribution"
msgstr ""
#: apw:204
msgid "Cleaning package manager"
msgstr ""
#: apw:221
msgid ""
"Cleaning system from dependencies that are not in use (BE CAREFUL, ONLY "
"ADVANCED)"
msgstr ""
#: apw:231
msgid "Searching %s"
msgstr ""
#: apw:249
msgid "Invalid option especified"
msgstr ""

BIN
jka-toolkit/i18n/apw/es.mo Normal file

Binary file not shown.

166
jka-toolkit/i18n/apw/es.po Normal file
View File

@@ -0,0 +1,166 @@
# 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 17:30+0200\n"
"PO-Revision-Date: 2016-06-06 17:51+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"
#: apw:21
msgid "apw - A Packager Wrapper, a Idea from JKA Network, version %s"
msgstr ""
"apw - A Package Wrapper (empaquetados de paquetes), una idea de JKA Network, "
"versión %s"
#: apw:22
msgid "\tUsage: apw <option> [packages]"
msgstr "\tUso: apw <opción> [paquetes]"
#: apw:23
msgid "\t{-h | h} \tShow this help"
msgstr "\t{-h | h} \tMuestra esta ayuda"
#: apw:24
msgid "\t{-U | U}\tUpdate system"
msgstr "\t{-U | U}\tActualiza el sistema"
#: apw:25
msgid ""
"\t{-I | I}\tInstall packages (Updates system also for preventing problems)"
msgstr ""
#: apw:26
msgid ""
"\t{-Ir | Ir}\tReinstall packages (Updates system also for preventing "
"problems)"
msgstr ""
#: apw:27
msgid "\t{-R | R}\tRemoves a package"
msgstr ""
#: apw:28
msgid ""
"\t{-Rd | Rd}\tRemoves a package along with dependencies that are not more in "
"use (Only for Arch)"
msgstr ""
#: apw:29
msgid "\t{-C | C}\tClean temp files"
msgstr ""
#: apw:30
msgid ""
"\t{-Cd | Cd}\tClean system from dependencies that are not in use (ADVANCED, "
"BE CAREFUL!)"
msgstr ""
#: apw:31
msgid "\t{-S | S}\tSearch in package database"
msgstr ""
#: apw:32
msgid ""
"\t{-F | F}\tInstall file (distro family dependent, e.g. .deb , .pkg.tar."
"xz,...)"
msgstr ""
#: apw:33
msgid "\tAppend y to -U or -I (-Uy -Iy -Iry) for autoconfirm the operations"
msgstr ""
#: apw:37
msgid "apw - A Packager Wrapper"
msgstr ""
#: apw:38 apw:250
msgid "Use apw -h for help"
msgstr ""
#: apw:46
msgid "apw has to run as root, please run as root/with sudo"
msgstr ""
#: apw:51
msgid "It's the first run of the program, we need a thing before continue"
msgstr ""
#: apw:52
msgid "What, or in what is based your Linux?"
msgstr ""
#: apw:53
msgid ""
"(The answer will be recorded in /etc/apw.conf, if you want to reset apw, "
"delete this file)"
msgstr ""
#: apw:101
msgid "Updating system"
msgstr ""
#: apw:121
msgid "Not supported on your distribution. Use -U instead"
msgstr ""
#: apw:125 apw:135
msgid "You are going to install %s and dependencies"
msgstr ""
#: apw:142
msgid "Not supported on your distribution. Use -I instead"
msgstr ""
#: apw:146
msgid "You are going to reinstall %s"
msgstr ""
#: apw:163
msgid "Not supported on your distribution. Use -Ir instead"
msgstr ""
#: apw:167 apw:177
msgid "You are going to remove %s"
msgstr ""
#: apw:184
msgid "Not supported on your distribution. Use -R instead"
msgstr ""
#: apw:188 apw:196
msgid "Removing %s along with his dependencies that are not more in use"
msgstr ""
#: apw:193 apw:201 apw:218 apw:228
msgid "Not supported on your distribution"
msgstr ""
#: apw:204
msgid "Cleaning package manager"
msgstr ""
#: apw:221
msgid ""
"Cleaning system from dependencies that are not in use (BE CAREFUL, ONLY "
"ADVANCED)"
msgstr ""
#: apw:231
msgid "Searching %s"
msgstr ""
#: apw:249
msgid "Invalid option especified"
msgstr ""

Binary file not shown.

View File

@@ -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 16:33+0200\n" "POT-Creation-Date: 2016-06-06 17:25+0200\n"
"PO-Revision-Date: 2016-06-06 16:34+0200\n" "PO-Revision-Date: 2016-06-06 17:29+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"
@@ -22,7 +22,7 @@ msgstr ""
msgid "%s has been decompressed" msgid "%s has been decompressed"
msgstr "%s se ha descomprimido" msgstr "%s se ha descomprimido"
#: jkazip:83 #: jkazip:83 jkazip:215
msgid "Format %s unknown" msgid "Format %s unknown"
msgstr "Formato %s desconocido" msgstr "Formato %s desconocido"
@@ -102,6 +102,34 @@ msgstr "jkazip por JKA Network; versión %s"
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:118 jkazip:130
msgid "Directory %s will be decompressed"
msgstr "El directorio %s será descomprimido"
#: jkazip:123 jkazip:148
msgid "%s no such file or directory"
msgstr "%s no existe el archivo o el directorio"
#: jkazip:132
msgid "File %s will be decompressed"
msgstr "El archivo %s será descomprimido"
#: jkazip:134
msgid "%s no sush a file or directory"
msgstr "%s no existe el archivo o el directorio"
#: jkazip:144
msgid "The directory %s will be compressed"
msgstr "El directorio %s será comprimido"
#: jkazip:146
msgid "The file %s will be compressed"
msgstr "El archivo %s será comprimido"
#: jkazip:151
msgid "%s has been compressed"
msgstr "%s ha sido comprimido"
#: jkazip:153 #: jkazip:153
msgid "No format specified" msgid "No format specified"
msgstr "Ningún formato especificado" msgstr "Ningún formato especificado"

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-06 16:32+0200\n" "POT-Creation-Date: 2016-06-06 17:25+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"
@@ -21,7 +21,7 @@ msgstr ""
msgid "%s has been decompressed" msgid "%s has been decompressed"
msgstr "" msgstr ""
#: jkazip:83 #: jkazip:83 jkazip:215
msgid "Format %s unknown" msgid "Format %s unknown"
msgstr "" msgstr ""
@@ -95,6 +95,34 @@ msgstr ""
msgid "No file or directory specified" msgid "No file or directory specified"
msgstr "" msgstr ""
#: jkazip:118 jkazip:130
msgid "Directory %s will be decompressed"
msgstr ""
#: jkazip:123 jkazip:148
msgid "%s no such file or directory"
msgstr ""
#: jkazip:132
msgid "File %s will be decompressed"
msgstr ""
#: jkazip:134
msgid "%s no sush a file or directory"
msgstr ""
#: jkazip:144
msgid "The directory %s will be compressed"
msgstr ""
#: jkazip:146
msgid "The file %s will be compressed"
msgstr ""
#: jkazip:151
msgid "%s has been compressed"
msgstr ""
#: jkazip:153 #: jkazip:153
msgid "No format specified" msgid "No format specified"
msgstr "" msgstr ""

View File

@@ -83,7 +83,7 @@ function decompress() {
echo "$(gettext "Format %s unknown" $format)" echo "$(gettext "Format %s unknown" $format)"
fi fi
} }
version="0.2.2" version="1.0.0"
if [ -z $1 ];then if [ -z $1 ];then
echo "$(gettext "No option specified, use jkazip -h")" echo "$(gettext "No option specified, use jkazip -h")"
elif [ $1 = "-h" ];then elif [ $1 = "-h" ];then
@@ -115,23 +115,23 @@ elif [ $1 = "-d" ];then
files=1 files=1
elif [ -d $2 ];then elif [ -d $2 ];then
files=0 files=0
echo "$(gettext "Directory $2 will be decompressed")" echo "$(gettext "Directory %s will be decompressed" $2)"
elif [ -f $2 ];then elif [ -f $2 ];then
files=0 files=0
echo "$(gettext "File $ will be decompressed")" echo "$(gettext "File $ will be decompressed")"
else else
echo "$(gettext "$2 no such file or directory")" echo "$(gettext "%s no such file or directory" $2)"
exit exit
fi fi
if [ $files -eq 0 ];then if [ $files -eq 0 ];then
decompress 0 $2 decompress 0 $2
elif [ $files -eq 1 ];then elif [ $files -eq 1 ];then
if [ -d $4 ];then if [ -d $4 ];then
echo "$(gettext "Directory $4 will be decompressed")" echo "$(gettext "Directory %s will be decompressed" $4)"
elif [ -f $4 ];then elif [ -f $4 ];then
echo "$(gettext "File $4 will be decompressed")" echo "$(gettext "File %s will be decompressed" $4)"
else else
echo "$(gettext "$4 no sush a file or directory")" echo "$(gettext "%s no sush a file or directory" $4)"
exit exit
fi fi
decompress $3 $4 decompress $3 $4
@@ -141,14 +141,14 @@ elif [ $1 = "-c" ];then
echo "$(gettext "No file or directory specified")" echo "$(gettext "No file or directory specified")"
exit exit
elif [ -d $3 ];then elif [ -d $3 ];then
echo "$(gettext "The directory $3 will be compressed")" echo "$(gettext "The directory %s will be compressed" $3)"
elif [ -f $3 ];then elif [ -f $3 ];then
echo "$(gettext "The file $3 will be compressed")" echo "$(gettext "The file %s will be compressed" $3)"
else else
echo "$(gettext "$3 no such file or directory")" echo "$(gettext "%s no such file or directory" $3)"
exit exit
fi fi
msg_co="$(gettext "$3 has been compressed")" 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
@@ -212,7 +212,7 @@ elif [ $1 = "-c" ];then
echo $msg_co echo $msg_co
fi fi
else else
echo "$(gettext "Format $2 unknown")" echo "$(gettext "Format %s unknown" $2)"
fi fi
else else
echo "$(gettext "Unknown option")" echo "$(gettext "Unknown option")"

0
jka-toolkit/no.txt Normal file
View File