Preparing the GUI for internationalization
In this recipe, we will prepare our GUI for internationalization by realizing that not all is as easy as could be expected when translating English into foreign languages.
We still have one problem to solve and that is how to properly display non-English Unicode characters from foreign languages.
One might expect that displaying the German ä, ö, and ü Unicode umlaut characters would be handled by Python 3 automatically, but this is not the case.
Getting ready
We will continue to use the Python GUI we developed in recent chapters. First, we will change the default language to German in the GUI.py
initialization code.
We do this by uncommenting the line self.i18n = I18N('de')
.
How to do it...
When we change the ...
Get Python GUI Programming Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.