1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-26 08:20:58 +01:00
vichan/inc/countries.php

30 lines
1.1 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';
if( $code == 'cs' ) $country = 'Czech';
if( $code == 'da' ) $country = 'Danish';
if( $code == 'de' ) $country = 'German';
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';
if( $code == 'ja' ) $country = 'Japanese';
if( $code == 'jbo' ) $country = 'Lojban';
if( $code == 'lt' ) $country = 'Lithuanian';
if( $code == 'lv' ) $country = 'Latvian';
if( $code == 'nb' ) $country = 'Norwegian';
if( $code == 'nl' ) $country = 'Dutch';
if( $code == 'pl' ) $country = 'Polish';
if( $code == 'pt' ) $country = 'Portuguese';
if( $code == 'ru' ) $country = 'Russian';
if( $code == 'sk' ) $country = 'Slovak';
if( $code == 'zh' ) $country = 'Chinese';
2014-09-26 03:15:17 +02:00
if( $country == '') $country = $code;
return $country;
}