Defect #4009

"html" tag's xml:lang always "en" for all languages

Added by Thomas Schneider about 8 years ago. Updated over 4 years ago.

Status:ClosedStart date:2009-10-09
Priority:LowDue date:
Assignee:-% Done:

0%

Category:I18n
Target version:-
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

Duplicates Redmine - Defect #14206: Synchronize the lang attribute of the HTML with the displ... Closed

History

#1 Updated by Jean-Philippe Lang almost 8 years ago

  • Priority changed from Normal to Low

#2 Updated by Toshi MARUYAMA over 6 years ago

  • Category set to I18n

#3 Updated by luigifab ! over 5 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 %>">.

#4 Updated by Filou Centrinov over 4 years ago

  • Duplicates Defect #14206: Synchronize the lang attribute of the HTML with the display language added

#5 Updated by Filou Centrinov over 4 years ago

  • Status changed from New to Closed
  • Resolution set to Duplicate

Also available in: Atom PDF