#16 make separate settings for language and charset

closed-fixed
None
5
2005-05-09
2005-05-05
Peter Draganov
No

I would like to have separate settings for language and
charset. I am Bulgarian and I write messages in
bulgarian but I like english interface of squirrelmail.
When I select bulgarian language I can send bulgarian
messages as charset is windows-1251. When I select
english language all bulgarian (cyrillic) letters
become &#xxxx because browser converts them to
iso-8859-1 - the english language charset. I changed
charset in functions/i18n.php from:

$languages['en_US']['CHARSET']='iso-8859-1';

to:
$languages['en_US']['CHARSET']='windows-1251';

to overcome this problem but it will be better to have
this in user settings.

Discussion

  • Tomas Kuliavas
    Tomas Kuliavas
    2005-05-05

    • assigned_to: nobody --> tokul
     
  • Tomas Kuliavas
    Tomas Kuliavas
    2005-05-09

    • status: open --> closed-fixed
     
  • Tomas Kuliavas
    Tomas Kuliavas
    2005-05-09

    Logged In: YES
    user_id=225877

    SquirrelMail 1.4.5cvs functions/i18n.php v.1.129.2.36 allows
    to use US English translation with charset defined in
    default_charset setting. Charset used by other translations
    can not be overridden in config, because it would require
    specific php extensions or redesign of message compose
    functions.

    If you want to use English language with different charset,
    I recommend using custom_charset plugin, because it allows
    users to select interface charset instead of using charset
    enforced by admin.