Bug 467325 - Bad translated date format in tooltip
Summary: Bad translated date format in tooltip
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Digital Clock (show other bugs)
Version: 5.27.2
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
: 469547 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-03-14 11:30 UTC by Philippe ROUBACH
Modified: 2024-04-04 17:28 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.0.4


Attachments
the clock popup window (1.76 MB, image/png)
2023-03-14 11:30 UTC, Philippe ROUBACH
Details
Wrong date in tooltip for Norwegian Nynorsk (164.37 KB, image/png)
2023-07-29 12:01 UTC, Karl Ove Hufthammer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe ROUBACH 2023-03-14 11:30:41 UTC
Created attachment 157268 [details]
the clock popup window

STEPS TO REPRODUCE
1. display the popup windows with the mouse cursor hovering the clock in the bar
2. 
3. 

OBSERVED RESULT

the date format is "mar. mars 14 2023"

EXPECTED RESULT

mardi 14 mars 2023


SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20230312
KDE Plasma Version: 5.27.2
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8
KDE Gears 22.12.3

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2023-03-14 17:36:38 UTC
Have you customized the data at all in the Digital Clock widget?

Does the issue only appear in the hover tooltip, or does it appear in the popup as well? What about when displaying the date in the panel using the "Long date" or "Short date" formats?
Comment 2 Philippe ROUBACH 2023-03-14 17:49:03 UTC
>< Have you customized the data at all in the Digital Clock widget?

No

>> Does the issue only appear in the hover tooltip

Yes

>> What about when displaying the date in the panel using the "Short date" format?

14/03/2023

>> What about when displaying the date in the panel using the "Long date" or "long date" formats?

mardi 14 mars 2023
Comment 3 Nate Graham 2023-03-16 04:14:05 UTC
Thanks. I'll look into it soon.
Comment 4 Nate Graham 2023-04-05 20:42:47 UTC
For some reason, the line of code that contains Qt.formatDate(tzDate, Locale.LongFormat) returns a string that isn't actually the long date, but a shortened version of it. I haven't figured out why that is yet.
Comment 5 Karl Ove Hufthammer 2023-07-29 11:59:55 UTC
I have the same problem, but for Norwegian Nynorsk. The weekday and month names are properly localized, but the order and punctuation is wrong (it looks like it uses the US order). Also, note this happens *only* when there’s more than one timezone configured. I’ll attach a screenshot.


STEPS TO REPRODUCE
1. Configure the digital clock to have at least two time zones. In my example (screenshot) I have Oslo and Aden, and I have my regional settings set to Norwegian Nynorsk.
2. Hover over the clock.


OBSERVED RESULT
A tooltip is shown, and the heading contains a (medium-sized) date, but the date parts are in the wrong order and have the wrong punctuation:
la. juli 29 2023
«la.» is the Norwegian Nynorsk abbreviation for «laurdag» (Saturday), and «juli» is the Norwegian Nynorsk month name for July.


EXPECTED RESULT
For Norwegian Nynorsk, I would expect:
la. 29. juli 2023
or (preferably)
laurdag 29. juli 2023
(note the . after the day.)


ADDITIONAL INFORMATION
If I only have *one* time zone, the date is displayed correctly (but on two lines), in long form:
laurdag
29. juli 2023
Comment 6 Karl Ove Hufthammer 2023-07-29 12:01:47 UTC
Created attachment 160603 [details]
Wrong date in tooltip for Norwegian Nynorsk

The red arrows shows the wrong date format. The two green arrows shows the expected date format (but the weekday need not be abbreviated).
Comment 7 Karl Ove Hufthammer 2023-07-29 12:10:46 UTC
Some additional information:
If I click on the clock to open the calendar, and then click on a date, the date is displayed correctly (in the top-left corner), in long form: laurdag 29. juli 2023
Comment 8 Nate Graham 2024-04-04 03:46:46 UTC
*** Bug 469547 has been marked as a duplicate of this bug. ***
Comment 9 Nate Graham 2024-04-04 03:47:53 UTC
Likely fixed by Albert with https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/4190. Can someone who could reproduce the issue and can build Plasma from source check it out? Thanks a lot!
Comment 10 Philippe ROUBACH 2024-04-04 06:22:22 UTC
Fixed for me. There is no more problem.
Comment 11 Nate Graham 2024-04-04 17:28:31 UTC
Yay!