Project

General

Profile

Actions

Defect #4009

closed

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

Added by Thomas Schneider over 14 years ago. Updated almost 11 years ago.

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

Is duplicate of Redmine - Defect #14206: Synchronize the lang attribute of the HTML with the display language Closed

Actions
Actions #1

Updated by Jean-Philippe Lang over 14 years ago

  • Priority changed from Normal to Low
Actions #2

Updated by Toshi MARUYAMA about 13 years ago

  • Category set to I18n
Actions #3

Updated by luigifab ! almost 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 %>">.

Actions #4

Updated by Filou Centrinov almost 11 years ago

  • Is duplicate of Defect #14206: Synchronize the lang attribute of the HTML with the display language added
Actions #5

Updated by Filou Centrinov almost 11 years ago

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

Also available in: Atom PDF