PATCH: i18nc not working under windows

Patrick Spendrin ps_ml at gmx.de
Mon Nov 10 18:24:36 GMT 2008


Hi all,

even though this patch doesn't change anything for most of you, I'd like
to hear your thoughts about it.
The current situation is that i18nc() doesn't work on windows because it
uses dcgettext(domain, msg, LC_MESSAGES) rather than dgettext(domain,
msg) which is used by i18n(). The above two gettext calls are thought to
be equivalent according to the gettext manpage. On Windows the dcgettext
call doesn't work because LC_MESSAGES is not defined correctly.
The attached patch replaces the dcgettext calls with dgettext ones; it
could be even used everywhere (so I could remove the ifdefs) as the
category is not used in the kcatalog.cpp code anyway.

regards,
Patrick

-- 
web:                 http://windows.kde.org
mailing list:        kde-windows at kde.org
irc:                 #kde-windows (irc.freenode.net)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kcatalog-i18nc-dcgettext_expr.diff
Type: text/x-patch
Size: 2489 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20081110/5bdd1c35/attachment.bin>


More information about the kde-core-devel mailing list