1 Revision history for Perl CPAN module Locale::SubCountry
4 Added FIPS codes for UK, thanks to TJMATHER for patch, RT bug #32899
7 Changed regexp match on XML country filed to account for both Unix and MSDOS line endings
8 Converted files to Unix line endings
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.
16 Changed sub country names in Sudan and Phillipines
17 Added examples/demo.pl
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
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.
27 Added regions for Andorra
28 Added regions for Grenada
29 Updated distribution to current CPAN requirements
33 Fixed problem with name space pollution for $VERSION variable
35 Added data for the following countries
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
48 Fixed typo in XML data for American Samoa
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.
54 Fixed pattern matching in data loader to allow for accented characters
57 Added 'use locale' to main.t to stop 'make test' errors
60 Moved XML data back into main module.
61 Corrected documentation
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
69 Added method 'category' to return the type of subcountry such as state, city etc
70 NOTE: this replaces the 'sub_country_type' method
72 Added method 'regional_division' to return the regional_division of subcountry
73 such as SCT (Scotland) for Edinburgh
77 Added data for Finland and Singapore, thanks to Chris McKay
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
88 Fixed bug in test script main.t
92 Added methods to new Locale::SubCountry::World package
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.
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.
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
116 Added extra tests to main.t
117 Prefixed internal data structure elements with a dash, to follow OO convention
120 Corrected codes for Corsica, France, thanks to Mathias Herberts
123 Replaced INIT block with annonymous subroutine. This removed problems
124 that occurred when mod_perl or eval statements were used.
127 Added code for US, West Virginia (WV), thanks to Michelle Agnew
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
138 Corrected errors in German sub countries thanks to Lars Steubesand
140 Corrected errors in data for Austria, Poland, Romania, Turkey, Germany and
141 Columbia. Thanks to Philip Newton.
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
151 Corrected two Belgium sub countries. Thanks to Wim Verhaegen
155 sub_country_type method returns 'unknown' when no data defined
156 Fixed bug in mismatch count in main.t test module
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
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
173 Added Canadian province of Nunavut, thanks to Steve Taylor
176 To follow the approach of ISO 3166-2
177 - renamed module from RegionAbbrev to SubCountry
178 - replaced all references to 'abbreviation' with 'code'
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