diff options
author | Mike FABIAN <mike.fabian@basyskom.de> | 2010-10-14 19:12:25 +0200 |
---|---|---|
committer | Mike FABIAN <mike.fabian@basyskom.de> | 2010-10-15 17:06:58 +0200 |
commit | ee483b3faaa28623904b5800cc064a7e58d719f0 (patch) | |
tree | 7e663171edb940223c4feb3ce030d3a83e764575 /src/corelib/i18n/mlocale.cpp | |
parent | cf771013ea7b0da91b8f99639c141311487a4f9d (diff) |
Changes: make POSIX date and formats %A and %B use the stand-alone forms
RevBy: Berthold Krevert
Details:
“stand-alone” means that for example for “Thursday” in Finnish
“torstai” is returned and not the inflected form “torstaina” and
for “Oktober” in Finnish “lokakuu” is returned and not the
inflected form “lokakuuta”.
This makes it the same as the behaviour of these format specifiers
on a standard desktop Linux system:
mfab@mars:~
$ LANG=fi_FI.UTF-8 date
to 14.10.2010 19.11.46 +0200
mfab@mars:~
$ LANG=fi_FI.UTF-8 date +%A
torstai
mfab@mars:~
$ LANG=fi_FI.UTF-8 date +%B
lokakuu
mfab@mars:~
$
Diffstat (limited to 'src/corelib/i18n/mlocale.cpp')
-rw-r--r-- | src/corelib/i18n/mlocale.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/corelib/i18n/mlocale.cpp b/src/corelib/i18n/mlocale.cpp index 94889b2c..3aea4c1c 100644 --- a/src/corelib/i18n/mlocale.cpp +++ b/src/corelib/i18n/mlocale.cpp @@ -2108,23 +2108,23 @@ QString MLocale::formatDateTime(const MCalendar &mCalendar, case 'a': // abbreviated weekday name - icuFormat.append("EEE"); + icuFormat.append("ccc"); break; case 'A': - // full weekday name - icuFormat.append("EEEE"); + // stand-alone full weekday name + icuFormat.append("cccc"); break; case 'b': case 'h': // abbreviated month name - icuFormat.append("MMM"); + icuFormat.append("LLL"); break; case 'B': // full month name - icuFormat.append("MMMM"); + icuFormat.append("LLLL"); break; case 'c': { |