2 /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
4 // +----------------------------------------------------------------------+
5 // | Akelos Framework - http://www.akelos.org |
6 // +----------------------------------------------------------------------+
7 // | Copyright (c) 2002-2006, Akelos Media, S.L. & Bermi Ferrer Martinez |
8 // | Released under the GNU Lesser General Public License, see LICENSE.txt|
9 // +----------------------------------------------------------------------+
12 * @package ActiveSupport
13 * @subpackage I18n-L10n
14 * @author Bermi Ferrer <bermi a.t akelos c.om>
15 * @copyright Copyright (c) 2002-2006, Akelos Media, S.L. http://www.akelos.org
16 * @license GNU Lesser General Public License <http://www.gnu.org/copyleft/lesser.html>
21 function getCountriesDescriptions()
23 return explode("\n", Ak
::t("ALA|Åland Islands
31 ATG|Antigua and Barbuda
49 BIH|Bosnia and Herzegovina
52 VGB|British Virgin Islands
63 CAF|Central African Republic
69 COD|Congo, Democratic Republic
79 DOM|Dominican Republic
89 FLK|Falkland Islands (Malvinas)
117 IRN|Iran (Islamic Republic of)
129 PRK|Korea, Republic of
133 LAO|Lao People's Democratic Republic
138 LBY|Libyan Arab Jamahiriya
166 ANT|Netherlands Antilles
175 MNP|Northern Mariana Islands
177 PSE|Occupied Palestinian Territory
192 MDA|Republic of Moldova
194 RUS|Russian Federation
197 KNA|Saint Kitts and Nevis
199 SPM|Saint Pierre and Miquelon
200 VCT|Saint Vincent and the Grenadines
203 STP|Sao Tome and Principe
206 SCG|Serbia and Montenegro
219 SJM|Svalbard and Jan Mayen Islands
223 SYR|Syrian Arab Republic
231 TTO|Trinidad and Tobago
235 TCA|Turks and Caicos Islands
239 ARE|United Arab Emirates
241 VIR|United States Virgin Islands
246 VAT|Vatican City State (Holy See)
249 WLF|Wallis and Futuna Islands
253 ZWE|Zimbabwe",array(),'localize/countries'));
258 $countries_array = array();
259 foreach (AkCountries
::getCountriesDescriptions() as $country_string){
260 list($code,$country) = explode('|',$country_string);
261 $countries_array[$country] = $code;
263 return $countries_array;