[Pkg-isocodes-devel] [iso-codes] 08/13: Support ISO 3166-3 (historic names of countries)

Tobias Quathamer toddy at moszumanska.debian.org
Tue Apr 1 15:53:51 UTC 2014


This is an automated email from the git hooks/post-receive script.

toddy pushed a commit to branch new_xml_structure
in repository iso-codes.

commit 735e65a50122a9c7f447e2b7d9788bb08849030e
Author: Tobias Quathamer <toddy at debian.org>
Date:   Mon Nov 11 13:18:01 2013 +0100

    Support ISO 3166-3 (historic names of countries)
---
 Makefile.am               |   2 +-
 Makefile.in               |   2 +-
 configure                 |  11 +-
 configure.ac              |   9 +-
 iso2pot.py                |  12 +-
 iso_3166_3/Makefile.am    |  25 +++
 iso_3166_3/Makefile.in    | 464 ++++++++++++++++++++++++++++++++++++++++++++++
 iso_3166_3/iso_3166_3.pot | 175 +++++++++++++++++
 iso_3166_3/iso_3166_3.xml | 316 +++++++++++++++++++++++++++++++
 9 files changed, 1000 insertions(+), 16 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 3a0ad86..4f6605d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,4 +1,4 @@
-SUBDIRS = iso_15924 iso_3166_1 iso_3166_2 iso_4217 iso_639 iso_639_3
+SUBDIRS = iso_639 iso_639_3 iso_3166_1 iso_3166_2 iso_3166_3 iso_4217 iso_15924
 
 pkgconfigdir = $(datadir)/pkgconfig
 pkgconfig_DATA = iso-codes.pc
diff --git a/Makefile.in b/Makefile.in
index e6fc24a..d77439f 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -234,7 +234,7 @@ target_alias = @target_alias@
 top_build_prefix = @top_build_prefix@
 top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
-SUBDIRS = iso_15924 iso_3166_1 iso_3166_2 iso_4217 iso_639 iso_639_3
+SUBDIRS = iso_639 iso_639_3 iso_3166_1 iso_3166_2 iso_3166_3 iso_4217 iso_15924
 pkgconfigdir = $(datadir)/pkgconfig
 pkgconfig_DATA = iso-codes.pc
 EXTRA_DIST = \
diff --git a/configure b/configure
index a3fbd8a..5bb2fa8 100755
--- a/configure
+++ b/configure
@@ -2447,10 +2447,10 @@ fi
 $as_echo "$gnu_msgfmt" >&6; }
 
 
-DOMAINS="iso_15924 iso_3166_1 iso_4217 iso_639 iso_3166_2 iso_639_3"
+DOMAINS="iso_639 iso_639_3 iso_3166_1 iso_3166_2 iso_3166_3 iso_4217 iso_15924"
 
 
-ac_config_files="$ac_config_files Makefile iso-codes.pc iso_15924/Makefile iso_3166_1/Makefile iso_3166_2/Makefile iso_4217/Makefile iso_639/Makefile iso_639_3/Makefile"
+ac_config_files="$ac_config_files Makefile iso-codes.pc iso_639/Makefile iso_639_3/Makefile iso_3166_1/Makefile iso_3166_2/Makefile iso_3166_3/Makefile iso_4217/Makefile iso_15924/Makefile"
 
 
 cat >confcache <<\_ACEOF
@@ -3168,12 +3168,13 @@ do
   case $ac_config_target in
     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
     "iso-codes.pc") CONFIG_FILES="$CONFIG_FILES iso-codes.pc" ;;
-    "iso_15924/Makefile") CONFIG_FILES="$CONFIG_FILES iso_15924/Makefile" ;;
+    "iso_639/Makefile") CONFIG_FILES="$CONFIG_FILES iso_639/Makefile" ;;
+    "iso_639_3/Makefile") CONFIG_FILES="$CONFIG_FILES iso_639_3/Makefile" ;;
     "iso_3166_1/Makefile") CONFIG_FILES="$CONFIG_FILES iso_3166_1/Makefile" ;;
     "iso_3166_2/Makefile") CONFIG_FILES="$CONFIG_FILES iso_3166_2/Makefile" ;;
+    "iso_3166_3/Makefile") CONFIG_FILES="$CONFIG_FILES iso_3166_3/Makefile" ;;
     "iso_4217/Makefile") CONFIG_FILES="$CONFIG_FILES iso_4217/Makefile" ;;
