Bug 225142 - Wrong display of user defined date
Summary: Wrong display of user defined date
Status: RESOLVED NOT A BUG
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: 1.12.4
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-01 14:28 UTC by crptdngl71
Modified: 2010-02-27 16:02 UTC (History)
1 user (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 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>