List Info

Thread: i18n works very well :-)




i18n works very well :-)
user name
2006-08-26 20:12:58
Hi all

I just published a new version of KScannerButtons 
(http://jice.free
.fr/KScannerButtons/) with i18n enabled 

Thanks to the list archive (so thank you all) I found the
right docs and tools 
and it works like a charm.
I used:
*htt
p://websvn.kde.org/branches/KDE/3.5/kdewebdev/kommander/work
ing/translating.txt?rev=438982&view=markup
*http://websvn.kde.org/bran
ches/KDE/3.5/kdewebdev/kommander/working/?rev=438982#dirlist
 
(for the programs to use)
* Kbabel

One little thing I figured out is that the .mo file must be
named 
KScannerButtons.mo and not KScannerButtons.kmdr.mo. I write
it here for 
future searches of i18n noobs like me ;)

For extraction of strings, I had one little problems with
constructs like
Message.info("first line\ni18n(string to translate)")
xgettext won't extract the "string to
translate" because i18n is inside a 
string.
So I replaced with:
setGlobal(msg, i18n("string to translate"))
Message.info("first line\nglobal(msg)")
and it works 

Thanks again Michal for Kommander !

-- 
Jean-Christophe "Jicé" Cardot - cofondateur de
http://lea-linux.org
_______________________________________________
Kommander mailing list
Kommanderkdewebdev.org

http://mail.kdewebdev.org/mailman/listinfo/kommander
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )