system-config-printer-applet-kde in KDE 4.1
Chusslove Illich
caslav.ilic at gmx.net
Fri Apr 11 22:33:51 BST 2008
> [...] I've now ported it to use KDE's i18n.
Well, kind of, but in a "strange" way :) Most importantly, the i18n problems
still remain: no plural calls, %<char> format directives.
I've explained in the prev-prev email how to fix this if using pure Gettext:
_n() call for plurals, $(foo) map-replacement for the variables.
Really using KDE i18n would entail replacing e.g.:
text = i18n("Printer '%s': '%s'.") % (self.get_printer (),
self.get_reason ())
with:
text = ki18n("Printer '%1': '%2'.").subs(self.get_printer ())
.subs(self.get_reason ()).toString ()
at least if the binding works as it seems to me.
(By the way, scripting language bindings probably cannot export template
calls unless explicitly specialized somewhere?)
--
Chusslove Illich (Часлав Илић)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080411/27212f32/attachment.sig>
More information about the kde-core-devel
mailing list