openmamba-update, openmamba-netsrpm: add italian translation

This commit is contained in:
Silvan Calarco 2014-03-26 12:28:42 +01:00
parent 78ed5444e7
commit c24675b49d
4 changed files with 158 additions and 16 deletions

View File

@ -100,6 +100,7 @@ pck_desktop := $(wildcard desktop/*.tar.bz2)
pck_catalogs := $(wildcard mambabase/po/*.po)
pck_catalogs1 := $(wildcard mambawelcome/po/*.po)
pck_catalogs2 := $(wildcard bootrecover/po/*.po)
pck_catalogs3 := $(wildcard openmamba-update/po/*.po)
.SUFFIXES:
.SUFFIXES: .in .po .mo
@ -158,6 +159,13 @@ install-locales: locales
$(INSTALL_DIR) $$dir;\
$(INSTALL_DATA) $${f/.po/.mo} $$dir/bootrecover.mo;\
done
@for f in $(pck_catalogs3); do\
lang=`echo $$f | sed 's,.*/\(.*\)\.po,\1,'`;\
echo "installing i18n file for language \`$$lang'...";\
dir="$(DESTDIR)$(datadir)/locale/$$lang/LC_MESSAGES";\
$(INSTALL_DIR) $$dir;\
$(INSTALL_DATA) $${f/.po/.mo} $$dir/openmamba-update.mo;\
done
install-kde-distro-addons: dist-update
@$(INSTALL_DIR) $(DESTDIR)$(sysconfdir)

View File

@ -2,10 +2,12 @@
#
# netsrpm-install.sh - Build srpms that download sources from network
#
# Copyright (C) 2003-2013 by Silvan Calarco <silvan.calarco@mambasoft.it>
# Copyright (C) 2003-2014 by Silvan Calarco <silvan.calarco@mambasoft.it>
# Copyright (C) 2005 by Massimo Pintore <massimo.pintore@qilinux.it>
# Copyright (C) 2005-2007 by Davide Madrisan <davide.madrisan@qilinux.it>
TEXTDOMAINDIR=/usr/share/locale/
TEXTDOMAIN=openmamba-update
me="${0##*/}"
DISTRO_SRPMS_DIR=/usr/share/openmamba/SRPMS
rpmdir=$(rpm --eval=%{_rpmdir} 2>/dev/null)
@ -16,14 +18,14 @@ while [ "$1" ]; do
-f) FORCE_MODE=1 ;;
-u) UPGRADE_MODE=1 ;;
-h|--help) PACKAGES= ; break ;;
-*) echo "Error: invalid option $1; aborting."; exit 1 ;;
-*) echo $"Error: invalid option $1; aborting."; exit 1 ;;
*) PACKAGES="$PACKAGES $1"
esac
shift
done
if [ -z "$PACKAGES" ]; then
echo "Usage:
echo $"Usage:
$me [options...] pkgname ...
Options:
@ -50,7 +52,7 @@ for pckname in $PACKAGES; do
-regex ".*/${pckname//+/\\+}-[^-]*-[^-]*" -printf "%f " 2>/dev/null`
[ "$SRPM_NAME" ] || {
echo "$me: $pckname is missing in $DISTRO_SRPMS_DIR; aborting."
echo $"$me: $pckname is missing in $DISTRO_SRPMS_DIR; aborting."
exit 255
}
@ -65,9 +67,9 @@ for pckname in $PACKAGES; do
echo $RPM_INSTALLED | \
sed "s|${pckname//+/\\+}-\([^-]*-[^-]*\)\..*|\1|" 2>/dev/null`
echo "Package name: $pckname"
echo "Installed version: $RPM_INSTALLED_VERSION"
echo "Last version: $SRPM_VERSION"
echo $"Package name: $pckname"
echo $"Installed version: $RPM_INSTALLED_VERSION"
echo $"Last version: $SRPM_VERSION"
echo
if [ "$RPM_INSTALLED_VERSION" != "$SRPM_VERSION" ]; then
@ -89,12 +91,12 @@ for pckname in $PACKAGES; do
fi
tmpfile=`mktemp -q -t $me.XXXXXXXX` || {
echo "$me: error: cannot create temporary files; aborting."
echo "$me: "$"error: cannot create temporary files; aborting."
exit 255
}
tmpdir=`mktemp -d -q -t $me.XXXXXXXX` || {
echo "$me: error: cannot create temporary directory; aborting."
echo "$me: "$"error: cannot create temporary directory; aborting."
exit 255
}
@ -108,10 +110,10 @@ for pckname in $PACKAGES; do
license-dialog $tmpdir/LICENSE
[ $? -ne 0 ] && exit 1
else
echo "You must accept the following license terms:"
echo $"You must accept the following license terms:"
echo
more $tmpdir/LICENSE
echo -n "Do you agree with the above license terms [y/N]? "
echo -n $"Do you agree with the above license terms [y/N]? "
read ans
[ "$ans" = "Y" -o "$ans" = "y" ] || exit 1
fi
@ -152,6 +154,6 @@ for pckname in $PACKAGES; do
done
if [ "$CHECK_MODE" -a "$UPDATE_NEEDED" ]; then
echo "Update needed."
echo $"Update needed."
fi
exit 0

