[PATCH] Declension of month names in dates
Jacek Stolarczyk
jacek at mer.chemia.polsl.gliwice.pl
Fri Aug 16 02:10:32 BST 2002
Hi,
Why is it needed:
Current framework does not allow to write a proper date in long format in many
languages.
What the patch does:
1) adds the ability to specify whether you want possessive forms of month
names in dates ("of January" instead of "January"). In many languages (like
Polish and Czech) it cannot be done even by concatenating "of" and month name
2) KLocale part is controlled by two keys (l10n/XX/entry.desktop):
NounDeclension - general, grammar related, specifies whether nouns decline,
default is false
DateMonthNamePossessive - whether possessive forms are used
3) adds needed functions to KLocale, extends formatDate and readDate (reading
is less strict, both possessive and not-possessive forms are recognized)
4) adds a checkbox in Date&Time control module. This chcekbox is visible only
for languages which have "NounDeclension" set to true in
l10n/XX/entry.desktop
5) removes "for" loops used unnecessarily in readDate, replaced by "while"
Usage of showEvent is possible a little weird, but moving that part to
constructor didn't work.
Please, test it. The patch assumes that possessive forms of month names can be
used only for languages in which nouns decline. That may be wrong, so please,
notify me, I'll try to modify it accordingly.
I'll wait at least until Monday, before committing it to CVS.
Regards,
Jacek Stolarczyk
--
jstolarz at kde.org
Coordinator of Polish translations of KDE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kloc.diff
Type: text/x-diff
Size: 7567 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20020816/6896178d/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kloctim.diff
Type: text/x-diff
Size: 4088 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20020816/6896178d/attachment-0001.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: l10npl.diff
Type: text/x-diff
Size: 455 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20020816/6896178d/attachment-0002.diff>
More information about the kde-core-devel
mailing list