Impossible to change language in user settings to Chinese
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Critical
|
Radomir Dopieralski |
Bug Description
We use translation.
We have several options for fixing it:
1. Rename the Horizon translations for Chinese to match those of Django;
2. Use absolute paths in LOCALE_PATHS or let Django generate those;
3. Don't use check_for_language in the first place, as the field is already validated against the list of supported language codes from the settings.
Changed in horizon: | |
importance: | Undecided → Critical |
Changed in horizon: | |
assignee: | nobody → Radomir Dopieralski (deshipu) |
status: | New → In Progress |
summary: |
- Chinese translations got renamed from zh-cn and zh-tw to zh-hans and zh- - hant + Impossible to change language in user settings to Chinese |
description: | updated |
Note that the language can be set when horizon runs using the runserver command, because then the LOCALE_PATHS are valid relative paths, and check_for_language finds local Horizon translations. This doesn't work when run from Apache or other web server, as the paths are then incorrect. See https:/ /code.djangopro ject.com/ ticket/ 28755 for details.