This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Mac OS dialogs(Save As..., Load) translation
Type: behavior Stage:
Components: macOS, Unicode Versions: Python 2.7
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: ronaldoussoren Nosy List: Pavel.Denisow, gius.dima, ned.deily, ronaldoussoren
Priority: normal Keywords:

Created on 2010-06-08 11:34 by Pavel.Denisow, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
filedialogs_mac.zip Pavel.Denisow, 2010-06-08 11:34
pyqt_getsavefilename.jpg gius.dima, 2010-11-24 18:45 comparison of dialogs to save a file between C++ and Python
Messages (6)
msg107314 - (view) Author: Pavel Denisow (Pavel.Denisow) Date: 2010-06-08 11:34
We have a problem with using native Mac OS dialogs (Save As..., Load) on Russian Mac:
Dialogs are not translated even with file-translation. See attached screenshots.
Same code in Linux works perfect. C++ QT project in Mac has translation in native dialogs.
Test project on python and PyQT contains not-translated dialogs.
For tk and EasyDialogs result is the same - not translated.

Mac OS: 10.5.2, Russian locale.
Python: 2.5.1


PyQt test project
----------------------------------------
from PyQt4 import QtGui, QtCore


app = QtGui.QApplication(sys.argv)

QtGui.QFileDialog().getSaveFileName()
QtGui.QFileDialog().getOpenFileName()

sys.exit(app.exec_())
----------------------------------------




tk test project
----------------------------------------
from tkCommonDialog import Dialog


class OpenDialog(Dialog):
    command = "tk_getOpenFile"
class SaveDialog(Dialog):
    command = "tk_getSaveFile"


OpenDialog().show()
SaveDialog().show()
----------------------------------------



EasyDialogs test project
----------------------------------------
import EasyDialogs

EasyDialogs.AskFileForSave()
EasyDialogs.AskFileForOpen()
----------------------------------------
msg108354 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2010-06-22 10:11
Pavel: does the problem also happen with newer versions of Python?
msg111468 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2010-07-24 12:33
I don't think the Tk framework that is used by Tkinter is actually localized, but I don't know enough of Tcl/Tk to know for sure.

EasyDialogs isn't explicitly localized either, and I guess the system doesn't do automatic localization either because neither the embedded Python.app nor the framework are localized which makes the system assume that they are english only.
msg112916 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2010-08-04 22:46
This should be closed unless there is a verified problem with 2.7 or 3.1.
msg122294 - (view) Author: Giuseppe Di Martino (gius.dima) Date: 2010-11-24 18:45
I'm using Python 2.7, PyQt 4.8.1, qt 4.7.1 on OS X Leopard 10.6.5 and have just the same problem.
In C++ and qt all dialog's messages are in italian, in PyQt dialogs are partially in english.
msg122311 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2010-11-24 20:39
There seem to be several different issues being reported here.  As far as I can tell, the only issue that directly relates to code in the Python standard library is the lack of internationalization for EasyDialogs.  EasyDialogs depends on deprecated OS X Carbon interfaces that do not exist in 64-bit mode.  For that reason, EasyDialogs is itself deprecated and has been removed in Python 3; further, new features are not being added in Python 2.  All the other issues mentioned have to do with 3rd-party packages like Aqua Tk (which as far as I can tell, does not ship with i18n resources for its GUI interfaces like the file dialogs) and PyQt.  Those issues should be pursued with those other projects.
History
Date User Action Args
2022-04-11 14:57:01adminsetgithub: 53184
2010-11-24 20:39:03ned.deilysetstatus: open -> closed

nosy: + ned.deily
messages: + msg122311

resolution: wont fix
2010-11-24 19:12:47terry.reedysetnosy: - terry.reedy
2010-11-24 18:45:43gius.dimasetfiles: + pyqt_getsavefilename.jpg
nosy: + gius.dima
messages: + msg122294

2010-08-04 22:46:45terry.reedysetnosy: + terry.reedy

messages: + msg112916
versions: + Python 2.7, - Python 2.5
2010-07-24 12:33:34ronaldoussorensetmessages: + msg111468
2010-06-22 10:11:00ronaldoussorensetmessages: + msg108354
2010-06-08 11:34:30Pavel.Denisowcreate