[dolphin] [Bug 488088] Missing translation for week days and months
bugzilla_noreply at kde.org
bugzilla_noreply at kde.org
Mon Aug 19 16:56:11 BST 2024
https://bugs.kde.org/show_bug.cgi?id=488088
fanzhuyifan at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fanzhuyifan at gmail.com
--- Comment #2 from fanzhuyifan at gmail.com ---
(In reply to Jérôme L from comment #1)
> If this issue is about labels when grouping by date, then I am facing the
> same issue in French (LANG=fr_FR.UTF-8).
>
> STEPS TO REPRODUCE
> 1. Open Dolphin in another language than English
> 2. 3. Open "Recent Locations" or "Recent Files"
> or
> 2. Menu > View > Show in groups
> 3. Sort by date
> 4. Relative dates are translated/translatable (Today, Yesterday, One Week
> Ago)
> 5. Day/month are not (Wednesday, July ...)
>
> SOLUTION
> The issue is coming from KFileItemModel::timeRoleGroups
> https://invent.kde.org/system/dolphin/-/blob/master/src/kitemviews/
> kfileitemmodel.cpp?ref_type=heads#L2410
> According to Qt documentation, QDateTime::toString always format in English
> https://doc.qt.io/qt-6/qdatetime.html#toString-1.
> Creating `QLocale locale;` then using `locale.toString(fileTime, ...);`
> solve this (1 line added, and 13 lines changed).
> I am looking for how to contribute those changes.
>
> SOFTWARE/OS VERSIONS
> KDE Plasma Version: 6.1.3
> KDE Frameworks Version: 6.4.0
> Qt Version: 6.7.2
> Dolphin Version: 24.05.2
https://community.kde.org/Get_Involved/development
You are welcome to submit a MR on gitlab.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the kfm-devel
mailing list