Roundcube Community Forum

 

List of languages ​​too short on Settings

Started by Drakon, October 16, 2012, 11:03:01 AM

Previous topic - Next topic

Drakon

Hi crew!

I have updated to version 0.8.2. When I try to change the language I have only four languages on language list (attached screenshot).

I can change the language via MySQL and I can work well with the language I want.

On "/program/localization" I have all folders, I have not removed any and the permissions are correct, by default.

Can anyone help?


SKaero

Whats in the <RC root>/program/localization/index.inc?

Drakon

SKaero, I have the default file...

Quote
<?php

/*
+-----------------------------------------------------------------------+
| program/localization/index.inc                                        |
|                                                                       |
| This file is part of the Roundcube Webmail client                     |
| Copyright (C) 2005-2012, The Roundcube Dev Team                       |
|                                                                       |
| Licensed under the GNU General Public License version 3 or            |
| any later version with exceptions for skins & plugins.                |
| See the README file for a full license statement.                     |
|                                                                       |
| PURPOSE:                                                              |
|   Provide a centralized location table                                |
|   for keeping track of available languages                            |
|                                                                       |
+-----------------------------------------------------------------------+
| Author: Thomas Bruederli <[email protected]>                        |
+-----------------------------------------------------------------------+
*/

// langage codes according to ISO 639-1
// country codes according to ISO 3166-1 (Alpha-2)
// original names from http://www.mediaglyphs.org/mg/?p=langnames

$rcube_languages = array(
  'sq_AL' => 'Albanian (Shqip)',
  'ar_SA' => 'Arabic (اÙ,,عربية)',
  'hy_AM' => 'Armenian (Õ€Õ¡ÕµÕ¥Ö€Õ¥Õ¶)',
  'ast'     => 'Asturiana (Asturianu)',
  'az_AZ' => 'Azerbaijani (AzÉ™rbaycanca)',
  'eu_ES' => 'Basque (Euskara)',
  'be_BE' => 'Belarusian (беларуская мова)',
  'bn_BD' => 'Bengali (বাà¦,লা)',
  'bs_BA' => 'Bosnian (Bosanski)',
  'br'     => 'Breton (Brezhoneg)',
  'bg_BG' => 'Bulgarian (Ð'ългарски)',
  'ca_ES' => 'Catalan (Català)',
  'zh_CN' => 'Chinese (简ä½"中文)',
  'zh_TW' => 'Chinese (æ­£é«"中文)',
  'hr_HR' => 'Croatian (Hrvatski)',
  'cs_CZ' => 'Czech (ÄŒesky)',
  'da_DK' => 'Danish (Dansk)',
  'fa_AF' => 'Dari (ﻯﺭﺩ)',
  'de_DE' => 'German (Deutsch)',
  'de_CH' => 'German (Schweiz)',
  'nl_NL' => 'Dutch (Nederlands)',
  'en_GB' => 'English (GB)',
  'en_US' => 'English (US)',
  'eo'    => 'Esperanto',
  'et_EE' => 'Estonian (Eesti)',
  'fi_FI' => 'Finnish (Suomi)',
  'nl_BE' => 'Flemish (Vlaams)',
  'fr_FR' => 'French (Français)',
  'gl_ES' => 'Galician (Galego)',
  'ka_GE' => 'Georgian (ქართული)',
  'el_GR' => 'Greek (Ελληνικά)',
  'he_IL' => 'Hebrew (×¢×'רית)',
  'hi_IN' => 'Hindi (हिनदी)',
  'hu_HU' => 'Hungarian (Magyar)',
  'is_IS' => 'Icelandic (Íslenska)',
  'id_ID' => 'Indonesian (Bahasa Indonesia)',
  'ia'    => 'Interlingua',
  'ga_IE' => 'Irish (Gaedhilge)',
  'it_IT' => 'Italian (Italiano)',
  'ja_JP' => 'Japanese (日本語)',
  'km_KH' => 'Khmer (ភាសាខáŸ'មáŸ,ážš)',
  'ko_KR' => 'Korean (한국어)',
  'ku'    => 'Kurdish (Kurmancî)',
  'lv_LV' => 'Latvian (LatvieÅ¡u)',
  'lt_LT' => 'Lithuanian (LietuviÅ¡kai)',
  'mk_MK' => 'Macedonian (Македонски)',
  'ms_MY' => 'Malay (Bahasa Melayu)',
  'ml_IN' => 'Malayalam (മലയാളà´,)',
  'mr_IN' => 'Marathi (मराठी)',
  'ne_NP' => 'Nepali (नेपाली)',
  'nb_NO' => 'Norwegian (BokmÃ¥l)',
  'nn_NO' => 'Norwegian (Nynorsk)',
  'ps'      => 'Pashto',
  'fa_IR' => 'Persian (فارسی)',
  'pl_PL' => 'Polish (Polski)',
  'pt_BR' => 'Portuguese (Brasil)',
  'pt_PT' => 'Portuguese (Português)',
  'ro_RO' => 'Romanian (RomâneÅŸte)',
  'ru_RU' => 'Russian (Русский)',
  'sr_CS' => 'Serbian (Српски)',
  'si_LK' => 'Sinhalese (à·ƒà·'à¶,à·,,ල)',
  'sk_SK' => 'Slovak (Slovenčina)',
  'sl_SI' => 'Slovenian (Slovenščina)',
  'es_AR' => 'Spanish (Argentina)',
  'es_ES' => 'Spanish (Español)',
  'sv_SE' => 'Swedish (Svenska)',
  'ta_IN' => 'Tamil (தமிழ்)',
  'th_TH' => 'Thai (à¹,,ทย)',
  'tr_TR' => 'Turkish (Türkçe)',
  'uk_UA' => 'Ukrainian (Українська)',
  'vi_VN' => 'Vietnamese (Tiếng Việt)',
  'cy_GB' => 'Welsh (Cymraeg)',
);

