Bug 2355246 - markup should specify lang for language list entries
Summary: markup should specify lang for language list entries
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda-webui
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Katerina Koukiou
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-03-27 05:29 UTC by Jens Petersen
Modified: 2025-03-30 00:16 UTC (History)
6 users (show)

Fixed In Version: anaconda-webui-31-1.fc42
Clone Of:
Environment:
Last Closed: 2025-03-30 00:16:59 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jens Petersen 2025-03-27 05:29:22 UTC
For some languages like CJK (Chinese/Japanese/Korean, but also Arabic I believe) the font that should be used to render text depends on the language.

Currently the new web installer is using Chinese font to render all CJK languages.
In particular Japanese, but also for Korean and Taiwan etc.


Reproducible: Always

Steps to Reproduce:
1. boot up current F42 Workstation installer
2. turn on inspector with Ctrl+Shift+c
3. focus on language like Japanese (see above)
Actual Results:  
Noto CJK SC (Simplified Chinese) font is used for all CJK languages (locales).

Expected Results:  
Noto CJK JP should be used for Japanese
Noto CJK KR should be used for Korean
Noto CJK TW should be used for Taiwan
Noto CJK HK should be used for Hong Kong

(and Noto CJK SC should be still be used for China)

The text entries in the language selection should have a lang attribute set.
eg The Japanese entry should be 

<div id="language-item" lang="ja"><span>日本語 (日本)</span></div>

Similarly for Taiwan Chinese it should be:

<div id="language-item" lang="zh-tw"><span>繁體中文 (台灣)</span></div>

Note that HTML (web) langs/locales are different to Glibc locales (xx-yy not xx_YY).

It should be quite safe to have the lang attribute for all listed languages.

This is a regression compared to the old gtk installer.

Comment 1 Jens Petersen 2025-03-27 05:35:00 UTC
Furthermore the lang attribute should also be set for all text following the language selection.

So that Japanese installation continues to use the Japanese font for it's text.
eg Back/Forward buttons should have the lang tag, but all of the other text.

Comment 2 Jens Petersen 2025-03-27 05:36:41 UTC
If needed I can attach a screenshot or two to make it clearer.

Comment 3 Katerina Koukiou 2025-03-28 08:32:11 UTC
Upstream fix: https://github.com/rhinstaller/anaconda-webui/pull/738

Comment 4 Fedora Update System 2025-03-28 14:39:20 UTC
FEDORA-2025-900bb2b163 (anaconda-42.27.10-1.fc42 and anaconda-webui-31-1.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-900bb2b163

Comment 5 Fedora Update System 2025-03-29 01:31:56 UTC
FEDORA-2025-900bb2b163 has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-900bb2b163`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-900bb2b163

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2025-03-30 00:16:59 UTC
FEDORA-2025-900bb2b163 (anaconda-42.27.10-1.fc42 and anaconda-webui-31-1.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.