continents.php
6 years ago
countries-extra.php
6 years ago
countries.php
6 years ago
currencies.php
6 years ago
languages-to-countries.php
6 years ago
languages.php
6 years ago
countries-extra.php
54 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Piwik - free/libre analytics platform |
| 4 | * |
| 5 | * @link https://matomo.org |
| 6 | * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later |
| 7 | */ |
| 8 | |
| 9 | /** |
| 10 | * Country codes database. |
| 11 | * |
| 12 | * The mapping of countries to continents is from MaxMind with the exception |
| 13 | * of Central America. MaxMind groups Central American countries with |
| 14 | * North America. Piwik previously grouped Central American countries with |
| 15 | * South America. Given this conflict and the fact that most of Central |
| 16 | * America lies on its own continental plate (i.e., the Caribbean Plate), we |
| 17 | * currently use a separate continent code (amc). |
| 18 | */ |
| 19 | return array( |
| 20 | // unknown |
| 21 | 'xx' => 'unk', |
| 22 | |
| 23 | // exceptionally reserved |
| 24 | 'ac' => 'afr', // .ac TLD |
| 25 | 'cp' => 'amc', |
| 26 | 'dg' => 'asi', |
| 27 | 'ea' => 'afr', |
| 28 | 'eu' => 'eur', // .eu TLD |
| 29 | 'fx' => 'eur', |
| 30 | 'ic' => 'afr', |
| 31 | 'su' => 'eur', // .su TLD |
| 32 | 'ta' => 'afr', |
| 33 | 'uk' => 'eur', // .uk TLD |
| 34 | |
| 35 | // transitionally reserved |
| 36 | 'an' => 'amc', // former Netherlands Antilles |
| 37 | 'bu' => 'asi', |
| 38 | 'cs' => 'eur', // former Serbia and Montenegro |
| 39 | 'nt' => 'asi', |
| 40 | 'sf' => 'eur', |
| 41 | 'tp' => 'oce', // .tp TLD |
| 42 | 'yu' => 'eur', // .yu TLD |
| 43 | 'zr' => 'afr', |
| 44 | |
| 45 | // MaxMind GeoIP specific |
| 46 | 'a1' => 'unk', |
| 47 | 'a2' => 'unk', |
| 48 | 'ap' => 'asi', |
| 49 | 'o1' => 'unk', |
| 50 | |
| 51 | // Catalonia (Spain) |
| 52 | 'cat' => 'eur', |
| 53 | ); |
| 54 |