Bug 415181

Summary: Wrong language code in docs.kde.org URL
Product: [Websites] docs.kde.org Reporter: Alexander Potashev <aspotashev>
Component: docs.kde.orgAssignee: Documentation Editorial Team <kde-doc-english>
Status: REOPENED ---    
Severity: normal CC: a.samirh78, davidbryant, luigi.toscano
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Alexander Potashev 2019-12-14 23:49:37 UTC
SUMMARY
Wrong language code in docs.kde.org URL: "ru_RU" for Russian, the site expects "ru".

STEPS TO REPRODUCE
1. Run KTimeTracker
2. Press F1 (for Help -> KTimeTracker Handbook)

OBSERVED RESULT
Web browser opens with URL:
https://docs.kde.org/index.php?branch=stable5&language=ru_RU&application=ktimetracker&path=/

EXPECTED RESULT
Should be e.g.
https://docs.kde.org/index.php?branch=stable5&language=ru&application=ktimetracker&path=/

The language code format "ru_RU" is not supported by docs.kde.org.

SOFTWARE/OS VERSIONS
Windows: 10
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Apparently QLocale().name() returns "ru_RU" on Windows, see kguiaddons.git/src/util/urlhandler.cpp.
Comment 1 Ahmad Samir 2021-06-13 18:26:21 UTC
The server handles non-existing locales by falling back to "en"; I think the issue here is that ktimetracker doesn't have docs for the "stable" branch (or something like that).

E.g. try with:
https://docs.kde.org/index.php?branch=stable5&language=ru_RU&application=kmail2
Comment 2 David C. Bryant 2021-06-13 21:13:28 UTC
The Windows version of ktimetracker does not support translations. https://apps.kde.org/ktimetracker/
Comment 3 Luigi Toscano 2021-06-13 21:18:47 UTC
There is no reason for the window version of ktimetracker to not support translations (maybe there are not shipped? But that's a different story).

This is a different bug though.
Comment 4 Alexander Potashev 2021-09-26 14:19:48 UTC
Re: comment #2, there's an official Windows installer, however it's not linked at https://apps.kde.org/ktimetracker/ . Filed https://bugs.kde.org/show_bug.cgi?id=442984 for this.