[spambayes-bugs] [ spambayes-Patches-1052816 ] I18N

SourceForge.net noreply at sourceforge.net
Fri Mar 9 00:31:02 CET 2007


Patches item #1052816, was opened at 2004-10-24 02:44
Message generated for change (Comment added) made by mhammond
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498105&aid=1052816&group_id=61702

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Outlook
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Hernan Foffani (hfoffani)
Assigned to: Tony Meyer (anadelonbrin)
Summary: I18N

Initial Comment:
Here goes my first patches for the Outlook addin I18N.

The patches in Outlook2000\dialogs\resources change 
the parser to output gettexted captions and labels.


----------------------------------------------------------------------

>Comment By: Mark Hammond (mhammond)
Date: 2007-03-09 10:31

Message:
Logged In: YES 
user_id=14198
Originator: NO

The last comments imply this is all checked in, so therefore fixed. 
Please reopen if this is not the case.

Thanks!

----------------------------------------------------------------------

Comment By: Tony Meyer (anadelonbrin)
Date: 2004-11-03 08:52

Message:
Logged In: YES 
user_id=552329

Note: checked in initial patches to CVS Head.

----------------------------------------------------------------------

Comment By: Hernan Foffani (hfoffani)
Date: 2004-10-30 04:43

Message:
Logged In: YES 
user_id=112690

Yes, you need the _() around "Help". I knew I've forgotten 
something...
My current addin.py and manager.py have many messages 
gettexted but the code is far from complete so I reverted 
those to the minimun.

Configuring the language in the main options is better, yes. 
Thanks.

Don't check the patches in yet.  I'm going to test sb_server 
very soon to double check if there are problems with the 
designed framework on other SB programs besides the Outlook 
addin.


----------------------------------------------------------------------

Comment By: Tony Meyer (anadelonbrin)
Date: 2004-10-29 12:06

Message:
Logged In: YES 
user_id=552329

I'm happy to check in what's done so far, if you are.  That
way it's easy for the other developers (most are using CVS
HEAD, I think) to try it out too.

----------------------------------------------------------------------

Comment By: Tony Meyer (anadelonbrin)
Date: 2004-10-29 12:02

Message:
Logged In: YES 
user_id=552329

The "Help" menu & submenus need addin.py to be converted to
use '_()', too, right?  (It didn't work before then, but did
afterwards).  Apart from that, looks great.

I would like the option to be in the main options file -
otherwise there will be one there and one for Outlook, and
there are too many options like that already.  Attached are
revised patches that do that.

----------------------------------------------------------------------

Comment By: Hernan Foffani (hfoffani)
Date: 2004-10-28 20:27

Message:
Logged In: YES 
user_id=112690

Sure. I upload "es" and "es_AR". I translated the "Help" menu 
and submenus and the first tab of the manager dialog window.
If you set your "International Settings" for Spanish-Argentina 
(Español-Argentina) you'll see that "Help" is translated 
as "Ashuda". If you set your "International Settings" for 
Spanish-Spain (Español-España) you'll see that "Help" is now 
spelled as "Ayuda" (the y-sh difference was a local pun.)
Given that there is no "es_ES" directory yet, Spanish-Spain 
fallbacks to "es".

You can also try to set to, for instance, French-France which 
will fallback to the embedded english.

Besides configuring through "International Settings", you can 
also set the language in SB's outlook .ini.  Do it in General 
section, language variable like:
[General]
language: fr_FR

Regarding "license" well.. that's a strong word for my code. Do 
whatever you like with it. Consider it in public domain.

ah... unzip the file under the spambayes directory.


----------------------------------------------------------------------

Comment By: Tony Meyer (anadelonbrin)
Date: 2004-10-28 13:46

Message:
Logged In: YES 
user_id=552329

These look good to me.  Do you have any translations
done/partly done, so I could see how it all goes?

BTW, could you confirm that you're fine donating this code
to the SpamBayes project, to be licensed under the PSF licence?

----------------------------------------------------------------------

Comment By: Hernan Foffani (hfoffani)
Date: 2004-10-24 03:26

Message:
Logged In: YES 
user_id=112690

Outlook2000.txt patch file modifies config.py to add 
a "language" user var and modifies manager.py adding calls to 
the LanguageManager class.
The first calls set the language to the default system one.
The second call set the language to the one that is 
configured in the SB config file.


----------------------------------------------------------------------

Comment By: Hernan Foffani (hfoffani)
Date: 2004-10-24 03:20

Message:
Logged In: YES 
user_id=112690

i18n.py contains the class that I use to initialize the 
internationalization environment. That is: gettext and 
sys.path.

i18n.py should be in the Outlook2000 directory.


----------------------------------------------------------------------

Comment By: Hernan Foffani (hfoffani)
Date: 2004-10-24 02:58

Message:
Logged In: YES 
user_id=112690

The patch for Outlook2000\dialogs\__init__.py lets SB import 
a foreign language i18n_dialogs.py file.
To better distinguish with the default dialogs.py in the official 
distribution, the new transalated dialogs will be prefixed 
by "i18n_".
__init__.py assumes that SB already has a modified sys.path 
that points to the correct language resources.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498105&aid=1052816&group_id=61702


More information about the Spambayes-bugs mailing list