thomascube
2008-06-07 235086c7dec474eea538822386c093cf9e1fb93e
Cleaned up localization names to unique language_COUNTRY schema according to ISO 639-1 and ISO 3166-1

68 files renamed
2 files modified
2 files deleted
476 ■■■■ changed files
program/include/rcmail.php 14 ●●●● patch | view | raw | blame | history
program/localization/ar_SA/labels.inc patch | view | raw | blame | history
program/localization/ar_SA/messages.inc patch | view | raw | blame | history
program/localization/bg_BG/labels.inc patch | view | raw | blame | history
program/localization/bg_BG/messages.inc patch | view | raw | blame | history
program/localization/ca_ES/labels.inc patch | view | raw | blame | history
program/localization/ca_ES/messages.inc patch | view | raw | blame | history
program/localization/cs_CZ/labels.inc patch | view | raw | blame | history
program/localization/cs_CZ/messages.inc patch | view | raw | blame | history
program/localization/da_DK/labels.inc patch | view | raw | blame | history
program/localization/da_DK/messages.inc patch | view | raw | blame | history
program/localization/el_GR/labels.inc patch | view | raw | blame | history
program/localization/el_GR/messages.inc patch | view | raw | blame | history
program/localization/es_ES/labels.inc patch | view | raw | blame | history
program/localization/es_ES/messages.inc patch | view | raw | blame | history
program/localization/eu_ES/labels.inc patch | view | raw | blame | history
program/localization/eu_ES/messages.inc patch | view | raw | blame | history
program/localization/fi_FI/labels.inc patch | view | raw | blame | history
program/localization/fi_FI/messages.inc patch | view | raw | blame | history
program/localization/fr_FR/labels.inc patch | view | raw | blame | history
program/localization/fr_FR/messages.inc patch | view | raw | blame | history
program/localization/gl_ES/labels.inc patch | view | raw | blame | history
program/localization/gl_ES/messages.inc patch | view | raw | blame | history
program/localization/he_IL/labels.inc patch | view | raw | blame | history
program/localization/he_IL/messages.inc patch | view | raw | blame | history
program/localization/hi_IN/labels.inc patch | view | raw | blame | history
program/localization/hi_IN/messages.inc patch | view | raw | blame | history
program/localization/hu_HU/labels.inc patch | view | raw | blame | history
program/localization/hu_HU/messages.inc patch | view | raw | blame | history
program/localization/hy_AM/labels.inc patch | view | raw | blame | history
program/localization/hy_AM/messages.inc patch | view | raw | blame | history
program/localization/index.inc 179 ●●●●● patch | view | raw | blame | history
program/localization/is_IS/labels.inc patch | view | raw | blame | history
program/localization/is_IS/messages.inc patch | view | raw | blame | history
program/localization/it_IT/labels.inc patch | view | raw | blame | history
program/localization/it_IT/messages.inc patch | view | raw | blame | history
program/localization/ja_JP/labels.inc patch | view | raw | blame | history
program/localization/ja_JP/messages.inc patch | view | raw | blame | history
program/localization/ka_GE/labels.inc patch | view | raw | blame | history
program/localization/ka_GE/messages.inc patch | view | raw | blame | history
program/localization/ko_KR/labels.inc patch | view | raw | blame | history
program/localization/ko_KR/messages.inc patch | view | raw | blame | history
program/localization/lt_LT/labels.inc patch | view | raw | blame | history
program/localization/lt_LT/messages.inc patch | view | raw | blame | history
program/localization/lv_LV/labels.inc patch | view | raw | blame | history
program/localization/lv_LV/messages.inc patch | view | raw | blame | history
program/localization/mk_MK/labels.inc patch | view | raw | blame | history
program/localization/mk_MK/messages.inc patch | view | raw | blame | history
program/localization/ne_NP/labels.inc patch | view | raw | blame | history
program/localization/ne_NP/messages.inc patch | view | raw | blame | history
program/localization/ro_RO/labels.inc patch | view | raw | blame | history
program/localization/ro_RO/messages.inc patch | view | raw | blame | history
program/localization/ru_RU/labels.inc patch | view | raw | blame | history
program/localization/ru_RU/messages.inc patch | view | raw | blame | history
program/localization/si_LK/labels.inc patch | view | raw | blame | history
program/localization/si_LK/messages.inc patch | view | raw | blame | history
program/localization/sk_SK/labels.inc patch | view | raw | blame | history
program/localization/sk_SK/messages.inc patch | view | raw | blame | history
program/localization/sl_SI/labels.inc patch | view | raw | blame | history
program/localization/sl_SI/messages.inc patch | view | raw | blame | history
program/localization/sr_CS/labels.inc patch | view | raw | blame | history
program/localization/sr_CS/messages.inc patch | view | raw | blame | history
program/localization/sr_latin/labels.inc 217 ●●●●● patch | view | raw | blame | history
program/localization/sr_latin/messages.inc 66 ●●●●● patch | view | raw | blame | history
program/localization/sv_SE/labels.inc patch | view | raw | blame | history
program/localization/sv_SE/messages.inc patch | view | raw | blame | history
program/localization/tr_TR/labels.inc patch | view | raw | blame | history
program/localization/tr_TR/messages.inc patch | view | raw | blame | history
program/localization/uk_UA/labels.inc patch | view | raw | blame | history
program/localization/uk_UA/messages.inc patch | view | raw | blame | history
program/localization/vi_VN/labels.inc patch | view | raw | blame | history
program/localization/vi_VN/messages.inc patch | view | raw | blame | history
program/include/rcmail.php
@@ -186,10 +186,18 @@
    if (!isset($rcube_languages[$lang]) && isset($rcube_language_aliases[$lang])) {
      $lang = $rcube_language_aliases[$lang];
    }
    // try the first two chars
    if (!isset($rcube_languages[$lang]) && strlen($lang)>2) {
      $lang = $this->language_prop(substr($lang, 0, 2));
    else if (!isset($rcube_languages[$lang]) && strlen($lang) > 2) {
      $short = $this->language_prop(substr($lang, 0, 2));
      // check if we have an alias for the short language code
      if (!isset($rcube_languages[$short]) && isset($rcube_language_aliases[$short])) {
        $lang = $rcube_language_aliases[$short];
      }
      else {  // expand 'de' to 'de_DE'
        $lang = $short.'_'.strtoupper($short);
      }
    }
    if (!isset($rcube_languages[$lang]) || !is_dir(INSTALL_PATH . 'program/localization/' . $lang)) {
program/localization/ar_SA/labels.inc
program/localization/ar_SA/messages.inc
program/localization/bg_BG/labels.inc
program/localization/bg_BG/messages.inc
program/localization/ca_ES/labels.inc
program/localization/ca_ES/messages.inc
program/localization/cs_CZ/labels.inc
program/localization/cs_CZ/messages.inc
program/localization/da_DK/labels.inc
program/localization/da_DK/messages.inc
program/localization/el_GR/labels.inc
program/localization/el_GR/messages.inc
program/localization/es_ES/labels.inc
program/localization/es_ES/messages.inc
program/localization/eu_ES/labels.inc
program/localization/eu_ES/messages.inc
program/localization/fi_FI/labels.inc
program/localization/fi_FI/messages.inc
program/localization/fr_FR/labels.inc
program/localization/fr_FR/messages.inc
program/localization/gl_ES/labels.inc
program/localization/gl_ES/messages.inc
program/localization/he_IL/labels.inc
program/localization/he_IL/messages.inc
program/localization/hi_IN/labels.inc
program/localization/hi_IN/messages.inc
program/localization/hu_HU/labels.inc
program/localization/hu_HU/messages.inc
program/localization/hy_AM/labels.inc
program/localization/hy_AM/messages.inc
program/localization/index.inc
@@ -9,8 +9,8 @@
 | Licensed under the GNU GPL                                            |
 |                                                                       |
 | PURPOSE:                                                              |
 |   Provide centralized location for keeping track of                   |
 |   available languages                                                 |
 |   Provide a centralized location table                                |
 |   for keeping track of available languages                            |
 |                                                                       |
 +-----------------------------------------------------------------------+
 | Author: Thomas Bruederli <roundcube@gmail.com>                        |
@@ -19,84 +19,111 @@
 $Id$
*/
 $rcube_languages = array(
     'sq_AL' => 'Albanian',
     'ar'    => 'Arabic',
     'am'    => 'Armenian',
     'bs_BA' => 'Bosnian (Bosanski)',
     'bg'    => 'Bulgarian',
     'ca'    => 'Català',
     'zh_CN' => 'Chinese (Simplified)',
     'zh_TW' => 'Chinese (Traditional)',
     'hr'    => 'Croatian (Hrvatski)',
     'cz'    => 'Czech',
     'da'    => 'Dansk',
     'de_DE' => 'Deutsch (Deutsch)',
     'de_CH' => 'Deutsch (Schweiz)',
     'en_GB' => 'English (GB)',
     'en_US' => 'English (US)',
     'es'    => 'Español',
     'eo'    => 'Esperanto',
     'et_EE' => 'Estonian',
     'eu'    => 'Euskara',
     'nl_BE' => 'Flemish',
     'fr'    => 'Français',
     'gl'    => 'Galego',
     'ge'    => 'Georgian',
     'el'    => 'Greek',
     'he'    => 'Hebrew',
     'hi'    => 'Hindi',
     'hu'    => 'Hungarian',
     'is'    => 'Icelandic',
     'id_ID' => 'Indonesian',
     'ga_IE' => 'Irish',
     'it'    => 'Italiano',
     'ja'    => 'Japanese (日本語)',
     'kr'    => 'Korean',
     'ku'    => 'Kurdish (Kurmancî)',
     'lv'    => 'Latvian',
     'lt'    => 'Lithuanian',
     'mk'    => 'Macedonian',
     'ms_MY' => 'Malay',
     'nl_NL' => 'Nederlands',
     'ne'    => 'Nepali',
     'nb_NO' => 'Norsk (bokmål)',
     'nn_NO' => 'Norsk (nynorsk)',
     'fa'    => 'Persian',
     'pl_PL' => 'Polski',
     'pt_BR' => 'Portuguese (Brazilian)',
     'pt_PT' => 'Portuguese (Standard)',
     'ro'    => 'Romanian',
     'ru'    => 'Russian',
     'sr_cyrillic'   => 'Serbian Cyrillic',
     'sr_latin'      => 'Serbian Latin',
     'si'    => 'Sinhala',
     'sk'    => 'Slovak',
     'sl'    => 'Slovenian',
     'fi'    => 'Suomi',
     'se'    => 'Svenska',
     'th_TH' => 'Thai',
     'tr'    => 'Turkish',
     'uk'    => 'Ukrainian',
     'vn'    => 'Vietnamese'
// langage codes according to ISO 639-1
// country codes according to ISO 3166-1 (Alpha-2)
$rcube_languages = array(
  'sq_AL' => 'Albanian',
  'ar_SA' => 'Arabic',
  'hy_AM' => 'Armenian',
  'bs_BA' => 'Bosnian (Serbian Latin)',
  'bg_BG' => 'Bulgarian',
  'ca_ES' => 'Català',
  'zh_CN' => 'Chinese (Simplified)',
  'zh_TW' => 'Chinese (Traditional)',
  'hr_HR' => 'Croatian (Hrvatski)',
  'cs_CZ' => 'Czech',
  'da_DK' => 'Dansk',
  'de_DE' => 'Deutsch (Deutsch)',
  'de_CH' => 'Deutsch (Schweiz)',
  'en_GB' => 'English (GB)',
  'en_US' => 'English (US)',
  'es_ES' => 'Español',
  'eo'    => 'Esperanto',
  'et_EE' => 'Estonian',
  'eu_ES' => 'Euskara (Basque)',
  'fi_FI' => 'Finnish (Suomi)',
  'nl_BE' => 'Flemish',
  'fr_FR' => 'Français',
  'gl_ES' => 'Galego (Galician)',
  'ka_GE' => 'Georgian (Kartuli)',
  'el_GR' => 'Greek',
  'he_IL' => 'Hebrew',
  'hi_IN' => 'Hindi',
  'hu_HU' => 'Hungarian',
  'is_IS' => 'Icelandic',
  'id_ID' => 'Indonesian',
  'ga_IE' => 'Irish',
  'it_IT' => 'Italiano',
  'ja_JP' => 'Japanese (日本語)',
  'ko_KR' => 'Korean',
  'ku'    => 'Kurdish (Kurmancî)',
  'lv_LV' => 'Latvian',
  'lt_LT' => 'Lithuanian',
  'mk_MK' => 'Macedonian',
  'ms_MY' => 'Malay',
  'nl_NL' => 'Nederlands',
  'ne_NP' => 'Nepali',
  'nb_NO' => 'Norsk (Bokmål)',
  'nn_NO' => 'Norsk (Nynorsk)',
  'fa'    => 'Persian (Farsi)',
  'pl_PL' => 'Polski',
  'pt_BR' => 'Portuguese (Brazilian)',
  'pt_PT' => 'Portuguese (Standard)',
  'ro_RO' => 'Romanian',
  'ru_RU' => 'Russian',
  'sr_CS' => 'Serbian (Cyrillic)',
  'si_LK' => 'Sinhala',
  'sk_SK' => 'Slovak',
  'sl_SI' => 'Slovenian',
  'sv_SE' => 'Swedish (Svenska)',
  'th_TH' => 'Thai',
  'tr_TR' => 'Turkish',
  'uk_UA' => 'Ukrainian',
  'vi_VN' => 'Vietnamese',
);
$rcube_language_aliases = array(
    'ee' => 'et_EE',
    'bs' => 'bs_BA',
    'cn' => 'zh_CN',
    'de' => 'de_DE',
    'en' => 'en_US',
    'ga' => 'ga_IE',
    'nl' => 'nl_NL',
    'no' => 'nn_NO',
    'pt' => 'pt_PT',
    'th' => 'th_TH',
    'tw' => 'zh_TW',
    'pl' => 'pl_PL'
  'ar' => 'ar_SA',
  'am' => 'hy_AM',
  'bg' => 'bg_BG',
  'bs' => 'bs_BA',
  'ca' => 'ca_ES',
  'cn' => 'zh_CN',
  'cs' => 'cs_CZ',
  'cz' => 'cs_CZ',
  'da' => 'da_DK',
  'de' => 'de_DE',
  'ee' => 'et_EE',
  'el' => 'el_GR',
  'en' => 'en_US',
  'eu' => 'eu_ES',
  'ga' => 'ga_IE',
  'ge' => 'ka_GE',
  'gl' => 'gl_ES',
  'he' => 'he_IL',
  'hi' => 'hi_IN',
  'hr' => 'hr_HR',
  'ja' => 'ja_JP',
  'ko' => 'ko_KR',
  'kr' => 'ko_KR',
  'ne' => 'ne_NP',
  'no' => 'nn_NO',
  'ms' => 'ms_MY',
  'tw' => 'zh_TW',
  'si' => 'si_LK',
  'sl' => 'sl_SI',
  'sr' => 'sr_CS',
  'sr_cyrillic' => 'sr_CS',
  'sr_latin' => 'bs_BA',
  'se' => 'sv_SE',
  'sv' => 'sv_SE',
  'uk' => 'uk_UA',
  'vn' => 'vi_VN',
  'vi' => 'vi_VN',
  'zh' => 'zh_CN',
);
$rcube_charsets = array();
?>
program/localization/is_IS/labels.inc
program/localization/is_IS/messages.inc
program/localization/it_IT/labels.inc
program/localization/it_IT/messages.inc
program/localization/ja_JP/labels.inc
program/localization/ja_JP/messages.inc
program/localization/ka_GE/labels.inc
program/localization/ka_GE/messages.inc
program/localization/ko_KR/labels.inc
program/localization/ko_KR/messages.inc
program/localization/lt_LT/labels.inc
program/localization/lt_LT/messages.inc
program/localization/lv_LV/labels.inc
program/localization/lv_LV/messages.inc
program/localization/mk_MK/labels.inc
program/localization/mk_MK/messages.inc
program/localization/ne_NP/labels.inc
program/localization/ne_NP/messages.inc
program/localization/ro_RO/labels.inc
program/localization/ro_RO/messages.inc
program/localization/ru_RU/labels.inc
program/localization/ru_RU/messages.inc
program/localization/si_LK/labels.inc
program/localization/si_LK/messages.inc
program/localization/sk_SK/labels.inc
program/localization/sk_SK/messages.inc
program/localization/sl_SI/labels.inc
program/localization/sl_SI/messages.inc
program/localization/sr_CS/labels.inc
program/localization/sr_CS/messages.inc
program/localization/sr_latin/labels.inc
File was deleted
program/localization/sr_latin/messages.inc
File was deleted
program/localization/sv_SE/labels.inc
program/localization/sv_SE/messages.inc
program/localization/tr_TR/labels.inc
program/localization/tr_TR/messages.inc
program/localization/uk_UA/labels.inc
program/localization/uk_UA/messages.inc
program/localization/vi_VN/labels.inc
program/localization/vi_VN/messages.inc