1

Topic: New install of iRedAdmin (open source) no Language set for new users

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 9=0.9.2
- Linux/BSD distribution name and version: CentOS 7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:
====

Hi Zhang,

I have a brand new installation, open source, new email users are being created with a blank language. This causes the language to be what looks like Polish when you go to edit the user. I have done a
update mailbox set language = 'en_US';
to correct the exiting entries.

Jim

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: New install of iRedAdmin (open source) no Language set for new users

'mailbox.language' is used by iRedAdmin, if you set a global language in iRedAdmin config file (settings.py), it will use this global setting if no per-user language is set.

3

Re: New install of iRedAdmin (open source) no Language set for new users

Zhang,

in /var/www/iredadmin/settings.py
this is set.
default_language = 'en_US'

should it be a different variable?

Jim

4

Re: New install of iRedAdmin (open source) no Language set for new users

It sounds like a bug of iRedAdmin open source edition, i will try to reproduce this issue and fix it.

Could you please be clearer about this description:

I have a brand new installation, open source, new email users are being created with a blank language. This causes the language to be what looks like Polish when you go to edit the user. I have done a

*) You login to iRedAdmin as global admin or normal admin?
*) What's the web ui language of this logged in admin account?
*) Does it happen every time you try to edit different users' profiles?

5

Re: New install of iRedAdmin (open source) no Language set for new users

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 9=0.9.2
- Linux/BSD distribution name and version: Ubuntu 14.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:
====

Hi Zhang, I also have this issue.
In my case iRedAdmin was installed just last night on a clean Ubuntu 14.04 image.
When I create a new email account the Preferred Language dropdown is always set to the first entry in the drop down (it reminds me of the characters seen in the game DayZ so I'm guessing its Polish or Russian) after selecting "English (US)" and saving changes it is updated successfully.

Given that its the first entry in the drop-down list my guess is that the related field in the database isn't being set properly during account creation and a default (first) value is being selected.

As its just a normal user and not an admin I can't use that account to log into iredadmin and check the ui but I can confirm that roundcube's interface was English (prior to setting the language correctly).

This has happened with every new account I have created.

If you require any further information please don't hesitate to ask.

Cheers,

Phillip

6

Re: New install of iRedAdmin (open source) no Language set for new users

Even without checking the source code, i can confirm it's a bug of iRedAdmin open source edition. I will come back with a fix later.

7

Re: New install of iRedAdmin (open source) no Language set for new users

Dear @jpforte, @phillip.little,

This bug was fixed with this commit:
https://bitbucket.org/zhb/iredadmin-ose … a438a61286

8

Re: New install of iRedAdmin (open source) no Language set for new users

ZhangHuangbin wrote:

Dear @jpforte, @phillip.little,

This bug was fixed with this commit:
https://bitbucket.org/zhb/iredadmin-ose … a438a61286

Hi Zhang,
Thanks for your help with this issue.

I just applied the fix shown in your commit and now when I create a new user the "Preferred language" field is blank. Implying that no preferred language has been set.

Am I correct in assuming that this is the expected behaviour or should it be defaulting to a value I can set in a configuration file somewhere?

Cheers,

Phillip

9

Re: New install of iRedAdmin (open source) no Language set for new users

It's expected, because you didn't set a preferred language for newly created user.