Bug 467556 - [jp.kde.org] JKUG website displays wrong kanji variants
Summary: [jp.kde.org] JKUG website displays wrong kanji variants
Status: RESOLVED FIXED
Alias: None
Product: www.kde.org
Classification: Websites
Component: general (show other bugs)
Version: unspecified
Platform: unspecified All
: NOR normal
Target Milestone: ---
Assignee: Jumpei Ogawa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-19 05:54 UTC by Nagy Tibor
Modified: 2023-05-11 11:41 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.