Bug 467556

Summary: [jp.kde.org] JKUG website displays wrong kanji variants
Product: [Websites] www.kde.org Reporter: Nagy Tibor <xnagytibor>
Component: generalAssignee: Jumpei Ogawa <phanective>
Status: RESOLVED FIXED    
Severity: normal CC: kde-www, phanective, phu.nguyen
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: All   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Nagy Tibor 2023-03-19 05:54:15 UTC
SUMMARY
The Japanese KDE Users' Group website at https://jp.kde.org/ doesn't properly specify its content language as Japanese. This leads to kanji characters falling back to their default variants, which is simplified Chinese in this case.

All that needs fixing is the lang attribute on the root HTML element of the website:
<html lang="en"> --> <html lang="ja">
Comment 1 Jumpei Ogawa 2023-03-19 06:32:52 UTC
Thanks for reporting.
I will fix it.
Comment 2 Jumpei Ogawa 2023-04-22 03:42:18 UTC
We use the common theme developed by the KDE web team, and I found I need to switch from the common theme to the dedicated theme for us.
Unfortunately, it needs time to replace the theme.
Comment 3 Phu H. Nguyen 2023-04-22 20:10:39 UTC
In Jekyll you can override theme defaults https://jekyllrb.com/docs/themes/#overriding-theme-defaults.

It's pretty likely that https://invent.kde.org/websites/jekyll-kde-theme/-/blob/master/_layouts/default.html#L2 is where the `lang="en"` attribute is set. So I think you can just copy that `default.html` file to https://invent.kde.org/websites/jp-kde-org/-/tree/master/_layouts, then change the `lang` attribute.
Comment 4 Jumpei Ogawa 2023-04-24 14:12:10 UTC
Thanks, I will check and fix it.
Comment 5 Jumpei Ogawa 2023-04-30 09:41:37 UTC
Opened an MR for aether-jekyll-theme to resolve this bug:
https://invent.kde.org/websites/jekyll-kde-theme/-/merge_requests/16
Comment 6 Jumpei Ogawa 2023-05-11 11:41:26 UTC
I've fixed `<html lang>` and deployed the fix on jp.kde.org. Closing.
If there are still any problems, feel free to reopen this bug.