|
From: Kevin A. <al...@se...> - 2002-01-20 19:42:54
|
Just as a test, someone could provide me with the translated text for
minimal.rsrc.py (the full resource file is shown below).
The only items below which need to be changed are:
'title':'Minimal PythonCard Application',
'label':'File',
'label':'E&xit\tAlt+X' } ] }
'text':'Hello PythonCard' },
Do not change the attribute names: 'title', 'label', 'text'
Obviously, it won't be possible to translate some of the words above using
7-bit ASCII, but maybe it doesn't matter because on the platform where the
appropriate encoding is set the 8-bit ASCII or Unicode would appear
correctly because the right character encoding is already being used? That's
one of my open questions on how all this should work. If you're programming
in Python in French or Russian or German or Japanese or whatever, what do
the strings look like in your source? I'm obviously pretty ignorant in these
matters.
The minimal.py source doesn't need to change at all since it doesn't deal
with any other strings, date, currency, etc.
Anyway, if someone wants to send me some translations for the text above for
each language/country you know that would be a start. Alternatively, make
copies of the minimal.rsrc.py file and add .fr, .fr_CH, .fr_BE... to the
filenames, though in the case of this sample, probably only .fr would be
needed for a French translation; and PythonCard would still be PythonCard,
at least in Western European languages. Zip the modified resource files and
send the zip to me. Also, please run:
>>> import locale
>>> locale.setlocale(locale.LC_ALL, '')
'English_United States.1252'
>>> locale.getdefaultlocale()
('en_US', 'cp1252')
on your system and let me know the results including what OS (Linux, Windows
95/98/ME/NT 4/2000/XP) you're using. I'll mod the framework to load the
appropriate resource file based on what getdefaultlocale() returns, so we'll
have a straw man implementation.
ka
---
minimal.rsrc.py:
{ 'stack':{ 'type':'Stack',
'name':'Minimal',
'backgrounds':
[
{ 'type':'Background',
'name':'bgMin',
'title':'Minimal PythonCard Application',
'size':( 200, 100 ),
'menubar':
{
'type':'MenuBar',
'menus':
[
{ 'type':'Menu',
'name':'menuFile',
'label':'File',
'items': [
{ 'type':'MenuItem',
'name':'menuFileExit',
'label':'E&xit\tAlt+X' } ] }
]
},
'components':
[
{ 'type':'TextField',
'name':'field1',
'position':(0, 0),
'text':'Hello PythonCard' },
]
}
]
}
}
|