Sampo Hippeläinen <[email protected]> added the comment:
>Tk does not provide localized [Ok] and [Cancel] buttons.
This is not true. You can call ::msgcat::mc to localize core strings such as
"OK" and "Cancel".
The full tk.call becomes
tk.call("namespace", "eval", "::tk", "::msgcat::mc", s)
to translate a string s, such as "OK".
I have made a custom modified version of simpledialog.py that makes use of this
and indeed localizes the OK/Cancel buttons as they would be localized for tk
messageboxes (which use Tcl/Tk Core localization). I submitted this now as a
GitHub PR.
----------
nosy: +sampo.hippelainen
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue31613>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com