プロジェクト

全般

プロフィール

Vote #73983

完了

Synchronize the lang attribute of the HTML with the display language

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
I18n_37
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
37
version_id:
70
issue_org_id:
14206
author_id:
55767
assigned_to_id:
0
comments:
11
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

Currently, lang attribute of HTML is specified "en" always regardless of the display language.


journals

I made patch.
It gets the value of the lang attribute from I18n.locale.

Just in case, I made ​​sure the existing locales conform to BCP 47 by the following tool.

http://schneegans.de/lv/
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Redmine defines wrapper "current_language".
source:tags/2.3.1/lib/redmine/i18n.rb#L111
--------------------------------------------------------------------------------
This is a patch with tests.

--------------------------------------------------------------------------------
I appreciate all your help.
At the same time, please forgive my ignorance.

However, I think that should put double quotes around the value of the lang attribute.
I made ​​sure no problem otherwise.
--------------------------------------------------------------------------------
Sorry, this is a patch with double quotes.
--------------------------------------------------------------------------------
Thank you very much indeed!
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------


related_issues

duplicates,Closed,4009,"html" tag's xml:lang always "en" for all languages

Admin Redmine さんが3年以上前に更新

  • カテゴリI18n_37 にセット
  • 対象バージョン2.4.0_70 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0