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