View File

@ -35,7 +35,7 @@ script_name="$(basename $0 2>/dev/null)"
function usage() {
echo "Usage: $script_name [OPTION][groupname ..]
echo $"Usage: $script_name [OPTION][groupname ..]
Options:
-f, --full
@ -77,7 +77,7 @@ while [ "$1" ]; do
shift
done
[ "$list_mode" ] && echo "Available installation groups (*=installed,+=needs update):"
[ "$list_mode" ] && echo $"Available installation groups (*=installed,+=needs update):"
for i in `seq 1 ${#PKG_GROUPS[*]}`; do
eval instpkgs=(\$`echo ${PKG_GROUPS[$i-1]}`)
totpkgs=`expr $totpkgs + ${#instpkgs[*]}`
@ -117,14 +117,14 @@ if [ "$installnames" ]; then
done
done
elif [ "$needupdategroups" ]; then
echo -n "The following groups need to be updated: "
echo -n $"The following groups need to be updated: "
for n in $needupdategroups; do
echo -n "${PKG_NAMES[$n]} "
installgroups="$installgroups $n"
done
echo
[ "$assume_yes" ] || {
echo -n "Proceed with update [Y/n]?"
echo -n $"Proceed with update [Y/n]?"
read ans
[ "$ans" = "n" -o "$ans" = "N" ] && exit 0
}

132
openmamba-update/po/it.po Normal file
View File

@ -0,0 +1,132 @@
#: openmamba-netsrpms:21
msgid "Error: invalid option $1; aborting."
msgstr "Errore: opzione $1 non valida; uscita."
#: openmamba-netsrpms:28
msgid ""
"Usage:\n"
"$me [options...] pkgname ...\n"
"\n"
"Options:\n"
"-c: only check and exit (returns: 0: up-to-date; 1: needs update; 2: not installed)\n"
"-f: force reinstallation if already installed\n"
"-u: only upgrade if already installed\n"
""
msgstr ""
"Uso:\n"
"$me [opzioni...] pkgname ...\n"
"\n"
"Opzioni:\n"
"-c: controlla soltanto ed esci (ritorna: 0: aggiornato; 1: richiede aggiornamento; 2: non installato)\n"
"-f: forza la reinstallazione se già installato\n"
"-u: aggiorna soltanto se già installato\n"
""
#: openmamba-netsrpms:42
msgid "Network software installation"
msgstr "Installazione di software dalla rete"
#: openmamba-netsrpms:42
msgid "already installed."
msgstr "già installato"
#: openmamba-netsrpms:55
msgid "$me: $pckname is missing in $DISTRO_SRPMS_DIR; aborting."
msgstr "$me: $pckname non è presente in $DISTRO_SRPMS_DIR; uscita."
#: openmamba-netsrpms:70
msgid "Package name: $pckname"
msgstr "Nome pacchetto: $pckname"
#: openmamba-netsrpms:71
msgid "Installed version: $RPM_INSTALLED_VERSION"
msgstr "Versione installata: $RPM_INSTALLED_VERSION"
#: openmamba-netsrpms:72
msgid "Last version: $SRPM_VERSION"
msgstr "Ultima versione: $SRPM_VERSION"
#: openmamba-netsrpms:89
msgid "missing SRPM \\`$SRPM_PATH'."
msgstr "SRPM mancante \\`$SRPM_PATH'."
#: openmamba-netsrpms:89
msgid "Aborting..."
msgstr "Uscita..."
#: openmamba-netsrpms:94
msgid "error: cannot create temporary files; aborting."
msgstr "errore: non posso creare files temporanei; uscita."
#: openmamba-netsrpms:99
msgid "error: cannot create temporary directory; aborting."
msgstr "errore: non posso creare una cartella temporanea; uscita."
#: openmamba-netsrpms:113
msgid "You must accept the following license terms:"
msgstr "Devi accettare i termini della seguente licenza:"
#: openmamba-netsrpms:116
msgid "Do you agree with the above license terms [y/N]? "
msgstr "Accetti i suddetti termini di licenza [s/N]? "
#: openmamba-netsrpms:122
msgid "$pckname installation in progress..."
msgstr "Installazione di $pckname in corso..."
#: openmamba-netsrpms:125
msgid "rebuilding package \\`$SRPM_PATH'..."
msgstr "ricreazione del pacchetto \\`$SRPM_PATH'..."
#: openmamba-netsrpms:128
msgid "error rebuilding \\`$SRPM_PATH'."
msgstr "errore nella ricreazione di \\`$SRPM_PATH'."
#: openmamba-netsrpms:129
msgid "There was an error installing"
msgstr "C'è stato un errore nell'installazione di"
#: openmamba-netsrpms:140
msgid "error installing \\`$RPM_PATH'."
msgstr "errore nell'installazione di \\`$RPM_PATH'."
#: openmamba-netsrpms:147
msgid "Installation of $pckname successfully completed."
msgstr "Installazione di $pckname completata con successo."
#: openmamba-netsrpms:149
msgid "There was an error installing $pckname!"
msgstr "C'è stato un errore nell'installazione di $pckname!"
#: openmamba-netsrpms:157
msgid "Update needed."
msgstr "Aggiornamento necessario."
#: openmamba-update:28
msgid ""
"openmamba update script - version $VERSION\n"
"Copyright (c) 2011 by Silvan Calarco <silvan.calarco@mambasoft.it>\n"
""
msgstr ""
"Script di aggiornamento di openmamba - versione $VERSION\n"
"Copyright (c) 2011 by Silvan Calarco <silvan.calarco@mambasoft.it>\n"
""
#: openmamba-update:38
msgid ""
"Usage: $script_name [OPTION][groupname ..]\n"
"\n"
"Options:\n"
" -f, --full\n"
" Perform a full update\n"
" -h, --help\n"
" Display this message.\n"
" -l, --list\n"
" List available groups and exit\n"
" -v, --verbose\n"
" Produce mode verbose output\n"
" -y, --assume-yes\n"
" Assume yes to all answers"
msgstr ""
"Uso: $script_name [OPZIONE][nomegruppo ..]\n"
"\n"
"Opzioni:\n"
" -f, --full\n"
" Effettua un aggiornamento completo\n"
" -h, --help\n"
" Mostra questo messaggio.\n"
" -l, --list\n"
" Elenca i gruppi disponibili ed esci\n"
" -v, --verbose\n"
" Produci un output dettagliato\n"
" -y, --assume-yes\n"
" Assumi 'si' a tutte le risposte"
#: openmamba-update:80
msgid "Available installation groups (*=installed,+=needs update):"
msgstr "Gruppi di installazione disponibili (*=installato,+=richiede aggiornamento):"
#: openmamba-update:120
msgid "The following groups need to be updated: "
msgstr "I seguenti gruppi necessitano di essere aggiornati: "
#: openmamba-update:127
msgid "Proceed with update [Y/n]?"
msgstr "Procedere con l'aggiornamento [S/n]?"
#: openmamba-update:143
msgid "Installing: ${finalinstalllist[*]}"
msgstr "Installazione: ${finalinstalllist[*]}"