translation string loggin
Heiko.Evermann at gmx.de
Tue Jun 1 14:27:55 BST 2004
> the South African project translate.co.za that translates a lot of OSS to
> local languages is complaining about this:
> Apparently, gettext has an option to log all attempted translations to a
> while a program is running. They use this to prioritise translations. It
> seems KLocale doesn't offer such feature. Or am I wrong?
> Is there any way at all to achieve such a thing with KDE?
AFAIK there is none yet. However all calls to i18n pass through a routine
KLocale::translation_priv, where on could log everything that has not been
found. This cannot be done directly by using gettext output, as KLocale
considers more than one catalog: appname.mo, kdelibs.mo and kio.mo (and when
I get my language fall-back running it will do so for all languages that the
user has selected.)
When the routine translate_priv fails to find a translation, one could log
that in any way we would like to implement that. What kind of logging would
You prefer? How would You switch that on and off? KControl? Command line
One could even collect all translations that have not been found in a hashed
string array, so that upon end of the program one could give a sorted
"Sie haben neue Mails!" - Die GMX Toolbar informiert Sie beim Surfen!
Jetzt aktivieren unter http://www.gmx.net/info
More information about the kde-core-devel