Defect #4009
"html" tag's xml:lang always "en" for all languages
| Status: | New | Start date: | 2009-10-09 | |
|---|---|---|---|---|
| Priority: | Low | Due date: | ||
| Assignee: | - | % Done: | 0% | |
| Category: | I18n | |||
| Target version: | - | |||
| Affected version: | Resolution: |
Description
Changing the user's interface language does not affect the xml:lang attribute value of the "html" tag.
Redmine tells the browser that the content is always English, although it's actually not. This way, services such as spell checking, tts, etc can't function correctly for languages other than English.
Redmine should set the xml:lang attribute according to the current user's language setting.
History
#1 Updated by Jean-Philippe Lang over 3 years ago
- Priority changed from Normal to Low
#2 Updated by Toshi MARUYAMA about 2 years ago
- Category set to I18n
#3 Updated by luigifab ! 11 months ago
Problem still present in redmine 1.4.3, so I can't determine page language with JavaScript.
Is there another way to find page language?
In app/views/layouts/base.html.erb, just replace line 2 by <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<%= Setting.default_language %>">.