Author Topic: Default Language Not Setting Properly (Similar to Prior Issues)  (Read 4604 times)

Offline pezzimda

  • Newbie
  • *
  • Posts: 1
I'm trying to setup webmail on my Debian Wheezy box using Roundcube installed from repository:

    root@cloud:/etc# cat debian_version
    7.5

    root@cloud:/etc# uname -r
    2.6.32-042stab094.7


    root@cloud:/etc/apt# cat sources.list
   deb http://ftp.debian.org/debian wheezy main contrib non-free
   deb http://security.debian.org wheezy/updates main contrib non-free

I've installed Postfix/Dovecot and got these working with Squirrelmail. It worked fine, but then I wanted to try it with a smoother interface so I installed Roundcube. Disable the Squirrelmail site and then enable my Roundcube config. So far no issues until I get to the default page for Roundcube. It is set to ar_SA for the default language. I verified it and changed it using the following commands:

    dpkg-reconfigure roundcube-core

    root@cloud:/etc# debconf-show roundcube-core | grep lang
    * roundcube/language: en_US


Still a no go. The main page for Roundcube is still loading ar_SA for whatever reason. I was able to update the settings for my individual account and that stuck:

    mysql> SELECT username,language FROM roundcube.users WHERE username='User';
    +----------+----------+
    | username | language |
    +----------+----------+
    | User     | en_US    |
    +----------+----------+

I tried updating the locales on the Debian system using dpkg-reconfigure locales. I installed the following locales and then set en_US as the default for the system:

    en_US ISO-8859-1
    en_US.ISO-8859-15 ISO 8859-15
    en_US.UTF-8 UTF-8

I even added the following strings to my /var/lib/roundcube/config/main.inc.php file:

    $rcmail_config['locale_string'] = 'en';
    $rcmail_config['language'] = 'en_US';

Just to see if these settings applied were making some effect I created a test user. I logged into Roundcube for the first time with the test user. It set the default language for the user to ar_SA.

I have used the following articles for reference though some of them were dated. Others provided the means to gather the information from above. I'm not sure what is causing it not to load the main page in English:

https://bugs.launchpad.net/ehcp/+bug/800503
http://presoon.com/blog/2008/04/18/how-to-change-language-for-roundcube-webmail/
http://trac.roundcube.net/ticket/1484194
http://www.roundcubeforum.net/index.php?topic=2132.0
http://www.debiantutorials.com/how-to-install-roundcube-on-squeeze/

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,882
    • SKaero - Custom Roundcube development
Re: Default Language Not Setting Properly (Similar to Prior Issues)
« Reply #1 on: March 10, 2015, 03:39:23 AM »
Roundcube uses the default language that is set in the browser so check your browsers language settings.