com web/php: Define the language array, both directions: include/countries_alpha_mapping.inc
| From: | Paul Dragoonis | Date: | Fri, 28 Mar 2014 07:23:30 +0000 |
| Subject: | com web/php: Define the language array, both directions: include/countries_alpha_mapping.inc | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-22123@lists.php.net to get a copy of this message | ||
Commit: e3166e9ab643ac70474550c42b841ff5333ff6aa
Author: Hannes Magnusson <bjori@mongodb.com> Fri, 28 Mar 2014 00:23:30 -0700
Parents: 4fcea48b790de4b8a9e63384a4de1e21eb98e7fe
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=e3166e9ab643ac70474550c42b841ff5333ff6aa
Log:
Define the language array, both directions
Changed paths:
M include/countries_alpha_mapping.inc
Diff:
diff --git a/include/countries_alpha_mapping.inc b/include/countries_alpha_mapping.inc
index 70e0a1f..a69dccc 100644
--- a/include/countries_alpha_mapping.inc
+++ b/include/countries_alpha_mapping.inc
@@ -2,7 +2,7 @@
/**
* This file has been extracted from http://opengeocode.org/download/countrynames.txt
*/
-return array(
+$COUNTRY_ALPHA_3_TO_2 = array(
"AFG" => "AF",
"ALA" => "AX",
"ALB" => "AL",
@@ -251,4 +251,5 @@ return array(
"YEM" => "YE",
"ZMB" => "ZM",
"ZWE" => "ZW",
- );
\ No newline at end of file
+ );
+$COUNTRY_ALPHA_2_TO_3 = array_flip($COUNTRY_ALPHA_3_TO_2);