Terry J. Reedy added the comment:
Ned> IDLE uses some Tk-supplied default menus and menu items
On Windows and *nix, the visible menu labels all come from IDLE. I don't yet
understand what is going on with Mac menus. Some menu items call the tk file
dialog, and the config
Terry J. Reedy added the comment:
In the last few months, configdialog has been refactored to have a class for
each settings tab. This makes it easier to revise and add new options, such as
'menu language'.
With this done, the IDLE features implemented as (optional)
Terry J. Reedy added the comment:
I just noticed https://pypi.python.org/pypi/idle-lif/1.0 Python IDLE Language
Pack. Have not looked at it.
If someone decides to work on this, I have ideas on how i18n could be done with
minimal impact on the code, partly based on
Terry J. Reedy added the comment:
I presume setting builtins._ is part of imitating the shell. It could be
replace with setattr.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17776
___
Al Sweigart added the comment:
Someone should do a more refined search with an re that excludes '_' preceded
or followed by an identifier char, to skip '__xyz__' or '_x' or 'y_'.
I've run this regex over all the .py and .pyw files in idlelib:
[^_'a-zA-Z0-9]_[^a-zA-Z0-9_]
The only possible
Terry J. Reedy added the comment:
I answered my Q1 in msg187219: test.test_gettest is currently passing, with no
skips, on 2.7 and 3.4 on Win 7.
patch.diff: I would rather add the 4 lines of the proposed idle_i18n.py to an
existing module, perhaps Bindings.py itself, since that is the first
Changes by Al Sweigart asweig...@gmail.com:
--
nosy: +Al.Sweigart
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17776
___
___
Python-bugs-list
Damien Marié added the comment:
A side note to justify the localization of IDLE:
I think the internationalization part is important, It's a nearly invisible
overhead for the code but it will be helpful for example:
- In France, most of the highschool student have to learn python so they learn
Damien Marié added the comment:
Here is a new patch featuring:
_ a setting to disable idle i18n
_ a documentation
Things needed:
_ taking into account Windows (where IDLE is mainly used)
_ a much in-depth translation of the interface: Context-menu, dialogs, ...
_ unit-testing it
To test it by
Roger Serwy added the comment:
Extensions would need to be modified to use the gettext module.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17776
___
Ned Deily added the comment:
Also, IDLE makes use of features provided by Tk and those vary by platform. In
some cases, IDLE uses some Tk-supplied default menus and menu items. So
internationalization of IDLE would need to investigate and make use of Tk i18n
features on all supported
Antoine Pitrou added the comment:
+1 for internationalizing IDLE. Any decent GUI app is internationalized these
days, even developer tools.
Re: gettext, its semantics and API are a bit of a PITA, but it's basically the
standard for internationalization of FLOSS projects. There are all kind of
New submission from Damien Marié:
Following the issue 17760
Internationalization should be implemented.
I propose to implement it as an optionnal settings first. And with the gettext
library.
I'm not experienced with the idlelib module but here is a first patch, don't
hesitate to comment it.
Olivier Berger added the comment:
Excellent. I've started playing with pygettext and msgfmt and it looks like
this works, from the initial tests I've made
--
nosy: +olberger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17776
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti, roger.serwy, terry.reedy
stage: - patch review
versions: +Python 2.7, Python 3.3, Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17776
Terry J. Reedy added the comment:
Whether and how much to internationalize Idle is being discussed on idle-dev
thread I18n of IDLE's interface ?. I was going to suggest there that the menu
system would be the first place to start. A prime concern for me is that we not
break anything (hence
Changes by Todd Rovito rovit...@gmail.com:
--
nosy: +Todd.Rovito
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17776
___
___
Python-bugs-list
17 matches
Mail list logo