Actions
Defect #4009
closed"html" tag's xml:lang always "en" for all languages
Status:
Closed
Priority:
Low
Assignee:
-
Category:
I18n
Target version:
-
Start date:
2009-10-09
Due date:
% Done:
0%
Estimated time:
Resolution:
Duplicate
Affected version:
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.
Related issues
Updated by Jean-Philippe Lang about 15 years ago
- Priority changed from Normal to Low
Updated by luigifab ! over 12 years 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 %>">
.
Updated by Filou Centrinov over 11 years ago
- Is duplicate of Defect #14206: Synchronize the lang attribute of the HTML with the display language added
Updated by Filou Centrinov over 11 years ago
- Status changed from New to Closed
- Resolution set to Duplicate
Actions