summaryrefslogtreecommitdiff
path: root/gnu/dist/gettext/gettext-tools/examples/hello-python
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2005-04-29 14:59:33 +0000
committerchristos <christos@NetBSD.org>2005-04-29 14:59:33 +0000
commit7a27fa0d628db127ef99d5d7693cabac225371a0 (patch)
tree2e20b30dd1880af6997bca68de483c5182c818a7 /gnu/dist/gettext/gettext-tools/examples/hello-python
parentf44c5b012e777648a772746694546a82b874ffd5 (diff)
ftp ftp.gnu.org
Diffstat (limited to 'gnu/dist/gettext/gettext-tools/examples/hello-python')
-rw-r--r--gnu/dist/gettext/gettext-tools/examples/hello-python/INSTALL10
-rw-r--r--gnu/dist/gettext/gettext-tools/examples/hello-python/Makefile.am27
-rw-r--r--gnu/dist/gettext/gettext-tools/examples/hello-python/autoclean.sh30
-rw-r--r--gnu/dist/gettext/gettext-tools/examples/hello-python/autogen.sh44
-rw-r--r--gnu/dist/gettext/gettext-tools/examples/hello-python/configure.ac37
-rw-r--r--gnu/dist/gettext/gettext-tools/examples/hello-python/hello.py.in15
-rw-r--r--gnu/dist/gettext/gettext-tools/examples/hello-python/m4/Makefile.am2
-rw-r--r--gnu/dist/gettext/gettext-tools/examples/hello-python/po/LINGUAS6
-rw-r--r--gnu/dist/gettext/gettext-tools/examples/hello-python/po/Makefile.am322
-rw-r--r--gnu/dist/gettext/gettext-tools/examples/hello-python/po/af.po24
-rw-r--r--gnu/dist/gettext/gettext-tools/examples/hello-python/po/ca.po25
-rw-r--r--gnu/dist/gettext/gettext-tools/examples/hello-python/po/de.po26
-rw-r--r--gnu/dist/gettext/gettext-tools/examples/hello-python/po/el.po24
-rw-r--r--gnu/dist/gettext/gettext-tools/examples/hello-python/po/es.po24
-rw-r--r--gnu/dist/gettext/gettext-tools/examples/hello-python/po/fr.po24
-rw-r--r--gnu/dist/gettext/gettext-tools/examples/hello-python/po/ga.po24
-rw-r--r--gnu/dist/gettext/gettext-tools/examples/hello-python/po/it.po24
-rw-r--r--gnu/dist/gettext/gettext-tools/examples/hello-python/po/ja.po23
-rw-r--r--gnu/dist/gettext/gettext-tools/examples/hello-python/po/nl.po25
-rw-r--r--gnu/dist/gettext/gettext-tools/examples/hello-python/po/pl.po24
-rw-r--r--gnu/dist/gettext/gettext-tools/examples/hello-python/po/ro.po24
-rw-r--r--gnu/dist/gettext/gettext-tools/examples/hello-python/po/ru.po26
-rw-r--r--gnu/dist/gettext/gettext-tools/examples/hello-python/po/sk.po24
-rw-r--r--gnu/dist/gettext/gettext-tools/examples/hello-python/po/sr.po23
-rw-r--r--gnu/dist/gettext/gettext-tools/examples/hello-python/po/sv.po23
-rw-r--r--gnu/dist/gettext/gettext-tools/examples/hello-python/po/tr.po24
-rw-r--r--gnu/dist/gettext/gettext-tools/examples/hello-python/po/uk.po24
-rw-r--r--gnu/dist/gettext/gettext-tools/examples/hello-python/po/vi.po24
-rw-r--r--gnu/dist/gettext/gettext-tools/examples/hello-python/po/zh_CN.po24
29 files changed, 976 insertions, 0 deletions
diff --git a/gnu/dist/gettext/gettext-tools/examples/hello-python/INSTALL b/gnu/dist/gettext/gettext-tools/examples/hello-python/INSTALL
new file mode 100644
index 00000000000..cb9ecf7ca6d
--- /dev/null
+++ b/gnu/dist/gettext/gettext-tools/examples/hello-python/INSTALL
@@ -0,0 +1,10 @@
+This example relies on Python 2.0 or newer.
+
+Installation:
+ ./autogen.sh
+ ./configure --prefix=/some/prefix
+ make
+ make install
+Cleanup:
+ make distclean
+ ./autoclean.sh
diff --git a/gnu/dist/gettext/gettext-tools/examples/hello-python/Makefile.am b/gnu/dist/gettext/gettext-tools/examples/hello-python/Makefile.am
new file mode 100644
index 00000000000..76f8e1fbc8f
--- /dev/null
+++ b/gnu/dist/gettext/gettext-tools/examples/hello-python/Makefile.am
@@ -0,0 +1,27 @@
+# Example for use of GNU gettext.
+# Copyright (C) 2003 Free Software Foundation, Inc.
+# This file is in the public domain.
+#
+# Makefile configuration - processed by automake.
+
+# General automake options.
+AUTOMAKE_OPTIONS = foreign
+ACLOCAL_AMFLAGS = -I m4
+
+# The list of subdirectories containing Makefiles.
+SUBDIRS = m4 po
+
+# The list of programs that are built.
+bin_SCRIPTS = hello
+
+# Making a Python program executable.
+# FIXME: How to make a compiled python program (output of automake's
+# py-compile command) executable?
+hello: hello.py
+ (echo '#!@PYTHON@'; cat $<) > $@
+ chmod a+x $@
+CLEANFILES = hello
+#CLEANFILES += *.pyc *.pyo
+
+# Additional files to be distributed.
+EXTRA_DIST = autogen.sh autoclean.sh
diff --git a/gnu/dist/gettext/gettext-tools/examples/hello-python/autoclean.sh b/gnu/dist/gettext/gettext-tools/examples/hello-python/autoclean.sh
new file mode 100644
index 00000000000..a309cee671d
--- /dev/null
+++ b/gnu/dist/gettext/gettext-tools/examples/hello-python/autoclean.sh
@@ -0,0 +1,30 @@
+#!/bin/sh
+# Example for use of GNU gettext.
+# Copyright (C) 2003 Free Software Foundation, Inc.
+# This file is in the public domain.
+#
+# Script for cleaning all autogenerated files.
+
+test ! -f Makefile || make distclean
+
+# Brought in by explicit copy.
+rm -f m4/nls.m4
+rm -f m4/po.m4
+rm -f po/remove-potcdate.sin
+
+# Generated by aclocal.
+rm -f aclocal.m4
+
+# Generated by autoconf.
+rm -f configure
+
+# Generated or brought in by automake.
+rm -f Makefile.in
+rm -f m4/Makefile.in
+rm -f po/Makefile.in
+rm -f install-sh
+rm -f mkinstalldirs
+rm -f missing
+rm -f po/*.pot
+rm -f po/stamp-po
+rm -f po/*.gmo
diff --git a/gnu/dist/gettext/gettext-tools/examples/hello-python/autogen.sh b/gnu/dist/gettext/gettext-tools/examples/hello-python/autogen.sh
new file mode 100644
index 00000000000..591fa2947b5
--- /dev/null
+++ b/gnu/dist/gettext/gettext-tools/examples/hello-python/autogen.sh
@@ -0,0 +1,44 @@
+#!/bin/sh
+# Example for use of GNU gettext.
+# Copyright (C) 2003-2005 Free Software Foundation, Inc.
+# This file is in the public domain.
+#
+# Script for regenerating all autogenerated files.
+
+if test -r ../Makefile.am; then
+ # Inside the gettext source directory.
+ GETTEXT_TOPSRCDIR=../../..
+else
+ if test -r ../Makefile; then
+ # Inside a gettext build directory.
+ GETTEXT_TOOLS_SRCDIR=`sed -n -e 's,^top_srcdir *= *\(.*\)$,\1,p' ../Makefile`
+ # Adjust a relative top_srcdir.
+ case $GETTEXT_TOOLS_SRCDIR in
+ /*) ;;
+ *) GETTEXT_TOOLS_SRCDIR=../$GETTEXT_TOOLS_SRCDIR ;;
+ esac
+ GETTEXT_TOPSRCDIR=$GETTEXT_TOOLS_SRCDIR/..
+ else
+ # Installed under ${prefix}/share/doc/gettext/examples.
+ . ../installpaths
+ fi
+fi
+
+cp -p ${ACLOCALDIR-$GETTEXT_TOPSRCDIR/gettext-runtime/m4}/nls.m4 m4/nls.m4
+cp -p ${ACLOCALDIR-$GETTEXT_TOPSRCDIR/gettext-runtime/m4}/po.m4 m4/po.m4
+cp -p ${GETTEXTSRCPODIR-$GETTEXT_TOPSRCDIR/gettext-runtime/po}/remove-potcdate.sin po/remove-potcdate.sin
+
+aclocal -I m4
+
+autoconf
+
+automake -a -c
+
+cd po
+for f in *.po; do
+ if test -r "$f"; then
+ lang=`echo $f | sed -e 's,\.po$,,'`
+ msgfmt -c -o $lang.gmo $lang.po
+ fi
+done
+cd ..
diff --git a/gnu/dist/gettext/gettext-tools/examples/hello-python/configure.ac b/gnu/dist/gettext/gettext-tools/examples/hello-python/configure.ac
new file mode 100644
index 00000000000..a6d65a955be
--- /dev/null
+++ b/gnu/dist/gettext/gettext-tools/examples/hello-python/configure.ac
@@ -0,0 +1,37 @@
+dnl Example for use of GNU gettext.
+dnl Copyright (C) 2003 Free Software Foundation, Inc.
+dnl This file is in the public domain.
+dnl
+dnl Configuration file - processed by autoconf.
+
+AC_INIT
+AC_CONFIG_SRCDIR(hello.py.in)
+AM_INIT_AUTOMAKE(hello-python, 0)
+
+dnl Check for availability of the Python interpreter.
+AM_PATH_PYTHON
+if test -z "$PYTHON"; then
+ echo "*** Essential program python not found" 1>&2
+ exit 1
+fi
+
+dnl The installed program must know where to find its message catalogs.
+dnl Unfortunately, prefix gets only finally determined at the end of configure.
+if test "X$prefix" = "XNONE"; then
+ final_prefix="$ac_default_prefix"
+else
+ final_prefix="$prefix"
+fi
+save_prefix="$prefix"
+prefix="$final_prefix"
+eval "localedir=\"${datadir}/locale\""
+prefix="$save_prefix"
+AC_SUBST(localedir)
+
+dnl Support for the po directory.
+AM_PO_SUBDIRS
+
+AC_CONFIG_FILES([Makefile hello.py])
+AC_CONFIG_FILES([m4/Makefile])
+AC_CONFIG_FILES([po/Makefile], [AM_POSTPROCESS_PO_MAKEFILE])
+AC_OUTPUT
diff --git a/gnu/dist/gettext/gettext-tools/examples/hello-python/hello.py.in b/gnu/dist/gettext/gettext-tools/examples/hello-python/hello.py.in
new file mode 100644
index 00000000000..4e56cc17930
--- /dev/null
+++ b/gnu/dist/gettext/gettext-tools/examples/hello-python/hello.py.in
@@ -0,0 +1,15 @@
+# Example for use of GNU gettext.
+# Copyright (C) 2003 Free Software Foundation, Inc.
+# This file is in the public domain.
+#
+# Source code of the Python program.
+
+import gettext
+import os
+
+gettext.textdomain('hello-python')
+gettext.bindtextdomain('hello-python', '@localedir@')
+
+print gettext.gettext("Hello, world!")
+print gettext.gettext("This program is running as process number %(pid)d.") \
+ % { 'pid': os.getpid() }
diff --git a/gnu/dist/gettext/gettext-tools/examples/hello-python/m4/Makefile.am b/gnu/dist/gettext/gettext-tools/examples/hello-python/m4/Makefile.am
new file mode 100644
index 00000000000..8a841b31f12
--- /dev/null
+++ b/gnu/dist/gettext/gettext-tools/examples/hello-python/m4/Makefile.am
@@ -0,0 +1,2 @@
+EXTRA_DIST = \
+ nls.m4 po.m4
diff --git a/gnu/dist/gettext/gettext-tools/examples/hello-python/po/LINGUAS b/gnu/dist/gettext/gettext-tools/examples/hello-python/po/LINGUAS
new file mode 100644
index 00000000000..49ccf62236f
--- /dev/null
+++ b/gnu/dist/gettext/gettext-tools/examples/hello-python/po/LINGUAS
@@ -0,0 +1,6 @@
+# Example for use of GNU gettext.
+# Copyright (C) 2003-2005 Free Software Foundation, Inc.
+# This file is in the public domain.
+#
+# Set of available languages.
+af ca de el es fr ga it ja nl pl ro ru sk sr sv tr uk vi zh_CN
diff --git a/gnu/dist/gettext/gettext-tools/examples/hello-python/po/Makefile.am b/gnu/dist/gettext/gettext-tools/examples/hello-python/po/Makefile.am
new file mode 100644
index 00000000000..be1c2d32947
--- /dev/null
+++ b/gnu/dist/gettext/gettext-tools/examples/hello-python/po/Makefile.am
@@ -0,0 +1,322 @@
+# Example for use of GNU gettext.
+# Copyright (C) 2003-2005 Free Software Foundation, Inc.
+# This file is in the public domain.
+#
+# Makefile configuration - processed by automake.
+
+# List of files which contain translatable strings.
+POTFILES = \
+ hello.py.in
+
+# Usually the message domain is the same as the package name.
+DOMAIN = $(PACKAGE)
+
+# These options get passed to xgettext.
+XGETTEXT_OPTIONS =
+
+# This is the copyright holder that gets inserted into the header of the
+# $(DOMAIN).pot file. Set this to the copyright holder of the surrounding
+# package. (Note that the msgstr strings, extracted from the package's
+# sources, belong to the copyright holder of the package.) Translators are
+# expected to transfer the copyright for their translations to this person
+# or entity, or to disclaim their copyright. The empty string stands for
+# the public domain; in this case the translators are expected to disclaim
+# their copyright.
+COPYRIGHT_HOLDER = Yoyodyne, Inc.
+
+# This is the email address or URL to which the translators shall report
+# bugs in the untranslated strings:
+# - Strings which are not entire sentences, see the maintainer guidelines
+# in the GNU gettext documentation, section 'Preparing Strings'.
+# - Strings which use unclear terms or require additional context to be
+# understood.
+# - Strings which make invalid assumptions about notation of date, time or
+# money.
+# - Pluralisation problems.
+# - Incorrect English spelling.
+# - Incorrect formatting.
+# It can be your email address, or a mailing list address where translators
+# can write to without being subscribed, or the URL of a web page through
+# which the translators can contact you.
+MSGID_BUGS_ADDRESS = bug-gnu-gettext@gnu.org
+
+# This is the list of locale categories, beyond LC_MESSAGES, for which the
+# message catalogs shall be used. It is usually empty.
+EXTRA_LOCALE_CATEGORIES =
+
+localedir = $(datadir)/locale
+
+MSGMERGE = msgmerge
+MSGMERGE_UPDATE = @MSGMERGE@ --update
+MSGINIT = msginit
+MSGCONV = msgconv
+MSGFILTER = msgfilter
+
+# This is computed as $(foreach file, $(POTFILES), $(top_srcdir)/$(file))
+POTFILES_DEPS = @POTFILES_DEPS@
+
+# This is computed as $(foreach lang, $(LINGUAS), $(srcdir)/$(lang).po)
+POFILES = @POFILES@
+# This is computed as $(foreach lang, $(LINGUAS), $(srcdir)/$(lang).gmo)
+GMOFILES = @GMOFILES@
+# This is computed as $(foreach lang, $(LINGUAS), $(lang).po-update)
+UPDATEPOFILES = @UPDATEPOFILES@
+# This is computed as $(foreach lang, $(LINGUAS), $(lang).nop)
+DUMMYPOFILES = @DUMMYPOFILES@
+
+# This is computed as
+# $(foreach lang, user-specified subset of $(LINGUAS), $(lang).gmo)
+CATALOGS = @CATALOGS@
+
+SUFFIXES = .po .gmo .mo .sed .sin .nop .po-create .po-update
+
+.po.mo:
+ @echo "$(MSGFMT) -c -o $@ $<"; \
+ $(MSGFMT) -c -o t-$@ $< && mv t-$@ $@
+
+.po.gmo:
+ @lang=`echo $* | sed -e 's,.*/,,'`; \
+ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
+ echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o $${lang}.gmo $${lang}.po"; \
+ cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo
+
+.sin.sed:
+ sed -e '/^#/d' $< > t-$@
+ mv t-$@ $@
+
+
+all-local: all-local-@USE_NLS@
+
+all-local-yes: stamp-po
+all-local-no:
+
+# $(srcdir)/$(DOMAIN).pot is only created when needed. When xgettext finds no
+# internationalized messages, no $(srcdir)/$(DOMAIN).pot is created (because
+# we don't want to bother translators with empty POT files). We assume that
+# LINGUAS is empty in this case, i.e. $(POFILES) and $(GMOFILES) are empty.
+# In this case, stamp-po is a nop (i.e. a phony target).
+
+# stamp-po is a timestamp denoting the last time at which the CATALOGS have
+# been loosely updated. Its purpose is that when a developer or translator
+# checks out the package via CVS, and the $(DOMAIN).pot file is not in CVS,
+# "make" will update the $(DOMAIN).pot and the $(CATALOGS), but subsequent
+# invocations of "make" will do nothing. This timestamp would not be necessary
+# if updating the $(CATALOGS) would always touch them; however, the rule for
+# $(POFILES) has been designed to not touch files that don't need to be
+# changed.
+stamp-po: $(srcdir)/$(DOMAIN).pot
+ test ! -f $(srcdir)/$(DOMAIN).pot || \
+ test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES)
+ @test ! -f $(srcdir)/$(DOMAIN).pot || { \
+ echo "touch stamp-po" && \
+ echo timestamp > stamp-poT && \
+ mv stamp-poT stamp-po; \
+ }
+
+# Note: Target 'all' must not depend on target '$(DOMAIN).pot-update',
+# otherwise packages like GCC can not be built if only parts of the source
+# have been downloaded.
+
+# This target rebuilds $(DOMAIN).pot; it is an expensive operation.
+# Note that $(DOMAIN).pot is not touched if it doesn't need to be changed.
+$(DOMAIN).pot-update: $(POTFILES_DEPS) remove-potcdate.sed
+ if test -n '$(MSGID_BUGS_ADDRESS)'; then \
+ msgid_bugs_address='$(MSGID_BUGS_ADDRESS)'; \
+ else \
+ msgid_bugs_address='$(PACKAGE_BUGREPORT)'; \
+ fi; \
+ $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \
+ --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) \
+ --copyright-holder='$(COPYRIGHT_HOLDER)' \
+ --msgid-bugs-address="$$msgid_bugs_address" \
+ $(POTFILES)
+ test ! -f $(DOMAIN).po || { \
+ if test -f $(srcdir)/$(DOMAIN).pot; then \
+ sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \
+ sed -f remove-potcdate.sed < $(DOMAIN).po > $(DOMAIN).2po && \
+ if cmp $(DOMAIN).1po $(DOMAIN).2po >/dev/null 2>&1; then \
+ rm -f $(DOMAIN).1po $(DOMAIN).2po $(DOMAIN).po; \
+ else \
+ rm -f $(DOMAIN).1po $(DOMAIN).2po $(srcdir)/$(DOMAIN).pot && \
+ mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \
+ fi; \
+ else \
+ mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \
+ fi; \
+ }
+
+# This rule has no dependencies: we don't need to update $(DOMAIN).pot at
+# every "make" invocation, only create it when it is missing.
+# Only "make $(DOMAIN).pot-update" or "make dist" will force an update.
+$(srcdir)/$(DOMAIN).pot:
+ $(MAKE) $(DOMAIN).pot-update
+
+# This target rebuilds a PO file if $(DOMAIN).pot has changed.
+# Note that a PO file is not touched if it doesn't need to be changed.
+$(POFILES): $(srcdir)/$(DOMAIN).pot
+ @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \
+ if test -f "$(srcdir)/$${lang}.po"; then \
+ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
+ echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \
+ cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot; \
+ else \
+ $(MAKE) $${lang}.po-create; \
+ fi
+
+
+install-data-local: install-data-local-@USE_NLS@
+install-data-local-no: all-local
+install-data-local-yes: all-local
+ $(mkinstalldirs) $(DESTDIR)$(datadir)
+ @catalogs='$(CATALOGS)'; \
+ for cat in $$catalogs; do \
+ cat=`basename $$cat`; \
+ lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
+ dir=$(localedir)/$$lang/LC_MESSAGES; \
+ $(mkinstalldirs) $(DESTDIR)$$dir; \
+ if test -r $$cat; then realcat=$$cat; else realcat=$(srcdir)/$$cat; fi; \
+ $(INSTALL_DATA) $$realcat $(DESTDIR)$$dir/$(DOMAIN).mo; \
+ echo "installing $$realcat as $(DESTDIR)$$dir/$(DOMAIN).mo"; \
+ for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \
+ if test -n "$$lc"; then \
+ if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \
+ link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \
+ mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
+ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
+ (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \
+ for file in *; do \
+ if test -f $$file; then \
+ ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \
+ fi; \
+ done); \
+ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
+ else \
+ if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \
+ :; \
+ else \
+ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \
+ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
+ fi; \
+ fi; \
+ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
+ ln -s ../LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \
+ ln $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \
+ cp -p $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
+ echo "installing $$realcat link as $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo"; \
+ fi; \
+ done; \
+ done
+
+installdirs-local: installdirs-local-@USE_NLS@
+installdirs-local-no:
+installdirs-local-yes:
+ $(mkinstalldirs) $(DESTDIR)$(datadir)
+ @catalogs='$(CATALOGS)'; \
+ for cat in $$catalogs; do \
+ cat=`basename $$cat`; \
+ lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
+ dir=$(localedir)/$$lang/LC_MESSAGES; \
+ $(mkinstalldirs) $(DESTDIR)$$dir; \
+ for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \
+ if test -n "$$lc"; then \
+ if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \
+ link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \
+ mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
+ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
+ (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \
+ for file in *; do \
+ if test -f $$file; then \
+ ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \
+ fi; \
+ done); \
+ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
+ else \
+ if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \
+ :; \
+ else \
+ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \
+ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
+ fi; \
+ fi; \
+ fi; \
+ done; \
+ done
+
+uninstall-local: uninstall-local-@USE_NLS@
+uninstall-local-no:
+uninstall-local-yes:
+ catalogs='$(CATALOGS)'; \
+ for cat in $$catalogs; do \
+ cat=`basename $$cat`; \
+ lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
+ for lc in LC_MESSAGES $(EXTRA_LOCALE_CATEGORIES); do \
+ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
+ done; \
+ done
+
+html ID:
+
+MOSTLYCLEANFILES =
+MOSTLYCLEANFILES += remove-potcdate.sed
+MOSTLYCLEANFILES += stamp-poT
+MOSTLYCLEANFILES += core core.* $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po
+MOSTLYCLEANFILES += *.o
+
+DISTCLEANFILES = *.mo
+
+MAINTAINERCLEANFILES = stamp-po $(GMOFILES)
+
+EXTRA_DIST = remove-potcdate.sin LINGUAS $(POFILES) $(GMOFILES)
+
+# Hidden from automake, but really activated. Works around an automake-1.5 bug.
+#distdir: distdir1
+distdir1:
+ $(MAKE) update-po
+ if test -f $(srcdir)/$(DOMAIN).pot; then \
+ for file in $(DOMAIN).pot stamp-po; do \
+ if test -f $$file; then d=.; else d=$(srcdir); fi; \
+ cp -p $$d/$$file $(distdir)/$$file || exit 1; \
+ done; \
+ fi
+
+update-po: Makefile
+ $(MAKE) $(DOMAIN).pot-update
+ test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES)
+ $(MAKE) update-gmo
+
+# General rule for creating PO files.
+
+.nop.po-create:
+ @lang=`echo $@ | sed -e 's/\.po-create$$//'`; \
+ echo "File $$lang.po does not exist. If you are a translator, you can create it through 'msginit'." 1>&2; \
+ exit 1
+
+# General rule for updating PO files.
+
+.nop.po-update:
+ @lang=`echo $@ | sed -e 's/\.po-update$$//'`; \
+ tmpdir=`pwd`; \
+ echo "$$lang:"; \
+ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
+ echo "$${cdcmd}$(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \
+ cd $(srcdir); \
+ if $(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$tmpdir/$$lang.new.po; then \
+ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
+ rm -f $$tmpdir/$$lang.new.po; \
+ else \
+ if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
+ :; \
+ else \
+ echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
+ exit 1; \
+ fi; \
+ fi; \
+ else \
+ echo "msgmerge for $$lang.po failed!" 1>&2; \
+ rm -f $$tmpdir/$$lang.new.po; \
+ fi
+
+$(DUMMYPOFILES):
+
+update-gmo: Makefile $(GMOFILES)
+ @:
diff --git a/gnu/dist/gettext/gettext-tools/examples/hello-python/po/af.po b/gnu/dist/gettext/gettext-tools/examples/hello-python/po/af.po
new file mode 100644
index 00000000000..2654c908206
--- /dev/null
+++ b/gnu/dist/gettext/gettext-tools/examples/hello-python/po/af.po
@@ -0,0 +1,24 @@
+# Afrikaans translation for Silky
+# Copyright (C) 2004 Free Software Foundation, Inc.
+# This file is distributed under the same license as the silky package.
+# Hanlie Pretorius <hpretorius@pnp.co.za>, 2004.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: hello-python-0.13.1\n"
+"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n"
+"PO-Revision-Date: 2003-12-31 10:30+2\n"
+"Last-Translator: Ysbeer <ysbeer@af.org.za>\n"
+"Language-Team: Afrikaans <i18n@af.org.za>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: hello.py.in:13
+msgid "Hello, world!"
+msgstr "Hallo wêreld!"
+
+#: hello.py.in:14
+#, python-format
+msgid "This program is running as process number %(pid)d."
+msgstr "Hierdie program loop as prosesnommer %(pid)d."
diff --git a/gnu/dist/gettext/gettext-tools/examples/hello-python/po/ca.po b/gnu/dist/gettext/gettext-tools/examples/hello-python/po/ca.po
new file mode 100644
index 00000000000..5ce2cc1ef80
--- /dev/null
+++ b/gnu/dist/gettext/gettext-tools/examples/hello-python/po/ca.po
@@ -0,0 +1,25 @@
+# Catalan messages for GNU hello-python.
+# Copyright (C) 2003 Free Software Foundation, Inc.
+# This file is distributed under the same license as the hello-python package.
+# Ivan Vilata i Balaguer <ivan@selidor.net>, 2003.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: hello-python 0.13.1\n"
+"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n"
+"PO-Revision-Date: 2003-12-18 10:41+0100\n"
+"Last-Translator: Ivan Vilata i Balaguer <ivan@selidor.net>\n"
+"Language-Team: Catalan <ca@dodds.net>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#: hello.py.in:13
+msgid "Hello, world!"
+msgstr "Hola, món!"
+
+#: hello.py.in:14
+#, python-format
+msgid "This program is running as process number %(pid)d."
+msgstr "Aquest programa està corrent amb el número de procés %(pid)d."
diff --git a/gnu/dist/gettext/gettext-tools/examples/hello-python/po/de.po b/gnu/dist/gettext/gettext-tools/examples/hello-python/po/de.po
new file mode 100644
index 00000000000..bcbb13658cd
--- /dev/null
+++ b/gnu/dist/gettext/gettext-tools/examples/hello-python/po/de.po
@@ -0,0 +1,26 @@
+# German messages for hello-python.
+# Copyright © 2003 Free Software Foundation, Inc.
+# This file is distributed under the same license as the hello-python package.
+# Bruno Haible <bruno@clisp.org>, 2003.
+# Karl Eichwalder <ke@gnu.franken.de>, 2003.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: hello-python 0.13.1\n"
+"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n"
+"PO-Revision-Date: 2003-12-18 10:09+0100\n"
+"Last-Translator: Karl Eichwalder <ke@gnu.franken.de>\n"
+"Language-Team: German <de@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#: hello.py.in:13
+msgid "Hello, world!"
+msgstr "Hallo Welt!"
+
+#: hello.py.in:14
+#, python-format
+msgid "This program is running as process number %(pid)d."
+msgstr "Dieses Programm läuft mit der Prozess-Nummer %(pid)d."
diff --git a/gnu/dist/gettext/gettext-tools/examples/hello-python/po/el.po b/gnu/dist/gettext/gettext-tools/examples/hello-python/po/el.po
new file mode 100644
index 00000000000..4826f02ceb8
--- /dev/null
+++ b/gnu/dist/gettext/gettext-tools/examples/hello-python/po/el.po
@@ -0,0 +1,24 @@
+# Greek translation of hello-python
+# Copyright (C) 2005 Free Software Foundation, Inc.
+# Simos Xenitellis <simos74@gmx.net>, 2005.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: hello-python 0.14.1\n"
+"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n"
+"PO-Revision-Date: 2005-01-06 18:50+0000\n"
+"Last-Translator: Simos Xenitellis <simos74@gmx.net>\n"
+"Language-Team: Greek <nls@tux.hellug.gr>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.3.1\n"
+
+#: hello.py.in:13
+msgid "Hello, world!"
+msgstr "Γεια σου, κόσμε!"
+
+#: hello.py.in:14
+#, python-format
+msgid "This program is running as process number %(pid)d."
+msgstr "Αυτό το πρόγραμμα εκτελείται με αριθμό διεργασίας %(pid)d."
diff --git a/gnu/dist/gettext/gettext-tools/examples/hello-python/po/es.po b/gnu/dist/gettext/gettext-tools/examples/hello-python/po/es.po
new file mode 100644
index 00000000000..57d873fa209
--- /dev/null
+++ b/gnu/dist/gettext/gettext-tools/examples/hello-python/po/es.po
@@ -0,0 +1,24 @@
+# Mensajes en espaol para GNU gettext.
+# Copyright (C) 1996, 1997, 1998, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
+# Max de Mendizbal <max@upn.mx>, 1996, 1997, 1998, 1999, 2000,
+# 2001, 2002, 2003, 2004.
+msgid ""
+msgstr ""
+"Project-Id-Version: hello-python-0.14\n"
+"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n"
+"PO-Revision-Date: 2004-01-29 13:59-0600\n"
+"Last-Translator: Max de Mendizbal <max@upn.mx>\n"
+"Language-Team: Spanish <es@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ISO-8859-1\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#: hello.py.in:13
+msgid "Hello, world!"
+msgstr "Hola, mundo!"
+
+#: hello.py.in:14
+#, python-format
+msgid "This program is running as process number %(pid)d."
+msgstr "Este programa est corriendo como el proceso nmero %(pid)d."
diff --git a/gnu/dist/gettext/gettext-tools/examples/hello-python/po/fr.po b/gnu/dist/gettext/gettext-tools/examples/hello-python/po/fr.po
new file mode 100644
index 00000000000..23ef15811c0
--- /dev/null
+++ b/gnu/dist/gettext/gettext-tools/examples/hello-python/po/fr.po
@@ -0,0 +1,24 @@
+# Messages franais pour GNU gettext.
+# Copyright 2003 Free Software Foundation, Inc.
+# Michel Robitaille <robitail@iro.umontreal.ca>, traducteur depuis/since 1996.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: GNU hello-python 0.13.1\n"
+"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n"
+"PO-Revision-Date: 2003-12-18 08:00-0500\n"
+"Last-Translator: Michel Robitaille <robitail@IRO.UMontreal.CA>\n"
+"Language-Team: French <traduc@traduc.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ISO-8859-1\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n > 1);\n"
+
+#: hello.py.in:13
+msgid "Hello, world!"
+msgstr "Bonjour, le monde!"
+
+#: hello.py.in:14
+#, python-format
+msgid "This program is running as process number %(pid)d."
+msgstr "Ce programme est excut en tant que processus numro %(pid)d."
diff --git a/gnu/dist/gettext/gettext-tools/examples/hello-python/po/ga.po b/gnu/dist/gettext/gettext-tools/examples/hello-python/po/ga.po
new file mode 100644
index 00000000000..85b0d24c1e0
--- /dev/null
+++ b/gnu/dist/gettext/gettext-tools/examples/hello-python/po/ga.po
@@ -0,0 +1,24 @@
+# Irish translations for hello-python.
+# Copyright (C) 2004 Yoyodyne, Inc.
+# This file is distributed under the same license as the hello-python package.
+# Kevin Patrick Scannell <scannell@SLU.EDU>, 2004.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: hello-python 0.14.1\n"
+"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n"
+"PO-Revision-Date: 2005-02-07 12:09-0500\n"
+"Last-Translator: Kevin Patrick Scannell <scannell@SLU.EDU>\n"
+"Language-Team: Irish <ga@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ISO-8859-1\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: hello.py.in:13
+msgid "Hello, world!"
+msgstr "Dia duit, a dhomhain!"
+
+#: hello.py.in:14
+#, python-format
+msgid "This program is running as process number %(pid)d."
+msgstr "T an clr seo rith mar phriseas %(pid)d."
diff --git a/gnu/dist/gettext/gettext-tools/examples/hello-python/po/it.po b/gnu/dist/gettext/gettext-tools/examples/hello-python/po/it.po
new file mode 100644
index 00000000000..fd2d3aa1409
--- /dev/null
+++ b/gnu/dist/gettext/gettext-tools/examples/hello-python/po/it.po
@@ -0,0 +1,24 @@
+# Italian messages for hello-python.
+# Copyright (C) 2005 Yoyodyne, Inc.
+# This file is distributed under the same license as the gettext package.
+# Marco Colombo <m.colombo@ed.ac.uk>, 2005.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: hello-python 0.14.3\n"
+"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n"
+"PO-Revision-Date: 2005-04-06 11:53+0100\n"
+"Last-Translator: Marco Colombo <m.colombo@ed.ac.uk>\n"
+"Language-Team: Italian <tp@lists.linux.it>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: hello.py.in:13
+msgid "Hello, world!"
+msgstr "Salve, mondo!"
+
+#: hello.py.in:14
+#, python-format
+msgid "This program is running as process number %(pid)d."
+msgstr "Questo programma è in esecuzione con numero di processo %(pid)d."
diff --git a/gnu/dist/gettext/gettext-tools/examples/hello-python/po/ja.po b/gnu/dist/gettext/gettext-tools/examples/hello-python/po/ja.po
new file mode 100644
index 00000000000..0c9e72d8d6c
--- /dev/null
+++ b/gnu/dist/gettext/gettext-tools/examples/hello-python/po/ja.po
@@ -0,0 +1,23 @@
+# Translation of `hello-python' messages to Japanese.
+# Copyright (C) 2003 Free Software Foundation, Inc.
+# Masahito Yamaga <ma@yama-ga.com>, 2003.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: GNU hello-python 0.13.1\n"
+"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n"
+"PO-Revision-Date: 2003-12-20 00:24+0900\n"
+"Last-Translator: Masahito Yamaga <ma@yama-ga.com>\n"
+"Language-Team: Japanese <translation-team-ja@lists.sourceforge.net>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=EUC-JP\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: hello.py.in:13
+msgid "Hello, world!"
+msgstr ", ˤ!"
+
+#: hello.py.in:14
+#, python-format
+msgid "This program is running as process number %(pid)d."
+msgstr "Υץϥץֹ %(pid)d ưƤޤ."
diff --git a/gnu/dist/gettext/gettext-tools/examples/hello-python/po/nl.po b/gnu/dist/gettext/gettext-tools/examples/hello-python/po/nl.po
new file mode 100644
index 00000000000..e4944ccec91
--- /dev/null
+++ b/gnu/dist/gettext/gettext-tools/examples/hello-python/po/nl.po
@@ -0,0 +1,25 @@
+# Dutch translation of hello-python.
+# Copyright (C) 2004 Free Software Foundation, Inc.
+# This file is distributed under the same license as the hello-python package.
+# Elros Cyriatan <cyriatan@fastmail.fm>, 2004.
+#
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: hello-python 0.13.1\n"
+"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n"
+"PO-Revision-Date: 2004-01-04 20:50+0100\n"
+"Last-Translator: Elros Cyriatan <cyriatan@fastmail.fm>\n"
+"Language-Team: Dutch <vertaling@nl.linux.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: hello.py.in:13
+msgid "Hello, world!"
+msgstr "Hallo, wereld!"
+
+#: hello.py.in:14
+#, python-format
+msgid "This program is running as process number %(pid)d."
+msgstr "Dit programma draait als proces nummer %(pid)d."
diff --git a/gnu/dist/gettext/gettext-tools/examples/hello-python/po/pl.po b/gnu/dist/gettext/gettext-tools/examples/hello-python/po/pl.po
new file mode 100644
index 00000000000..278217a3c43
--- /dev/null
+++ b/gnu/dist/gettext/gettext-tools/examples/hello-python/po/pl.po
@@ -0,0 +1,24 @@
+# Polish translations for the GNU gettext messages, hello-python domain
+# Copyright (C) 2003 Free Software Foundation, Inc.
+# This file is distributed under the same license as the gettext package.
+# Rafa Maszkowski <rzm@icm.edu.pl>, 2003
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: hello-python-0.13.1\n"
+"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n"
+"PO-Revision-Date: 2003-12-18 12:00+0100\n"
+"Last-Translator: Rafa Maszkowski <rzm@icm.edu.pl>\n"
+"Language-Team: Polish <translation-team-pl@lists.sourceforge.net>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ISO-8859-2\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: hello.py.in:13
+msgid "Hello, world!"
+msgstr "Witaj wiecie!"
+
+#: hello.py.in:14
+#, python-format
+msgid "This program is running as process number %(pid)d."
+msgstr "Ten program dziaa jako proces o numerze %(pid)d."
diff --git a/gnu/dist/gettext/gettext-tools/examples/hello-python/po/ro.po b/gnu/dist/gettext/gettext-tools/examples/hello-python/po/ro.po
new file mode 100644
index 00000000000..4feac86c480
--- /dev/null
+++ b/gnu/dist/gettext/gettext-tools/examples/hello-python/po/ro.po
@@ -0,0 +1,24 @@
+# Mesajele n limba romn pentru pachetul hello-python-0.13-pre1.
+# Copyright (C) 2003 Free Software Foundation, Inc.
+# Acest fiier este distribuit sub aceeai licen ca pachetul hello-python.
+# Eugen Hoanca <eugenh@urban-grafx.ro>, 2003
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: hello-python 0.13-pre1\n"
+"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n"
+"PO-Revision-Date: 2003-11-22 11:15+0200\n"
+"Last-Translator: Eugen Hoanca <eugenh@urban-grafx.ro>\n"
+"Language-Team: Romanian <translation-team-ro@lists.sourceforge.net>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ISO-8859-2\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: hello.py.in:13
+msgid "Hello, world!"
+msgstr "Salut, lume! (Hello, world!)"
+
+#: hello.py.in:14
+#, python-format
+msgid "This program is running as process number %(pid)d."
+msgstr "Acest program este rulat ca procesul numrul %(pid)d."
diff --git a/gnu/dist/gettext/gettext-tools/examples/hello-python/po/ru.po b/gnu/dist/gettext/gettext-tools/examples/hello-python/po/ru.po
new file mode 100644
index 00000000000..3af1e54c5b3
--- /dev/null
+++ b/gnu/dist/gettext/gettext-tools/examples/hello-python/po/ru.po
@@ -0,0 +1,26 @@
+# Translation of hello-python-0.14.1.po to Russian
+# Copyright (C) 2004 Free Software Foundation, Inc.
+# This file is distributed under the same license as the hello-python package.
+# Copyright (C) 2004 Yoyodyne, Inc.
+# Pavel Maryanov <acid_jack@ukr.net>, 2004.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: hello-python 0.14.1\n"
+"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n"
+"PO-Revision-Date: 2004-11-17 10:08+0200\n"
+"Last-Translator: Pavel Maryanov <acid_jack@ukr.net>\n"
+"Language-Team: Russian <ru@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=KOI8-R\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.3\n"
+
+#: hello.py.in:13
+msgid "Hello, world!"
+msgstr ", !"
+
+#: hello.py.in:14
+#, python-format
+msgid "This program is running as process number %(pid)d."
+msgstr " %(pid)d."
diff --git a/gnu/dist/gettext/gettext-tools/examples/hello-python/po/sk.po b/gnu/dist/gettext/gettext-tools/examples/hello-python/po/sk.po
new file mode 100644
index 00000000000..d1e10bacc52
--- /dev/null
+++ b/gnu/dist/gettext/gettext-tools/examples/hello-python/po/sk.po
@@ -0,0 +1,24 @@
+# Slovak translations GNU for hello-python package.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
+# This file is distributed under the same license as the GNU hello-python package.
+# Marcel Telka <marcel@telka.sk>, 2003, 2004.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: GNU hello-python 0.14-pre1\n"
+"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n"
+"PO-Revision-Date: 2004-01-22 00:19+0100\n"
+"Last-Translator: Marcel Telka <marcel@telka.sk>\n"
+"Language-Team: Slovak <sk-i18n@lists.linux.sk>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: hello.py.in:13
+msgid "Hello, world!"
+msgstr "Ahoj svet!"
+
+#: hello.py.in:14
+#, python-format
+msgid "This program is running as process number %(pid)d."
+msgstr "Tento program beží ako proces s číslom %(pid)d."
diff --git a/gnu/dist/gettext/gettext-tools/examples/hello-python/po/sr.po b/gnu/dist/gettext/gettext-tools/examples/hello-python/po/sr.po
new file mode 100644
index 00000000000..28ba7afdb8f
--- /dev/null
+++ b/gnu/dist/gettext/gettext-tools/examples/hello-python/po/sr.po
@@ -0,0 +1,23 @@
+# Serbian translation of hello-python.
+# Copyright (C) 2004 Free Software Foundation, Inc.
+# This file is distributed under the same license as the `hello-python' package.
+# Aleksandar Jelenak <jelenak@netlinkplus.net>, 2004.
+msgid ""
+msgstr ""
+"Project-Id-Version: hello-python 0.14\n"
+"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n"
+"PO-Revision-Date: 2004-01-31 00:47-0500\n"
+"Last-Translator: Aleksandar Jelenak <jelenak@netlinkplus.net>\n"
+"Language-Team: Serbian <sr@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: hello.py.in:13
+msgid "Hello, world!"
+msgstr "Здраво свима!"
+
+#: hello.py.in:14
+#, python-format
+msgid "This program is running as process number %(pid)d."
+msgstr "Овај програм се извршава као процес број %(pid)d."
diff --git a/gnu/dist/gettext/gettext-tools/examples/hello-python/po/sv.po b/gnu/dist/gettext/gettext-tools/examples/hello-python/po/sv.po
new file mode 100644
index 00000000000..c9c89a79258
--- /dev/null
+++ b/gnu/dist/gettext/gettext-tools/examples/hello-python/po/sv.po
@@ -0,0 +1,23 @@
+# Swedish messages for hello-python.
+# Copyright 2003 Free Software Foundation, Inc.
+# Jan Djrv <jan.h.d@swipnet.se>, 2003
+# Revision: 1.6
+msgid ""
+msgstr ""
+"Project-Id-Version: hello-python 0.13.1\n"
+"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n"
+"PO-Revision-Date: 2003-12-20 22:33+0100\n"
+"Last-Translator: Jan Djrv <jan.h.d@swipnet.se>\n"
+"Language-Team: Swedish <sv@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=iso-8859-1\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: hello.py.in:13
+msgid "Hello, world!"
+msgstr "Hej vrlden!"
+
+#: hello.py.in:14
+#, python-format
+msgid "This program is running as process number %(pid)d."
+msgstr "Detta program kr som process nummer %(pid)d."
diff --git a/gnu/dist/gettext/gettext-tools/examples/hello-python/po/tr.po b/gnu/dist/gettext/gettext-tools/examples/hello-python/po/tr.po
new file mode 100644
index 00000000000..081054ece75
--- /dev/null
+++ b/gnu/dist/gettext/gettext-tools/examples/hello-python/po/tr.po
@@ -0,0 +1,24 @@
+# Turkish translations for Gnu Gettext Package.
+# Copyright (C) 2004 Free Software Foundation, Inc.
+# Nilgün Belma Bugüner <nilgun@superonline.com>, 2003,2004
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: hello-python 0.14-pre1\n"
+"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n"
+"PO-Revision-Date: 2004-01-21 06:17+0300\n"
+"Last-Translator: Nilgün Belma Bugüner <nilgun@superonline.com>\n"
+"Language-Team: Turkish <gnu-tr-u12a@lists.sourceforge.net>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.0\n"
+
+#: hello.py.in:13
+msgid "Hello, world!"
+msgstr "Merhaba Dünyalı!"
+
+#: hello.py.in:14
+#, python-format
+msgid "This program is running as process number %(pid)d."
+msgstr "Bu yazılım, %(pid)d süreç kimliği ile çalışıyor."
diff --git a/gnu/dist/gettext/gettext-tools/examples/hello-python/po/uk.po b/gnu/dist/gettext/gettext-tools/examples/hello-python/po/uk.po
new file mode 100644
index 00000000000..007d6a7d1ec
--- /dev/null
+++ b/gnu/dist/gettext/gettext-tools/examples/hello-python/po/uk.po
@@ -0,0 +1,24 @@
+# Ukrainian translation to hello-python
+# Copyright (C) 2004 Free Software Foundation, Inc.
+# This file is distributed under the same license as the hello-python package.
+# Maxim V. Dziumanenko <mvd@mylinux.com.ua>, 2004.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: hello-python 0.14.1\n"
+"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n"
+"PO-Revision-Date: 2004-06-29 20:24+0200\n"
+"Last-Translator: Maxim V. Dziumanenko <mvd@mylinux.com.ua>\n"
+"Language-Team: Ukrainian <translation-team-uk@lists.sourceforge.net>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: hello.py.in:13
+msgid "Hello, world!"
+msgstr "Привіт, світ!"
+
+#: hello.py.in:14
+#, python-format
+msgid "This program is running as process number %(pid)d."
+msgstr "Ця програма виконується як процес з номером %(pid)d."
diff --git a/gnu/dist/gettext/gettext-tools/examples/hello-python/po/vi.po b/gnu/dist/gettext/gettext-tools/examples/hello-python/po/vi.po
new file mode 100644
index 00000000000..708d6cd1c78
--- /dev/null
+++ b/gnu/dist/gettext/gettext-tools/examples/hello-python/po/vi.po
@@ -0,0 +1,24 @@
+# Vietnamese Translation for hello-python-0.14.3.
+# Copyright © 2005 Yoyodyne, Inc.
+# Copyright © 2005 Free Software Foundation, Inc.
+# Clytie Siddall <clytie@riverland.net.au>, 2005.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: hello-python 0.14.3\n"
+"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n"
+"PO-Revision-Date: 2005-04-06 14:09+0930\n"
+"Last-Translator: Clytie Siddall <clytie@riverland.net.au>\n"
+"Language-Team: Vietnamese <gnomevi-list@lists.sourceforge.net> \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=utf-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: hello.py.in:13
+msgid "Hello, world!"
+msgstr "Chào thế giới!"
+
+#: hello.py.in:14
+#, python-format
+msgid "This program is running as process number %(pid)d."
+msgstr "Chương trình này đang chạy với số xử lý %(pid)d."
diff --git a/gnu/dist/gettext/gettext-tools/examples/hello-python/po/zh_CN.po b/gnu/dist/gettext/gettext-tools/examples/hello-python/po/zh_CN.po
new file mode 100644
index 00000000000..754be9cfa0c
--- /dev/null
+++ b/gnu/dist/gettext/gettext-tools/examples/hello-python/po/zh_CN.po
@@ -0,0 +1,24 @@
+# zh_CN translation for hello-python.
+# Copyright (C) 2003 Free Software Foundation, Inc.
+# This file is distributed under the same license as the hello-python package.
+# Funda Wang <fundawang@linux.net.cn>, 2003.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: hello-python 0.13.1\n"
+"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n"
+"PO-Revision-Date: 2003-12-18 19:07+0800\n"
+"Last-Translator: Funda Wang <fundawang@linux.net.cn>\n"
+"Language-Team: Chinese (simplified) <i18n-translation@lists.linux.net.cn>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=utf-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: hello.py.in:13
+msgid "Hello, world!"
+msgstr "世界你好!"
+
+#: hello.py.in:14
+#, python-format
+msgid "This program is running as process number %(pid)d."
+msgstr "此程序正以进程号 %(pid)d 运行。"