1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-30 02:04:35 +01:00
vichan/inc/countries.php

32 lines
1.2 KiB
PHP
Raw Normal View History

2014-09-26 03:15:17 +02:00
<?php
2014-09-26 03:17:47 +02:00
function get_country( $code ){
2014-09-26 03:15:17 +02:00
$country = '';
2014-09-26 03:38:23 +02:00
if( $code == 'en' ) $country = 'English';
2014-09-29 00:30:45 +02:00
if( $code == 'cz' ) $country = 'Czech';
if( $code == 'dk' ) $country = 'Danish';
2014-09-26 03:38:23 +02:00
if( $code == 'de' ) $country = 'German';
2014-09-29 00:30:45 +02:00
if( $code == 'au' ) $country = 'Australian';
2014-09-26 03:38:23 +02:00
if( $code == 'eo' ) $country = 'Esperanto';
if( $code == 'es' ) $country = 'Spanish';
if( $code == 'fi' ) $country = 'Finnish';
if( $code == 'fr' ) $country = 'French';
if( $code == 'hu' ) $country = 'Hungarian';
if( $code == 'it' ) $country = 'Italian';
2014-09-29 00:30:45 +02:00
if( $code == 'jp' ) $country = 'Japanese';
2014-09-26 03:38:23 +02:00
if( $code == 'jbo' ) $country = 'Lojban';
if( $code == 'lt' ) $country = 'Lithuanian';
if( $code == 'lv' ) $country = 'Latvian';
2014-09-29 00:30:45 +02:00
if( $code == 'no' ) $country = 'Norwegian';
2014-09-26 03:38:23 +02:00
if( $code == 'nl' ) $country = 'Dutch';
if( $code == 'pl' ) $country = 'Polish';
2014-09-29 00:30:45 +02:00
if( $code == 'br' ) $country = 'Brazilian';
2014-09-26 03:38:23 +02:00
if( $code == 'pt' ) $country = 'Portuguese';
if( $code == 'ru' ) $country = 'Russian';
if( $code == 'sk' ) $country = 'Slovak';
2014-09-29 00:30:45 +02:00
if( $code == 'tw' ) $country = 'Taiwanese';
2014-09-26 03:38:23 +02:00
2014-09-26 03:15:17 +02:00
if( $country == '') $country = $code;
return $country;
}