Bug 225142

Summary: Wrong display of user defined date
Product: [Applications] kmail Reporter: crptdngl71
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED NOT A BUG    
Severity: normal CC: kollix
Priority: NOR    
Version: 1.12.4   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description crptdngl71 2010-02-01 14:28:55 UTC
Version:           1.12.4 (using 4.3.4 (KDE 4.3.4), Debian packages)
Compiler:          cc
OS:                Linux (x86_64) release 2.6.32-6.slh.4-sidux-amd64

- Open kmail settings.

- select "Erscheinungsbild" ("Appearance")

- open tab "Nachrichtenliste" ("Messagelist").

I am using a userdefinded format for the date settings:

ddd., dd.MM.yyyy - hh:mm'h'

According to the quickhelp for the shortcuts...
ddd should result in a three letter shortcut of the day, but I get a two letter day with an ending dot.

So instead of Mon for Monday I get Mo. which is wrong. Additionally, I get an extra dot in the date display, so for the above format code I get (example):

Mo.., 01.02.2010 - 06:38h

which apart from the day is correct.

The messagelist and the preview of a message are affected by this minor bug. Maybe this is related to German localization only.
Comment 1 crptdngl71 2010-02-01 14:44:15 UTC
Just checked my KDE settings for "Land/Region & Sprache" ("Land/Region & Language").

Seems that kmail can only use placeholders for date that are defined in the local KDE settings. Rechecking that I could solve the additional dot bug, but still ddd gives me "Mo" instead of "Mon".

I wonder if ddd is simply meant do display the short name of the day (word, not numbers) whereas dddd gives the full name of the day.
Comment 2 Martin Koller 2010-02-27 16:02:04 UTC
> According to the quickhelp for the shortcuts...
> ddd should result in a three letter shortcut of the day

This is a misinterpretation. The quickhelp just gives an example.
The meaning is: you get an abbreviated string of the day name.
I'm pretty sure not every language can guarantee a 3 letter abbreviation (think: chinese, ...)

Qt uses the definitions from http://cldr.unicode.org
In the Qt sources there is the file locale.xml, and for e.g. Germany it includes:
 <shortDays>So.;Mo.;Di.;Mi.;Do.;Fr.;Sa.;</shortDays>