Point to the translation file autospec-all in all modules and libraries

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
This commit is contained in:
Davide Madrisan 2012-11-23 23:45:02 +01:00
parent bf480b6358
commit 5a00359a29
17 changed files with 23 additions and 24 deletions

View File

@ -29,6 +29,10 @@ Changes in version 1.16.0
Improved translation framework.
New makefile targets: 'pot-files', 'pot-merge', and 'locales-concatenate'.
* autospec, plugins/*, lib/*, tests/* - Davide Madrisan:
Set TEXTDOMAIN to "autospec-all" (point to the global translation file
instead of using the partial ones).
-------------------------------------------------------------------------------
Changes in version 1.14.3

View File

@ -24,7 +24,7 @@ if [[ -z "$LANG" && -r /etc/sysconfig/i18n ]]; then
. /etc/sysconfig/i18n
[ "$LANG" ] && export LANG
fi
TEXTDOMAIN="@package@"; export TEXTDOMAIN
TEXTDOMAIN="@package@-all"; export TEXTDOMAIN
# default values
let "pck_update = 0"

View File

@ -137,7 +137,7 @@ make install DESTDIR=%{buildroot} prefix=%{_prefix}
%defattr(-,root,root)
%{_bindir}/%{name}
%lang(it) %{_mandir}/it/man1/%{name}.*
%lang(it) %{?_localedir:%{_localedir}}%{!?_localedir:%_datadir/locale}/it/LC_MESSAGES/autospec.mo
%lang(it) %{?_localedir:%{_localedir}}%{!?_localedir:%_datadir/locale}/it/LC_MESSAGES/%{name}-all.mo
%doc AUTHORS BUGS ChangeLog COPYING NEWS TODO
%files plugins
@ -146,10 +146,6 @@ make install DESTDIR=%{buildroot} prefix=%{_prefix}
%{_bindir}/pck-extract
%{_bindir}/pck-update
%{_bindir}/spec-create
%lang(it) %{?_localedir:%{_localedir}}%{!?_localedir:%_datadir/locale}/it/LC_MESSAGES/config-getvar.mo
%lang(it) %{?_localedir:%{_localedir}}%{!?_localedir:%_datadir/locale}/it/LC_MESSAGES/pck-extract.mo
%lang(it) %{?_localedir:%{_localedir}}%{!?_localedir:%_datadir/locale}/it/LC_MESSAGES/pck-update.mo
%lang(it) %{?_localedir:%{_localedir}}%{!?_localedir:%_datadir/locale}/it/LC_MESSAGES/spec-create.mo
%config %attr(644,root,root) %{_sysconfdir}/%{name}.conf
%files config-%{distribution}
@ -161,7 +157,6 @@ make install DESTDIR=%{buildroot} prefix=%{_prefix}
%files libs
%defattr(-,root,root)
%{_datadir}/%{name}/lib/*
%lang(it) %{?_localedir:%{_localedir}}%{!?_localedir:%_datadir/locale}/it/LC_MESSAGES/lib*.mo
%files templates-%{distribution}
%defattr(-,root,root)
@ -170,7 +165,6 @@ make install DESTDIR=%{buildroot} prefix=%{_prefix}
%files tests
%defattr(-,root,root)
%{_datadir}/%{name}/tests
%lang(it) %{?_localedir:%{_localedir}}%{!?_localedir:%_datadir/locale}/it/LC_MESSAGES/test??_*.mo
%files tools
%defattr(-,root,root)

View File

@ -20,7 +20,7 @@ if [[ -z "$LANG" && -r /etc/sysconfig/i18n ]]; then
. /etc/sysconfig/i18n
[ "$LANG" ] && export LANG
fi
TEXTDOMAIN="libapse"; export TEXTDOMAIN
TEXTDOMAIN="@package@-all"; export TEXTDOMAIN
# function apse.cmpversion()
# compare two version

View File

@ -14,7 +14,7 @@ if [[ -z "$LANG" && -r /etc/sysconfig/i18n ]]; then
. /etc/sysconfig/i18n
[ "$LANG" ] && export LANG
fi
TEXTDOMAIN="libcfg"; export TEXTDOMAIN
TEXTDOMAIN="@package@-all"; export TEXTDOMAIN
# list of the configuration file(s)
default_cfg_list=(\

View File

@ -9,7 +9,7 @@ if [[ -z "$LANG" && -r /etc/sysconfig/i18n ]]; then
. /etc/sysconfig/i18n
[ "$LANG" ] && export LANG
fi
TEXTDOMAIN="libmsgmng"; export TEXTDOMAIN
TEXTDOMAIN="@package@-all"; export TEXTDOMAIN
# notify family of message handling functions:
# - notify.warning

View File

@ -16,7 +16,7 @@ if [[ -z "$LANG" && -r /etc/sysconfig/i18n ]]; then
. /etc/sysconfig/i18n
[ "$LANG" ] && export LANG
fi
TEXTDOMAIN="libnetwork"; export TEXTDOMAIN
TEXTDOMAIN="@package@-all"; export TEXTDOMAIN
# check if all the needed tools are available
# note: 'host' has been removed from this list because the package

View File

@ -14,7 +14,7 @@ if [[ -z "$LANG" && -r /etc/sysconfig/i18n ]]; then
. /etc/sysconfig/i18n
[ "$LANG" ] && export LANG
fi
TEXTDOMAIN="libspec"; export TEXTDOMAIN
TEXTDOMAIN="@package@-all"; export TEXTDOMAIN
# function boolexpr.solve
# calculate the boolean expression `$1' expanding the variables

View File

@ -16,7 +16,7 @@ if [[ -z "$LANG" && -r /etc/sysconfig/i18n ]]; then
. /etc/sysconfig/i18n
[ "$LANG" ] && export LANG
fi
TEXTDOMAIN="libtest"; export TEXTDOMAIN
TEXTDOMAIN="@package@-all"; export TEXTDOMAIN
[ -n "$testdir" ] ||
notify.error "\`testdir': "$"unset in the configuration files"

View File

@ -26,7 +26,7 @@ if [[ -z "$LANG" && -r /etc/sysconfig/i18n ]]; then
. /etc/sysconfig/i18n
[ "$LANG" ] && export LANG
fi
TEXTDOMAIN="${me[0]}"; export TEXTDOMAIN
TEXTDOMAIN="@package@-all"; export TEXTDOMAIN
function copying() {
echo "\

View File

@ -31,7 +31,7 @@ if [[ -z "$LANG" && -r /etc/sysconfig/i18n ]]; then
. /etc/sysconfig/i18n
[ "$LANG" ] && export LANG
fi
TEXTDOMAIN="${me[0]}"; export TEXTDOMAIN
TEXTDOMAIN="@package@-all"; export TEXTDOMAIN
function copying() {
echo "\

View File

@ -68,7 +68,7 @@ if [[ -z "$LANG" && -r /etc/sysconfig/i18n ]]; then
. /etc/sysconfig/i18n
[ "$LANG" ] && export LANG
fi
TEXTDOMAIN="${me[0]}"; export TEXTDOMAIN
TEXTDOMAIN="@package@-all"; export TEXTDOMAIN
function copying() {
echo "\

View File

@ -70,7 +70,7 @@ if [[ -z "$LANG" && -r /etc/sysconfig/i18n ]]; then
. /etc/sysconfig/i18n
[ "$LANG" ] && export LANG
fi
TEXTDOMAIN="${me[0]}"; export TEXTDOMAIN
TEXTDOMAIN="@package@-all"; export TEXTDOMAIN
function copying() {
echo "\

View File

@ -48,9 +48,10 @@ locales-concatenate: pot-merge
install: locales
@destdir="$(DESTDIR)$(localedir)/$(LANG)/LC_MESSAGES";\
$(INSTALL_DIR) $$destdir;\
for f in $(pck_catalogs:.po=); do\
$(INSTALL_DATA) $${f}.mo $$destdir/$${f}.mo;\
done
$(INSTALL_DATA) $(PACKAGE)-all.mo $$destdir/$(PACKAGE)-all.mo
#for f in $(pck_catalogs:.po=); do\
# $(INSTALL_DATA) $${f}.mo $$destdir/$${f}.mo;\
#done
uninstall:
@for f in $(pck_catalogs:.po=); do\

View File

@ -15,7 +15,7 @@ if [[ -z "$LANG" && -r /etc/sysconfig/i18n ]]; then
. /etc/sysconfig/i18n
[ "$LANG" ] && export LANG
fi
TEXTDOMAIN="test00_specsyntax"; export TEXTDOMAIN
TEXTDOMAIN="@package@-all"; export TEXTDOMAIN
# check if all the needed tools are available
for tool in cat file getopt grep sed; do

View File

@ -15,7 +15,7 @@ if [[ -z "$LANG" && -r /etc/sysconfig/i18n ]]; then
. /etc/sysconfig/i18n
[ "$LANG" ] && export LANG
fi
TEXTDOMAIN="test01_pkgquality"; export TEXTDOMAIN
TEXTDOMAIN="@package@-all"; export TEXTDOMAIN
# check if all the needed tools are available
for tool in file find getopt grep ls ldd; do

View File

@ -15,7 +15,7 @@ if [[ -z "$LANG" && -r /etc/sysconfig/i18n ]]; then
. /etc/sysconfig/i18n
[ "$LANG" ] && export LANG
fi
TEXTDOMAIN="test02_pkgsecurity"; export TEXTDOMAIN
TEXTDOMAIN="@package@-all"; export TEXTDOMAIN
# check if all the needed tools are available
for tool in file find getopt grep objdump sed; do