Commit 3330c335 authored by Alastair McKinstry's avatar Alastair McKinstry

Initial revision

0.24 Alastair McKinstry <>
* iso_3166/sv.po: Fixed typo that broke build
* uk.po: Updated Ukranian thanks to Eugeniy Meshcheryakov.
* iso_3166/zh_CN.po: Updated by Carlos Z.F. Liu.
0.23 Alastair McKinstry <>
* iso_3166/de.po: Updated by Simon Huerlimann.
* iso_3166/pt.po: Updated by Miguel Figuereido.
* iso_4217/cs.po: Updated by Miroslav Kure.
* iso_3166/fr.po: Updated by Christian Perrier
* el.po: Updated Greek files from Konstantinos Margaritis.
* Removed superflous spaces and tabs in entries.
0.22 Alastair McKinstry <>
* iso_3166/zh_CN.po: New translation from Carlos Z.F. Liu.
* iso_4217/pl.po: New translation from Bartosz Fenski aka fEnIo.
* iso_3166/de.po: New translations from Bruno Haible.
* iso_639/de.po: New translations from Bruno Haible.
* iso_3166/ru.po: New translations from Nikolai Prokoschenko.
* iso_3166/wa.po: New translations from Pablo Saratxaga.
* iso_3166/cs.po: New Czech translations from Miroslav Kure.
* iso_639.pot: Added comments for translators as to where
some languages are spoken
* Added Serbia and Montenegro entry
* Formal name of Germany is "Federal Republic of
* "Timor Leste" is "Timor-Leste"
* Shortened Vatican entry to "Vatican City"
* all pot files: Added myself to "Reported-Msgid-Bugs" field.
* Added all missing entries for country names
* iso_639.pot: Add translator comment about "Sotho".
* Change "Russian Federation" to "Russia"
* iso_3166: Changed "East Timor" to "Timor-Leste"
* Removed Yugolav country code.
* iso_639: Removed "Soth Ndebele" typo.
* iso_639/af.po: New translations from Frikkie Thirion.
* iso_639/hu.po: New translations from Andras Timar.
#!/usr/bin/make -f
# Top-level Makefile for iso-codes
# These may be overridden by values from debian/rules, etc.
DOMAINS=iso_3166 iso_639 iso_4217 iso_3166_1 iso_3166_2 iso_3166_3
SUBDIRS=iso_3166 iso_639 iso_4217
all: iso-codes.pc
for d in ${SUBDIRS} ; do ${MAKE} -C $$d all; done
for d in ${SUBDIRS} ; do ${MAKE} -C $$d clean ; done
rm -f iso-codes.pc
install: iso-codes.pc
for d in ${SUBDIRS} ; do ${MAKE} -C $$d install ; done
mkdir -p ${PREFIX}/lib/pkgconfig
cp iso-codes.pc ${PREFIX}/lib/pkgconfig/iso-codes.pc
sed -e 's/@VERSION@/${VERSION}/' \
-e 's/@DOMAINS@/${DOMAINS}/' \
-e 's/@PREFIX@/${PREFIX_QUOTED}/' < $< > $@
This package aims to provide the list of the country and language
(and currency) names in one place, rather than repeated in many
programs throughout Debian.
Currently there are lists of languages and countries embedded in:
- Gnome Libs
- bootfloppies / PGI
- Gnumeric
- Gnucash
- ...
This leads to about a dozen lists of 200 languages, translated
into >30 languages ... not very efficient. The aim of this patch
is to create a single "gettext" domain "iso-639" which contains
the translations of language names, and one "iso-3166" listing
the translations of Country names.
So the plan is then to be able to use
dgettext("iso-639", language_name)
to get the correct translations.
The files
store the files in simple tabbed list format, for easy changing.
The files
This lists the 2-letter country code and "short" country name.
This lists the 2-letter and 3-letter language codes and language names
This lists the currency codes and names
This lists previous currrency codes, the currency names, and dates of changes
This lists further elements of the ISO-3166 standard: further country codes
(numeric) and offical long versions of country names.
ISO 3166-2
The ISO 3166 standard includes a "Country Subdivision Code",
giving a code for the names of the principal administrative
subdivisions of the countries coded in ISO 3166.
ISO 3166-2 is a set of files giving this ISO 3166-2 standard:
(available at
this is a standard that gives short codes for provinces,
etc. within a country. As these also list the provinces, Counties,
etc. within a country, they could also be used to provide a
drop-down list when someone is entering addresses...
This contains former country name details: their names, previous codes
and dates of changes.
A pkgconfig file has been included to aid developing with this package.
You can detect the prefix where the translations have been placed using
$ pkg-config --variable=prefix iso-codes
You can detect which sets of translation (domain) files have been installed using
$ pkg-config --variable=domains iso-codes
iso-639 iso-3166 iso-4217 iso-3166-1 iso-3166-2 iso-3166-3
Alastair McKinstry, <>, 2003-12-24
- Tidy up ISO 3166 Tables
- Add man pages documenting them.
(1) Perl code incorrectly refers to Locale::Currency module.
(2) Add the following:
all_subdivision_codes (code)
all_subdivision_names (code)
That parse the ISO 3166-2 files
: Missing files:
af, ar, az, bg, br, bs, eo, eu, id, is, lt, lv, mi, mk, mt, ms, nb,
oc, ro, sl, ta, wa
et, fi, gl, ja, lt, mi, mk, ms, mt, nl, nb, nn, oc, pl, pt, pt_BR,
ro, ru, sl, ta, uk, wa, zh_CN, zh_TW
iso-3166/no.po truncated
- Ensure compatability with language / territory names in GLIBC Locales
- Sort out Norwegian variants; ensure original files (639, in particular)
are up-to-date.
- KDE:
desktop.po file contains such information
entry.desktop has redundant language name information
- Flags in language-env, kde i18n files overlap.
- Add entries for "ven" (Venda); no iso-639-1 code exists, but used in kde.
French Guinea is GF not FJ
Mozambique MZ
This diff is collapsed.
Source: iso-codes
Priority: optional
Build-Depends-Indep: gettext, debhelper (>= 3)
Maintainer: Alastair McKinstry <>
Standards-Version: 3.6.1
Package: iso-codes
Architecture: all
Section: libs
Priority: optional
Description: ISO language, territory, currency codes and their translations
This package provides the ISO-639 Language code list, the
ISO-3166 Territory code list, and ISO-3166-2 sub-territory lists.
It also (more importantly) provides their translations in .po form.
Package: iso-3166-udeb
Architecture: all
Section: debian-installer
Priority: optional
Description: Provides file
This package provides the file, which lists country names
and their ISO-3166 codes.
This package was debianized by Alastair McKinstry <> on
Mon, 28 Oct 2002 19:02:00 +0000
It was downloaded from
Upstream Authors: Alastair McKinstry <>
This package is licensed under the GNU Lesser General Public License.
% (C) 2001-2 Alastair McKinstry <>
% You can find the full text of the LGPL in
% /usr/share/common-licenses/LGPL in your Debian system.
% Look there for details not shown above.
#!/usr/bin/make -f
# rules file for iso-codes. Uses debhelper.
# GNU Copyright 2001 by Alastair McKinstry
# Uncomment this for verbose mode
# export DH_VERBOSE=1
export DH_COMPAT=3
VERSION=$(shell dpkg-parsechangelog | grep ^Version: | cut -d ' ' -f 2)
build: build-stamp
touch build-stamp
rm -f build-stamp
$(MAKE) clean
binary-indep: build-stamp
binary: binary-arch
make PREFIX=`pwd`/debian/iso-codes/usr \
mkdir -p `pwd`/debian/iso-3166-udeb/usr/share/iso-codes
cp iso_3166/ \
dh_installdocs -p iso-codes TODO README
dh_installchangelogs -p iso-codes ChangeLog
dh_gencontrol -p iso-codes
dh_gencontrol -- -fdebian/files~
dpkg-distaddfile $(FILENAME) debian-installer optional
dh_md5sums -p iso-codes
dh_builddeb -p iso-codes
dh_builddeb --filename=$(FILENAME)
.PHONY: binary binary-arch binary-indep clean
Name: iso-codes
Description: ISO country, language and currency codes and translations
Version: @VERSION@
# Makefile to build ISO_3166 translation files
# Copyright (C) 2003,2004 Alastair McKinstry <>
# Released under the GNU Public License; see file COPYING for details
MO_FILES = $(patsubst %.po,, $(wildcard *.po)) \ \ \
TARGETS=$(patsubst %,${INSTALL_DIR}/%, ${MO_FILES})
INSTALL=install -m 644
MKDIR_P=mkdir -p
SUBDIRS=iso_3166_1 iso_3166_2 iso_3166_3
all: iso_3166.pot ${MO_FILES}
for d in ${SUBDIRS} ; do ${MAKE} -C $$d all ; done
install: all
for d in ${MO_FILES} ; do \
lang=`basename $$d | sed 's/.mo$$//' ` ; \
dir=${destdir}/$$lang/LC_MESSAGES ; \
${MKDIR_P} $$dir ; \
${INSTALL} $$d $$dir/ ; \
for d in ${SUBDIRS} ; do ${MAKE} -C $$d install ; done
../ 1 2 > iso_3166.h
%.pot: %.h
xgettext --extract-all --output $@ --from-code=UTF-8 --add-comments $< %.po
msgfmt --verbose --check $< -o $@
rm -f iso_3166.pot *~ *.mo
for d in ${SUBDIRS}; do ${MAKE} -C $$d clean ; done
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
AD Andorra
AE United Arab Emirates
AF Afghanistan
AG Antigua and Barbuda
AI Anguilla
AL Albania
AM Armenia
AN Netherlands Antilles
AO Angola
AQ Antarctica
AR Argentina
AS American Samoa
AT Austria
AU Australia
AW Aruba
AZ Azerbaijan
BA Bosnia and Herzegovina
BB Barbados
BD Bangladesh
BE Belgium
BF Burkina Faso
BG Bulgaria
BH Bahrain
BI Burundi
BJ Benin
BM Bermuda
BN Brunei Darussalam
BO Bolivia
BR Brazil
BS Bahamas
BT Bhutan
BV Bouvet Island
BW Botswana
BY Belarus
BZ Belize
CA Canada
CC Cocos (Keeling) Islands
CD Congo, The Democratic Republic of
CF Central African Republic
CG Congo
CH Switzerland
CI Cote d'Ivoire
CK Cook Islands
CL Chile
CM Cameroon
CN China
CO Colombia
CR Costa Rica
CS Serbia and Montenegro
CU Cuba
CV Cape Verde
CX Christmas Island
CY Cyprus
CZ Czech Republic
DE Germany
DJ Djibouti
DK Denmark
DM Dominica
DO Dominican Republic
DZ Algeria
EC Ecuador
EE Estonia
EG Egypt
EH Western Sahara
ER Eritrea
ES Spain
ET Ethiopia
FI Finland
FJ Fiji
FK Falkland Islands (Malvinas)
FM Micronesia
FO Faroe Islands
FR France
GA Gabon
GB Britain (UK)
GD Grenada
GE Georgia
GF French Guiana
GH Ghana
GI Gibraltar
GL Greenland
GM Gambia
GN Guinea
GP Guadeloupe
GQ Equatorial Guinea
GR Greece
GS South Georgia and the South Sandwich Islands
GT Guatemala
GU Guam
GW Guinea-Bissau
GY Guyana
HK Hong Kong
HM Heard Island & McDonald Islands
HN Honduras
HR Croatia
HT Haiti
HU Hungary
ID Indonesia
IE Ireland
IL Israel
IN India
IO British Indian Ocean Territory
IQ Iraq
IR Iran
IS Iceland
IT Italy
JM Jamaica
JO Jordan
JP Japan
KE Kenya
KG Kyrgyzstan
KH Cambodia
KI Kiribati
KM Comoros
KN St Kitts & Nevis
KP Korea, Democratic People's Republic of
KR Korea, Republic of
KW Kuwait
KY Cayman Islands
KZ Kazakhstan
LA Laos
LB Lebanon
LC St Lucia
LI Liechtenstein
LK Sri Lanka
LR Liberia
LS Lesotho
LT Lithuania
LU Luxembourg
LV Latvia
LY Libya
MA Morocco
MC Monaco
MD Moldova
MG Madagascar
MH Marshall Islands
MK Macedonia
ML Mali
MM Myanmar
MN Mongolia
MO Macao
MP Northern Mariana Islands
MQ Martinique
MR Mauritania
MS Montserrat
MT Malta
MU Mauritius
MV Maldives
MW Malawi
MX Mexico
MY Malaysia
MZ Mozambique
NA Namibia
NC New Caledonia
NE Niger
NF Norfolk Island
NG Nigeria
NI Nicaragua
NL Netherlands
NO Norway
NP Nepal
NR Nauru
NU Niue
NZ New Zealand
OM Oman
PA Panama
PE Peru
PF French Polynesia
PG Papua New Guinea
PH Philippines
PK Pakistan
PL Poland
PM St Pierre and Miquelon
PN Pitcairn
PR Puerto Rico
PS Palestine
PT Portugal
PW Palau
PY Paraguay
QA Qatar
RE Reunion
RO Romania
RU Russia
RW Rwanda
SA Saudi Arabia
SB Solomon Islands
SC Seychelles
SD Sudan
SE Sweden
SG Singapore
SH Saint Helena
SI Slovenia
SJ Svalbard and Jan Mayen
SK Slovakia
SL Sierra Leone
SM San Marino
SN Senegal
SO Somalia
SR Suriname
ST Sao Tome and Principe
SV El Salvador
SY Syrian Arab Republic
SZ Swaziland
TC Turks & Caicos Is
TD Chad
TF French Southern Territories
TG Togo
TH Thailand
TJ Tajikistan
TK Tokelau
TL Timor-Leste
TM Turkmenistan
TN Tunisia
TO Tonga
TR Turkey
TT Trinidad and Tobago
TV Tuvalu
TW Taiwan
TZ Tanzania
UA Ukraine
UG Uganda
UM United States Minor Outlying Islands
US United States
UY Uruguay
UZ Uzbekistan
VA Vatican City
VC St Vincent and the Grenadines
VE Venezuela
VG Virgin Islands, British
VI Virgin Islands, U.S.
VN Vietnam
VU Vanuatu
WF Wallis and Futuna
WS Samoa
YE Yemen