Vote #73983
完了Synchronize the lang attribute of the HTML with the display language
0%
説明
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