importing upstream 1.41
[Locale-SubCountry.git] / Changes
1 Revision history for Perl CPAN module Locale::SubCountry
2
3 1.41 20 Apr 2008
4     Added FIPS codes for UK, thanks to TJMATHER for patch, RT bug #32899
5
6 1.40 12 Jan 2008
7     Changed  regexp match on XML country filed to account for both Unix and MSDOS line endings
8     Converted files to Unix line endings
9
10 1.39 6 Jan 2008
11     Alowed for sub countires with no ISO code, such as Shariff Kabunsuan in the Phillipines
12     Thanks to Matt Loschert for pointing this out.
13     
14
15 1.38 26 Nov 2006
16     Changed sub country names in Sudan and Phillipines
17     Added examples/demo.pl
18
19 1.37 02 Apr 2006
20     Removed invalid characters in data for Iran, United Arab Emirates and Oman
21     Removed alternate names (appended to end of main names in brackects) from many sub countries
22
23     NOTE: new method now issues warning and returns undef if invalid country code or 
24     name parameter is passed. Previous versions died inside the new method.
25
26 1.36 11 Jul 2005
27     Added regions for Andorra
28     Added regions for Grenada
29     Updated distribution to current CPAN requirements 
30
31
32 1.35 04 Jul 2005
33     Fixed problem with name space pollution for $VERSION variable
34
35     Added data for the following countries
36         Antigua and Barbuda
37         Andorra
38         Aruba
39         Bhutan
40         Nauru
41         Seychelles
42
43     For Cape Verde, changed Calheta de São Miguel to São Miguel
44     For Venezuela, changed Distrito Federal to Distrito Capital
45     Added districts for Honduras
46
47 1.34 17 Apr 2004
48     Fixed typo in XML data for American Samoa
49
50     Added 'has_sub_countries' method to determine if a country has any sub countries
51     (some such a Singapore do not). Updated synopsis to show it's use. 
52
53 1.33 13 Feb 2004
54     Fixed pattern matching in data loader to allow for accented characters
55
56 1.32 13 Feb 2004
57     Added 'use locale' to main.t to stop 'make test' errors
58
59 1.31 12 Feb 2004
60     Moved XML data back into main module.
61     Corrected documentation
62
63 1.30 8 Feb 2004
64
65     Completely updated data, many new countries and sub countries added
66     Added countries without sub countries, such as Singapore
67     Stored data in separate file in XML format
68
69     Added method 'category' to return the type of subcountry such as state, city etc
70     NOTE: this replaces the 'sub_country_type' method
71
72     Added method 'regional_division' to return the regional_division of subcountry 
73     such as SCT (Scotland) for Edinburgh
74
75 1.23 16 Jul 2003
76     
77     Added data for Finland and Singapore, thanks to Chris McKay 
78
79 1.22 18 Jan 2003
80     Removed use of $_ in initialization code, as suggested by Ilya Martynov
81     Corrected country code for Iran, thanks to Todd A. Green
82     Removed Exporter references, as suggested by TJ Mather
83     Added Timor-Leste as a new country (East Timor)
84     Changed Canadian province of Newfoundland to Newfoundland and Labrador
85
86
87 1.21 9 Sep 2002
88     Fixed bug in test script main.t
89
90 1.20 7 Sep 2002
91
92     Added methods to new Locale::SubCountry::World package
93     - new
94     - all_full_names
95     - all_codes
96     - full_name_code_hash
97     - code_full_name_hash
98
99     NOTE! 
100     all_full_names method replaces the stand alone all_country_names function
101     all_codes method replaces the stand alone all_country_codes function
102     The above method names duplicate existing method names (polymorphism),
103         so make sure you are working with the right type of object first.
104
105     These changes were necessary because of user requests for country  name 
106     and code look ups prior to sub-country lookups. Previous versions would not 
107     work with Locale::Country because of a clash in exported names. Thanks to
108     Todd Green for this suggestion.
109
110     Added the FIPS 10-4 (US standard) for many sub countries
111     Added FIPS10_4_code method
112     Added ISO3166_2_code method
113     Added many corrections to sub country names
114     Thanks to TJ Mather for adding FIPS codes and fixing other data errors 
115
116     Added extra tests to main.t
117     Prefixed internal data structure elements with a dash, to follow OO convention 
118
119 1.11 23 Mar 2002
120     Corrected codes for Corsica, France, thanks to Mathias Herberts
121
122 1.10 04 Jan 2002
123     Replaced INIT block with annonymous subroutine. This removed problems
124     that occurred when mod_perl or eval statements were used.
125
126 1.09 25 Jul 2001
127     Added code for US, West Virginia (WV), thanks to Michelle Agnew
128
129 1.08 16 Mar 2001 
130     Made many corrections to country data to align it with ISO:3166-2 standard
131     Defined sub country types for all countries
132     Added information for Israel and Albania
133     Removed some MS-DOS line terminators that were generating warnings
134     Added two more tests to main.t
135
136
137 1.07 12 Mar 2001 
138     Corrected errors in German sub countries thanks to Lars Steubesand
139
140     Corrected errors in data for Austria, Poland, Romania, Turkey, Germany and 
141     Columbia. Thanks to Philip Newton.
142
143 1.06 20 Feb 2001 
144     Allowed countries to be specified by either full name or two letter code 
145     Made country names compatible with ISO 3166-1 standard
146     Added country_code method to retrieve ISO code for current object
147     Added all_country_codes method to retrieve ISO codes for all countries
148     Corrected abbreviation for Canadian province of Nunavut 
149     Thanks to Trevor Schellhorn for these suggestions
150
151     Corrected two Belgium sub countries. Thanks to Wim Verhaegen 
152
153
154 1.05 15 Oct 2000
155     sub_country_type method returns 'unknown' when no data defined 
156     Fixed bug in mismatch count in main.t test module
157
158 1.04 04 Oct 2000
159     Added all remaining countries, thanks to Alastair McKinstry  
160     Included sub country type (state, county etc) in lookup data
161     Added country and sub_country_type methods
162     Accounted for sub country codes of 0
163
164 1.03 20 Aug 2000 
165     Added many more countries, thanks to Alastair McKinstry  
166     Now account for any incorrect capitalization of sub country names
167     _clean subroutine only removes dots and spaces, dashes are now allowed
168     Added subroutine to return array of countries that have lookup data
169     Added test in main.t to convert all codes to names and back again 
170     Allowed for leading or trailing white space in __DATA__ entries
171
172 1.02 14 May 2000
173     Added Canadian province of Nunavut, thanks to Steve Taylor 
174
175 1.01 25 Apr 2000
176     To follow the approach of ISO 3166-2 
177     - renamed module from RegionAbbrev to SubCountry
178     - replaced all references to 'abbreviation' with 'code'
179                      
180     Improved regexes in _clean, thanks to Mark Summerfield
181     Replaced regexp with hash lookup for valid countries
182     Accepted all forms of upper/lower case in country name
183
184 1.00  8 Apr 2000
185      First Release