about translations

Takashi Yamamiya tak at metatoys.org
Tue Mar 14 05:36:21 UTC 2006


Hi Alberto,

> The remaining problem i'm facing right now it's the slow down of the 
> image when a language editor is open (after installing my backport 
> changesets). I tried to profile LanguageEditor's execution, but still 
> without any real success due to my poor knowledge of all the m17n 
> infrastructure which involves some very important pieces of code of the 
> image ( stuff around String class implementation, charset 
> decoders/encoders and so on). One problem that i've encountered while 
> debugging the slow down is that it doesn't happen as soon as a new 
> LanguageEditor is istantiated but some seconds after that. Maybe it is 
> some code started by some kind of timer, but i haven't any insight.

I post a patch for speed up. Your Language Editor might become
surprisingly faster. But this code is less tested, and please beware
it.

> However, now i do use LanguageEditor just to import from gettext so i 
> don't  need it to be always opened, i kill it as soon as the import 
> process ends.

I think this is a smart way to make translations.

> Another minor problem is that gettext files are exported encoded in 
> iso-8859-1 ( for my language, italian) i would be much better to have 
> them exported as utf-8 files, but i still don't have figured out how to 
> do that.

Maybe I can try it next weekend.

Cheers,
- Takashi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fastLanguageEditor-tak.cs.gz
Type: application/x-gzip
Size: 2171 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20060313/7df36c06/fastLanguageEditor-tak.cs.bin


More information about the Squeak-dev mailing list