-    "iso_639/Makefile") CONFIG_FILES="$CONFIG_FILES iso_639/Makefile" ;;
-    "iso_639_3/Makefile") CONFIG_FILES="$CONFIG_FILES iso_639_3/Makefile" ;;
+    "iso_15924/Makefile") CONFIG_FILES="$CONFIG_FILES iso_15924/Makefile" ;;
 
   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   esac
diff --git a/configure.ac b/configure.ac
index 3dacbe3..ce92675 100644
--- a/configure.ac
+++ b/configure.ac
@@ -38,18 +38,19 @@ fi
 AC_MSG_RESULT($gnu_msgfmt)
 AC_SUBST(MSGFMT_FLAGS)
 
-DOMAINS="iso_15924 iso_3166_1 iso_4217 iso_639 iso_3166_2 iso_639_3"
+DOMAINS="iso_639 iso_639_3 iso_3166_1 iso_3166_2 iso_3166_3 iso_4217 iso_15924"
 AC_SUBST([DOMAINS])
 
 AC_CONFIG_FILES([
 Makefile
 iso-codes.pc
-iso_15924/Makefile
+iso_639/Makefile
+iso_639_3/Makefile
 iso_3166_1/Makefile
 iso_3166_2/Makefile
+iso_3166_3/Makefile
 iso_4217/Makefile
-iso_639/Makefile
-iso_639_3/Makefile
+iso_15924/Makefile
 ])
 
 AC_OUTPUT
diff --git a/iso2pot.py b/iso2pot.py
index afd9e3b..3e8c203 100755
--- a/iso2pot.py
+++ b/iso2pot.py
@@ -4,7 +4,7 @@
 # Read iso-codes data file and output a .pot file
 #
 # Copyright © 2004,2005 Alastair McKinstry <mckinstry at debian.org>
-# Copyright © 2006,2007 Tobias Quathamer <toddy at debian.org>
+# Copyright © 2006,2007,2013 Tobias Quathamer <toddy at debian.org>
 #
 # This program is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -41,7 +41,7 @@ class printPot(ContentHandler):
         # Get the name attributes
 	for aname in self.attrnames:
             n = attrs.get(aname, None)
-            date_withdrawn = attrs.get('date_withdrawn', None)
+            period_of_validity = attrs.get('period_of_validity', None)
             c = [attrs.get(x, None) for x in self.comment]
             if type(n) == unicode:
                 n = n.encode('UTF-8')
@@ -58,9 +58,9 @@ class printPot(ContentHandler):
                     # historic entries. In order to not trigger bug reports
                     # from translators for "obsolete" entries, we specially
                     # mark those historic entries.
-                    if date_withdrawn is not None:
-                        translator_comment = 'historic %s for %s (withdrawn %s)' % \
-                        (aname, comment_str, date_withdrawn)
+                    if period_of_validity is not None:
+                        translator_comment = '%s for %s (period of validity %s)' % \
+                        (aname, comment_str, period_of_validity)
                     else:
                         translator_comment = '%s for %s' % \
                         (aname, comment_str)
@@ -139,6 +139,8 @@ elif iso_number == '3166-1':
 	iso_desc = 'country names'
 elif iso_number == '3166-2':
 	iso_desc = 'country subdivision names'
+elif iso_number == '3166-3':
+	iso_desc = 'historic country names'
 elif iso_number == '4217':
 	iso_desc = 'currency names'
 elif iso_number == '15924':
diff --git a/iso_3166_3/Makefile.am b/iso_3166_3/Makefile.am
new file mode 100644
index 0000000..d8099ce
--- /dev/null
+++ b/iso_3166_3/Makefile.am
@@ -0,0 +1,25 @@
+DOMAIN = iso_3166_3
+VERSION = @PACKAGE_VERSION@
+
+xmldir = $(datadir)/xml/iso-codes
+xml_DATA = $(DOMAIN).xml
+
+pofiles = $(wildcard $(srcdir)/*.po)
+mofiles = $(patsubst $(srcdir)/%.po,%.mo, $(pofiles))
+noinst_DATA = $(mofiles) $(xml_DATA:.xml=.pot)
+
+iso_3166_3.pot: iso_3166_3.xml
+	../iso2pot.py --comments alpha_4_code \
+		--fields name --outfile $@ $<
+
+EXTRA_DIST = \
+	$(pofiles)	\
+	$(xml_DATA)	\
+	iso_3166_3.pot
+
+MOSTLYCLEANFILES = \
+	$(mofiles)
+
+check-local: check-content
+
+include $(top_srcdir)/rules.make
diff --git a/iso_3166_3/Makefile.in b/iso_3166_3/Makefile.in
new file mode 100644
index 0000000..bcb197f
--- /dev/null
+++ b/iso_3166_3/Makefile.in
@@ -0,0 +1,464 @@
+# Makefile.in generated by automake 1.11.6 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
+# Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+ at SET_MAKE@
+
+VPATH = @srcdir@
+am__make_dryrun = \
+  { \
+    am__dry=no; \
+    case $$MAKEFLAGS in \
+      *\\[\ \	]*) \
+        echo 'am--echo: ; @echo "AM"  OK' | $(MAKE) -f - 2>/dev/null \
+          | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
+      *) \
+        for am__flg in $$MAKEFLAGS; do \
+          case $$am__flg in \
+            *=*|--*) ;; \
+            *n*) am__dry=yes; break;; \
+          esac; \
+        done;; \
+    esac; \
+    test $$am__dry = yes; \
+  }
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
+	$(top_srcdir)/rules.make
+subdir = iso_3166_3
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+	$(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+SOURCES =
+DIST_SOURCES =
+am__can_run_installinfo = \
+  case $$AM_UPDATE_INFO_DIR in \
+    n|no|NO) false;; \
+    *) (install-info --version) >/dev/null 2>&1;; \
+  esac
+am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
+am__vpath_adj = case $$p in \
+    $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
+    *) f=$$p;; \
+  esac;
+am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
+am__install_max = 40
+am__nobase_strip_setup = \
+  srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
+am__nobase_strip = \
+  for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
+am__nobase_list = $(am__nobase_strip_setup); \
+  for p in $$list; do echo "$$p $$p"; done | \
+  sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
+  $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
+    if (++n[$$2] == $(am__install_max)) \
+      { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
+    END { for (dir in files) print dir, files[dir] }'
+am__base_list = \
+  sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
+  sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
+am__uninstall_files_from_dir = { \
+  test -z "$$files" \
+    || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
+    || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
+         $(am__cd) "$$dir" && rm -f $$files; }; \
+  }
+am__installdirs = "$(DESTDIR)$(xmldir)"
+DATA = $(noinst_DATA) $(xml_DATA)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+ACLOCAL_AMFLAGS = @ACLOCAL_AMFLAGS@
+AMTAR = @AMTAR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DOMAINS = @DOMAINS@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LTLIBOBJS = @LTLIBOBJS@
+MAINT = @MAINT@
+MAKEINFO = @MAKEINFO@
+MKDIR_P = @MKDIR_P@
+MSGFILTER = @MSGFILTER@
+MSGFMT = @MSGFMT@
+MSGFMT_FLAGS = @MSGFMT_FLAGS@
+MSGMERGE = @MSGMERGE@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+RECODE_SR_LATIN = @RECODE_SR_LATIN@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+VERSION = @PACKAGE_VERSION@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+am__leading_dot = @am__leading_dot@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build_alias = @build_alias@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host_alias = @host_alias@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = $(datadir)/locale
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+DOMAIN = iso_3166_3
+xmldir = $(datadir)/xml/iso-codes
+xml_DATA = $(DOMAIN).xml
+pofiles = $(wildcard $(srcdir)/*.po)
+mofiles = $(patsubst $(srcdir)/%.po,%.mo, $(pofiles))
+noinst_DATA = $(mofiles) $(xml_DATA:.xml=.pot)
+EXTRA_DIST = \
+	$(pofiles)	\
+	$(xml_DATA)	\
+	iso_3166_3.pot
+
+MOSTLYCLEANFILES = \
+	$(mofiles)
+
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/rules.make $(am__configure_deps)
+	@for dep in $?; do \
+	  case '$(am__configure_deps)' in \
+	    *$$dep*) \
+	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+	        && { if test -f $@; then exit 0; else break; fi; }; \
+	      exit 1;; \
+	  esac; \
+	done; \
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign iso_3166_3/Makefile'; \
+	$(am__cd) $(top_srcdir) && \
+	  $(AUTOMAKE) --foreign iso_3166_3/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+	@case '$?' in \
+	  *config.status*) \
+	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+	  *) \
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+	esac;
+$(top_srcdir)/rules.make:
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+install-xmlDATA: $(xml_DATA)
+	@$(NORMAL_INSTALL)
+	@list='$(xml_DATA)'; test -n "$(xmldir)" || list=; \
+	if test -n "$$list"; then \
+	  echo " $(MKDIR_P) '$(DESTDIR)$(xmldir)'"; \
+	  $(MKDIR_P) "$(DESTDIR)$(xmldir)" || exit 1; \
+	fi; \
+	for p in $$list; do \
+	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+	  echo "$$d$$p"; \
+	done | $(am__base_list) | \
+	while read files; do \
+	  echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(xmldir)'"; \
+	  $(INSTALL_DATA) $$files "$(DESTDIR)$(xmldir)" || exit $$?; \
+	done
+
+uninstall-xmlDATA:
+	@$(NORMAL_UNINSTALL)
+	@list='$(xml_DATA)'; test -n "$(xmldir)" || list=; \
+	files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
+	dir='$(DESTDIR)$(xmldir)'; $(am__uninstall_files_from_dir)
+tags: TAGS
+TAGS:
+
+ctags: CTAGS
+CTAGS:
+
+
+distdir: $(DISTFILES)
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	list='$(DISTFILES)'; \
+	  dist_files=`for file in $$list; do echo $$file; done | \
+	  sed -e "s|^$$srcdirstrip/||;t" \
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+	case $$dist_files in \
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+			   sort -u` ;; \
+	esac; \
+	for file in $$dist_files; do \
+	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+	  if test -d $$d/$$file; then \
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+	    if test -d "$(distdir)/$$file"; then \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+	  else \
+	    test -f "$(distdir)/$$file" \
+	    || cp -p $$d/$$file "$(distdir)/$$file" \
+	    || exit 1; \
+	  fi; \
+	done
+check-am: all-am
+	$(MAKE) $(AM_MAKEFLAGS) check-local
+check: check-am
+all-am: Makefile $(DATA)
+installdirs:
+	for dir in "$(DESTDIR)$(xmldir)"; do \
+	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+	done
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+	if test -z '$(STRIP)'; then \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	      install; \
+	else \
+	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+	fi
+mostlyclean-generic:
+	-test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
+
+clean-generic:
+
+distclean-generic:
+	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+	@echo "This command is intended for maintainers to use"
+	@echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic mostlyclean-am
+
+distclean: distclean-am
+	-rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am: install-xmlDATA
+	@$(NORMAL_INSTALL)
+	$(MAKE) $(AM_MAKEFLAGS) install-data-hook
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+	-rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am: uninstall-xmlDATA
+	@$(NORMAL_INSTALL)
+	$(MAKE) $(AM_MAKEFLAGS) uninstall-hook
+.MAKE: check-am install-am install-data-am install-strip uninstall-am
+
+.PHONY: all all-am check check-am check-local clean clean-generic \
+	distclean distclean-generic distdir dvi dvi-am html html-am \
+	info info-am install install-am install-data install-data-am \
+	install-data-hook install-dvi install-dvi-am install-exec \
+	install-exec-am install-html install-html-am install-info \
+	install-info-am install-man install-pdf install-pdf-am \
+	install-ps install-ps-am install-strip install-xmlDATA \
+	installcheck installcheck-am installdirs maintainer-clean \
+	maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
+	pdf-am ps ps-am uninstall uninstall-am uninstall-hook \
+	uninstall-xmlDATA
+
+
+iso_3166_3.pot: iso_3166_3.xml
+	../iso2pot.py --comments alpha_4_code \
+		--fields name --outfile $@ $<
+
+check-local: check-content
+
+%.mo: %.po
+	$(MSGFMT) $(MSGFMT_FLAGS) -o $@ $<
+
+.PHONY: check-content
+check-content:
+	perl $(top_srcdir)/check_valid_utf8.pl $(pofiles)
+
+# This target merges all po files with the current pot file,
+# removes obsolete msgids and substitutes the Project-Id-Version
+# header with the correct value
+#
+# NOTE:
+# Removing obsolete msgids is not the recommended way to go.
+# However, we've decided that in the specific case of iso-codes
+# the benefit outweights the loss of information. Having only msgids
+# with one (sometimes two or three) words, the fuzzy matching performed
+# with obsolete msgids will not ease the translator's work, but
+# will lead to confusing entries.
+.PHONY: update-po
+update-po:
+	for pofile in $(pofiles); do \
+		$(MSGMERGE) $$pofile $(DOMAIN).pot > tmpfile; \
+		msgattrib --no-obsolete tmpfile > $$pofile; \
+		sed -i -e 's/^\"Project-Id-Version: iso.*/\"Project-Id-Version: $(DOMAIN)\\n\"/' $$pofile; \
+	done
+	rm -f tmpfile
+	if [ -f sr.po ] ; then $(RECODE_SR_LATIN) < sr.po > sr at latin.po ; fi
+	if [ -f tt at iqtelif.po ] ; then $(MSGFILTER) --keep-header sed -f $(top_srcdir)/recode-tt-cyrillic.sed < tt at iqtelif.po > tt.po ; fi
+
+install-data-hook: $(mofiles)
+	$(mkinstalldirs) $(DESTDIR)$(datadir)
+	$(mkinstalldirs) $(DESTDIR)$(localedir)
+	catalogs='$(mofiles)'; \
+	for cat in $$catalogs; do \
+		cat=`basename $$cat`; \
+		lang=`echo $$cat | sed 's/\.mo$$//'`; \
+		dir=$(DESTDIR)$(localedir)/$$lang/LC_MESSAGES; \
+		$(mkinstalldirs) $$dir; \
+		$(INSTALL_DATA) $$cat $$dir/$(DOMAIN).mo; \
+	done
+
+uninstall-hook:
+	catalogs='$(mofiles)'; \
+	for cat in $$catalogs; do \
+		cat=`basename $$cat`; \
+		lang=`echo $$cat | sed 's/\.mo$$//'`; \
+		rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo; \
+	done
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/iso_3166_3/iso_3166_3.pot b/iso_3166_3/iso_3166_3.pot
new file mode 100644
index 0000000..5c42893
--- /dev/null
+++ b/iso_3166_3/iso_3166_3.pot
@@ -0,0 +1,175 @@
+# Translation of ISO 3166-3 (historic country names) to LANGUAGE
+#
+# This file is distributed under the same license as the iso-codes package.
+#
+# Copyright ©
+# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: iso_3166_3\n"
+"Report-Msgid-Bugs-To: Debian iso-codes team <pkg-isocodes-devel at lists.alioth."
+"debian.org>\n"
+"POT-Creation-Date: 2013-11-11 13:39+0100\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
+"Language-Team: LANGUAGE <LL at li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. name for BQAQ (period of validity 1979)
+msgid "British Antarctic Territory"
+msgstr ""
+
+#. name for BUMM (period of validity 1989-12-05)
+msgid "Burma, Socialist Republic of the Union of"
+msgstr ""
+
+#. name for BYAA (period of validity 1992-06-15)
+msgid "Byelorussian SSR Soviet Socialist Republic"
+msgstr ""
+
+#. name for CTKI (period of validity 1984)
+msgid "Canton and Enderbury Islands"
+msgstr ""
+
+#. name for CSHH (period of validity 1993-06-15)
+msgid "Czechoslovakia, Czechoslovak Socialist Republic"
+msgstr ""
+
+#. name for DYBJ (period of validity 1977)
+msgid "Dahomey"
+msgstr ""
+
+#. name for NQAQ (period of validity 1983)
+msgid "Dronning Maud Land"
+msgstr ""
+
+#. name for TPTL (period of validity 2002-05-20)
+msgid "East Timor"
+msgstr ""
+
+#. name for ET (period of validity 1993-07-16)
+msgid "Ethiopia"
+msgstr ""
+
+#. name for FXFR (period of validity 1997-07-14)
+msgid "France, Metropolitan"
+msgstr ""
+
+#. name for AIDJ (period of validity 1977)
+msgid "French Afars and Issas"
+msgstr ""
+
+#. name for FQHH (period of validity 1979)
+msgid "French Southern and Antarctic Territories"
+msgstr ""
+
+#. name for DDDE (period of validity 1990-10-30)
+msgid "German Democratic Republic"
+msgstr ""
+
+#. name for DE (period of validity 1990-10-30)
+msgid "Germany, Federal Republic of"
+msgstr ""
+
+#. name for GEHH (period of validity 1979)
+msgid "Gilbert and Ellice Islands"
+msgstr ""
+
+#. name for JTUM (period of validity 1986)
+msgid "Johnston Island"
+msgstr ""
+
+#. name for MIUM (period of validity 1986)
+msgid "Midway Islands"
+msgstr ""
+
+#. name for AN (period of validity 1993-07-12)
+msgid "Netherlands Antilles"
+msgstr ""
+
+#. name for NTHH (period of validity 1993-07-12)
+msgid "Neutral Zone"
+msgstr ""
+
+#. name for NHVU (period of validity 1980)
+msgid "New Hebrides"
+msgstr ""
+
+#. name for PCHH (period of validity 1986)
+msgid "Pacific Islands (trust territory)"
+msgstr ""
+
+#. name for PA (period of validity 1993-07-22)
+msgid "Panama, Republic of"
+msgstr ""
+
+#. name for PZPA (period of validity 1980)
+msgid "Panama Canal Zone"
+msgstr ""
+
+#. name for RO (period of validity 2002-02-01)
+msgid "Romania, Socialist Republic of"
+msgstr ""
+
+#. name for KN (period of validity 1988)
+msgid "St. Kitts-Nevis-Anguilla"
+msgstr ""
+
+#. name for CSXX (period of validity 2006-06-05)
+msgid "Serbia and Montenegro"
+msgstr ""
+
+#. name for SKIN (period of validity 1975)
+msgid "Sikkim"
+msgstr ""
+
+#. name for RHZW (period of validity 1980)
+msgid "Southern Rhodesia"
+msgstr ""
+
+#. name for EH (period of validity 1988)
+msgid "Spanish Sahara"
+msgstr ""
+
+#. name for PUUM (period of validity 1986)
+msgid "US Miscellaneous Pacific Islands"
+msgstr ""
+
+#. name for SUHH (period of validity 1992-08-30)
+msgid "USSR, Union of Soviet Socialist Republics"
+msgstr ""
+
+#. name for HVBF (period of validity 1984)
+msgid "Upper Volta, Republic of"
+msgstr ""
+
+#. name for VA (period of validity 1996-04-03)
+msgid "Vatican City State (Holy See)"
+msgstr ""
+
+#. name for VDVN (period of validity 1977)
+msgid "Viet-Nam, Democratic Republic of"
+msgstr ""
+
+#. name for WKUM (period of validity 1986)
+msgid "Wake Island"
+msgstr ""
+
+#. name for YDYE (period of validity 1990-08-14)
+msgid "Yemen, Democratic, People's Democratic Republic of"
+msgstr ""
+
+#. name for YE (period of validity 1990-08-14)
+msgid "Yemen, Yemen Arab Republic"
+msgstr ""
+
+#. name for YUCS (period of validity 1993-07-28)
+msgid "Yugoslavia, Socialist Federal Republic of"
+msgstr ""
+
+#. name for ZRCD (period of validity 1997-07-14)
+msgid "Zaire, Republic of"
+msgstr ""
diff --git a/iso_3166_3/iso_3166_3.xml b/iso_3166_3/iso_3166_3.xml
new file mode 100644
index 0000000..6c6abd4
--- /dev/null
+++ b/iso_3166_3/iso_3166_3.xml
@@ -0,0 +1,316 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
+<!--
+This file gives a list of all historic countries in the ISO 3166-3
+standard, and is used to provide translations via gettext
+
+Copyright © 2013 Tobias Quathamer <toddy at debian.org>
+
+    This file is free software; you can redistribute it and/or
+    modify it under the terms of the GNU Lesser General Public
+    License as published by the Free Software Foundation; either
+    version 2.1 of the License, or (at your option) any later version.
+
+    This file is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+    Lesser General Public License for more details.
+
+    You should have received a copy of the GNU Lesser General Public
+    License along with this file; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+
+Source: <http://www.iso.org/iso/country_codes>
+-->
+<!DOCTYPE iso_3166_3 [
+  <!ELEMENT iso_3166_3 (item)+>
+  <!ATTLIST iso_3166_3
+    version             CDATA   #REQUIRED
+  >
+  <!ELEMENT item EMPTY>
+  <!ATTLIST item
+    alpha_2_code        CDATA   #REQUIRED
+    alpha_3_code        CDATA   #REQUIRED
+    numeric_code        CDATA   #IMPLIED
+    alpha_4_code        CDATA   #REQUIRED
+    period_of_validity  CDATA   #REQUIRED
+    remarks             CDATA   #IMPLIED
+    name                CDATA   #REQUIRED
+  >
+]>
+<iso_3166_3 version="4">
+  <item
+    alpha_2_code="BQ"
+    alpha_3_code="ATB"
+    alpha_4_code="BQAQ"
+    period_of_validity="1979"
+    name="British Antarctic Territory" />
+  <item
+    alpha_2_code="BU"
+    alpha_3_code="BUR"
+    numeric_code="104"
+    alpha_4_code="BUMM"
+    period_of_validity="1989-12-05"
+    name="Burma, Socialist Republic of the Union of" />
+  <item
+    alpha_2_code="BY"
+    alpha_3_code="BYS"
+    numeric_code="112"
+    alpha_4_code="BYAA"
+    period_of_validity="1992-06-15"
+    name="Byelorussian SSR Soviet Socialist Republic" />
+  <item
+    alpha_2_code="CT"
+    alpha_3_code="CTE"
+    numeric_code="128"
+    alpha_4_code="CTKI"
+    period_of_validity="1984"
+    name="Canton and Enderbury Islands" />
+  <item
+    alpha_2_code="CS"
+    alpha_3_code="CSK"
+    numeric_code="200"
+    alpha_4_code="CSHH"
+    period_of_validity="1993-06-15"
+    name="Czechoslovakia, Czechoslovak Socialist Republic" />
+  <item
+    alpha_2_code="DY"
+    alpha_3_code="DHY"
+    numeric_code="204"
+    alpha_4_code="DYBJ"
+    period_of_validity="1977"
+    name="Dahomey" />
+  <item
+    alpha_2_code="NQ"
+    alpha_3_code="ATN"
+    numeric_code="216"
+    alpha_4_code="NQAQ"
+    period_of_validity="1983"
+    name="Dronning Maud Land" />
+  <item
+    alpha_2_code="TP"
+    alpha_3_code="TMP"
+    numeric_code="626"
+    alpha_4_code="TPTL"
+    period_of_validity="2002-05-20"
+    remarks="was Portuguese Timor"
+    name="East Timor" />
+  <item
+    alpha_2_code=""
+    alpha_3_code="ETH"
+    numeric_code="230"
+    alpha_4_code="ET"
+    period_of_validity="1993-07-16"
+    name="Ethiopia" />
+  <item
+    alpha_2_code="FX"
+    alpha_3_code="FXX"
+    numeric_code="249"
+    alpha_4_code="FXFR"
+    period_of_validity="1997-07-14"
+    name="France, Metropolitan" />
+  <item
+    alpha_2_code="AI"
+    alpha_3_code="AFI"
+    numeric_code="262"
+    alpha_4_code="AIDJ"
+    period_of_validity="1977"
+    name="French Afars and Issas" />
+  <item
+    alpha_2_code="FQ"
+    alpha_3_code="ATF"
+    alpha_4_code="FQHH"
+    period_of_validity="1979"
+    remarks="now split between AQ and TF"
+    name="French Southern and Antarctic Territories" />
+  <item
+    alpha_2_code="DD"
+    alpha_3_code="DDR"
+    numeric_code="278"
+    alpha_4_code="DDDE"
+    period_of_validity="1990-10-30"
+    name="German Democratic Republic" />
+  <item
+    alpha_2_code=""
+    alpha_3_code="DEU"
+    numeric_code="280"
+    alpha_4_code="DE"
+    period_of_validity="1990-10-30"
+    name="Germany, Federal Republic of" />
+  <item
+    alpha_2_code="GE"
+    alpha_3_code="GEL"
+    numeric_code="296"
+    alpha_4_code="GEHH"
+    period_of_validity="1979"
+    remarks="now split into Kiribati and Tuvalu"
+    name="Gilbert and Ellice Islands" />
+  <item
+    alpha_2_code="JT"
+    alpha_3_code="JTN"
+    numeric_code="396"
+    alpha_4_code="JTUM"
+    period_of_validity="1986"
+    name="Johnston Island" />
+  <item
+    alpha_2_code="MI"
+    alpha_3_code="MID"
+    numeric_code="488"
+    alpha_4_code="MIUM"
+    period_of_validity="1986"
+    name="Midway Islands" />
+  <item
+    alpha_2_code=""
+    alpha_3_code="ANT"
+    numeric_code="532"
+    alpha_4_code="AN"
+    period_of_validity="1993-07-12"
+    name="Netherlands Antilles" />
+  <item
+    alpha_2_code="NT"
+    alpha_3_code="NTZ"
+    numeric_code="536"
+    alpha_4_code="NTHH"
+    period_of_validity="1993-07-12"
+    remarks="formerly between Saudi Arabia and Iraq"
+    name="Neutral Zone" />
+  <item
+    alpha_2_code="NH"
+    alpha_3_code="NHB"
+    numeric_code="548"
+    alpha_4_code="NHVU"
+    period_of_validity="1980"
+    name="New Hebrides" />
+  <item
+    alpha_2_code="PC"
+    alpha_3_code="PCI"
+    numeric_code="582"
+    alpha_4_code="PCHH"
+    period_of_validity="1986"
+    remarks="divided into FM, MH, MP, and PW"
+    name="Pacific Islands (trust territory)" />
+  <item
+    alpha_2_code=""
+    alpha_3_code="PAN"
+    numeric_code="590"
+    alpha_4_code="PA"
+    period_of_validity="1993-07-22"
+    name="Panama, Republic of" />
+  <item
+    alpha_2_code="PZ"
+    alpha_3_code="PCZ"
+    alpha_4_code="PZPA"
+    period_of_validity="1980"
+    name="Panama Canal Zone" />
+  <item
+    alpha_2_code=""
+    alpha_3_code="ROM"
+    numeric_code="642"
+    alpha_4_code="RO"
+    period_of_validity="2002-02-01"
+    name="Romania, Socialist Republic of" />
+  <item
+    alpha_2_code=""
+    alpha_3_code="KNA"
+    numeric_code="658"
+    alpha_4_code="KN"
+    period_of_validity="1988"
+    remarks="now St. Kitts and Nevis and Anguilla"
+    name="St. Kitts-Nevis-Anguilla" />
+  <item
+    alpha_2_code="CS"
+    alpha_3_code="SCG"
+    numeric_code="891"
+    alpha_4_code="CSXX"
+    period_of_validity="2006-06-05"
+    name="Serbia and Montenegro" />
+  <item
+    alpha_2_code="SK"
+    alpha_3_code="SKM"
+    alpha_4_code="SKIN"
+    period_of_validity="1975"
+    name="Sikkim" />
+  <item
+    alpha_2_code="RH"
+    alpha_3_code="RHO"
+    numeric_code="716"
+    alpha_4_code="RHZW"
+    period_of_validity="1980"
+    name="Southern Rhodesia" />
+  <item
+    alpha_2_code=""
+    alpha_3_code="ESH"
+    numeric_code="732"
+    alpha_4_code="EH"
+    period_of_validity="1988"
+    remarks="now Western Sahara"
+    name="Spanish Sahara" />
+  <item
+    alpha_2_code="PU"
+    alpha_3_code="PUS"
+    numeric_code="849"
+    alpha_4_code="PUUM"
+    period_of_validity="1986"
+    name="US Miscellaneous Pacific Islands" />
+  <item
+    alpha_2_code="SU"
+    alpha_3_code="SUN"
+    numeric_code="810"
+    alpha_4_code="SUHH"
+    period_of_validity="1992-08-30"
+    name="USSR, Union of Soviet Socialist Republics" />
+  <item
+    alpha_2_code="HV"
+    alpha_3_code="HVO"
+    numeric_code="854"
+    alpha_4_code="HVBF"
+    period_of_validity="1984"
+    name="Upper Volta, Republic of" />
+  <item
+    alpha_2_code=""
+    alpha_3_code="VAT"
+    numeric_code="336"
+    alpha_4_code="VA"
+    period_of_validity="1996-04-03"
+    name="Vatican City State (Holy See)" />
+  <item
+    alpha_2_code="VD"
+    alpha_3_code="VDR"
+    alpha_4_code="VDVN"
+    period_of_validity="1977"
+    name="Viet-Nam, Democratic Republic of" />
+  <item
+    alpha_2_code="WK"
+    alpha_3_code="WAK"
+    numeric_code="872"
+    alpha_4_code="WKUM"
+    period_of_validity="1986"
+    name="Wake Island" />
+  <item
+    alpha_2_code="YD"
+    alpha_3_code="YMD"
+    numeric_code="720"
+    alpha_4_code="YDYE"
+    period_of_validity="1990-08-14"
+    name="Yemen, Democratic, People's Democratic Republic of" />
+  <item
+    alpha_2_code=""
+    alpha_3_code="YEM"
+    numeric_code="891"
+    alpha_4_code="YE"
+    period_of_validity="1990-08-14"
+    name="Yemen, Yemen Arab Republic" />
+  <item
+    alpha_2_code="YU"
+    alpha_3_code="YUG"
+    numeric_code="891"
+    alpha_4_code="YUCS"
+    period_of_validity="1993-07-28"
+    name="Yugoslavia, Socialist Federal Republic of" />
+  <item
+    alpha_2_code="ZR"
+    alpha_3_code="ZAR"
+    numeric_code="180"
+    alpha_4_code="ZRCD"
+    period_of_validity="1997-07-14"
+    name="Zaire, Republic of" />
+</iso_3166_3>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-isocodes/iso-codes.git



More information about the Pkg-isocodes-devel mailing list