$rcube_language_aliases = array(
  'am' => 'hy_AM',
  'ar' => 'ar_SA',
  'az' => 'az_AZ',
  'bg' => 'bg_BG',
  'bs' => 'bs_BA',
  'ca' => 'ca_ES',
  'cn' => 'zh_CN',
  'cs' => 'cs_CZ',
  'cy' => 'cy_GB',
  'cz' => 'cs_CZ',
  'da' => 'da_DK',
  'de' => 'de_DE',
  'ee' => 'et_EE',
  'et' => 'et_EE',
  'el' => 'el_GR',
  'en' => 'en_US',
  'eu' => 'eu_ES',
  'fa' => 'fa_IR',
  'ga' => 'ga_IE',
  'ge' => 'ka_GE',
  'gl' => 'gl_ES',
  'he' => 'he_IL',
  'hi' => 'hi_IN',
  'hr' => 'hr_HR',
  'hy' => 'hy_AM',
  'ja' => 'ja_JP',
  'ka' => 'ka_GE',
  'ko' => 'ko_KR',
  'kr' => 'ko_KR',
  'kh' => 'km_KH',
  'kh_KH' => 'km_KH',
  'km' => 'km_KH',
  'ne' => 'ne_NP',
  'no' => 'nn_NO',
  'ms' => 'ms_MY',
  'mr' => 'mr_IN',
  'ml' => 'ml_IN',
  'ml_ML' => 'ml_IN',
  'pl' => 'pl_PL',
  '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',
  'sq' => 'sq_AL',
  'uk' => 'uk_UA',
  'vn' => 'vi_VN',
  'vi' => 'vi_VN',
  'zh' => 'zh_CN',
);

?>

SKaero

To my knowledge thats the file that controls which languages show up, do you get the full list if you disable all plugins?

Drakon

The "plugin_manager" plugin is the problem, even with the default configuration. I've disabled it.

Thanks SKaero!!

SKaero

Just a guess but maybe its because the plugins don't have the localization files it doen't show those languages.

Jack!

QuoteThe "plugin_manager" plugin is the problem, even with the default configuration. I've disabled it.
There's no need to disable the plugin_manager to solve the language list issue. I'm assuming that you're using the settings plugin within the plugin_manager. Check configuration for settings plugin in file config.inc.php.

Default value for $rcmail_config['limit_languages']: $rcmail_config['limit_languages'] = array("en_US", "de_DE", "fr_FR", "cs_CZ");

Change this for instance in: $rcmail_config['limit_languages'] = array();

Good chance all your languages are back again.

Drakon

Ok Jack! I have modified "settings" plugin. Thanks!!