Project

General

Profile

Actions

Defect #4009

closed

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

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

Added by Thomas Schneider about 17 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Low
Assignee:
-
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 1 (0 open — 1 closed)

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

Updated by Jean-Philippe Lang about 17 years ago Actions #1

  • Priority changed from Normal to Low

Updated by Toshi MARUYAMA over 15 years ago Actions #2

  • Category set to I18n

Updated by luigifab ! over 14 years ago Actions #3

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 13 years ago Actions #4

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

Updated by Filou Centrinov over 13 years ago Actions #5

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

Also available in: PDF Atom