[spambayes-dev] State of I18N

Hatuka*nezumi hatukanezumi at users.sourceforge.net
Fri Oct 22 07:28:11 CEST 2004

On Thu, 21 Oct 2004 12:56:24 +0200

> Let's suppose that rcparser can detect the resource
> code_page.  A translator could draw the dialogs with their
> captions and labels in a resource editor of her choice.  If
> this editor writes the correct code_page in the new dialogs.rc
> file the parser could pick up the pragma and decode the strings
> accordingly.  The next step, dumping the dict to a .py by rc2py,
> would need to mark that .py with the corresponding encoding
> declaration or dump it in utf-8.  During runtime SB would
> import such .py with the correct encoding.
> The rest of the strings to be translated (the string literals
> in SB python source code) goes through gettext.  The translator
> should specify in the messages table file which encoding she's
> using.  I guess that it may even differ from the one used in
> dialogs.rc

My posts are a bit confusing, sorry.  If rcparser.py supports 
code_page pragma, I think your approach will work.

> Could this scheme work?

I agree.

  --- nezumi

More information about the spambayes-dev mailing list