diff options
| author | Olivier Dony <odo@openerp.com> | 2015-12-05 20:27:20 +0100 |
|---|---|---|
| committer | Olivier Dony <odo@openerp.com> | 2015-12-05 20:30:37 +0100 |
| commit | 654173e400eaa76d469103c1a37e3aac4f7a7b9d (patch) | |
| tree | 09bde10a664e22a2c82f2aaec326f28f374a3221 /addons/project/static/src/less/project_dashboard.less | |
| parent | e3026aa0bd93562a1fcdb1b667a5a9ac742a86b1 (diff) | |
[FIX] res.lang, tools: safeguards in case of inactive en_US
As of 5aa459a18e3c8a7759e7e6565ec5d97db7923251, en_US may not be
always active, e.g. when another language is used as main language.
Using en_US as fallback is not safe anymore, or at least we have
to check that it is active.
-> Since many parts of the code try to take the default/fallback
language from the "main company language", we need to make sure
to set it at installation time. (it doesn't use the defaults
as it is created in the bootstrap SQL)
-> In addition, when everything else fails, falling back to
the first active language is better than en_US. (e.g in formatLang)
Diffstat (limited to 'addons/project/static/src/less/project_dashboard.less')
0 files changed, 0 insertions, 0 deletions
