|
From: Kevin A. <al...@se...> - 2002-01-22 19:34:01
|
Francois sent along this note with a localized French addresses resource
file and some nice screen shots of the addresses sample running in French.
I'm not going to check this file into cvs, but French users can save it to
their addresses sample directory and use it.
There is a logic problem in the addresses.py source that I need to
"internationalize" before the "Show Notes/Hide Notes" button will work
correctly.
def on_showNotes_command(self, target, event):
if target.label == 'Show Notes':
self.components.Notes.visible = 1
target.label = 'Hide Notes'
else:
self.components.Notes.visible = 0
target.label = 'Show Notes'
I can't remember exactly why I did the toggle that way rather than just
looking at the visible flag of the Notes field, so until I sit down and go
over the code again I'm not going to change it. Obviously, the string
comparison above won't work correctly with non-English text. This is
probably one of those situations where string resources are needed.
I was planning to expand the addresses layout so that the Notes were always
visible, so in that case the problem goes away entirely; there will no
longer be a Show Notes button.
The addresses sample shows that any standard dialogs we provide such as the
Find dialog need to have localized versions as part of the standard
distribution. I'm assuming that the native dialogs which are shown by the
dialogs sample use the native OS dialog and thus are already localized? The
text in the dialogs supplied by the source would still be in English.
ka
-----Original Message-----
From: Frangois Granger
Sent: Tuesday, January 22, 2002 10:18 AM
To: Kevin Altis
Subject: It is great and easy....
I guess that you will know what to do with the enclosed...
(direct from my office PC with Windows 2000 fr)
|