Closed Cryspia closed 9 years ago
This fix will only work on certain versions of Python (which is fine for now, but creates an extra task if we ever support a version between 2.7 and 3.3).
Would it be better to use a suggestion from https://docs.python.org/2/howto/pyporting.html#from-future-import-unicode-literals?
IMO u'foobar'
is fine because Python 3.4 is already the latest stable 3+ version and there would be no reason for a distro to ship anything lower once they make the transition to 3.
If we can port immediately to 3.4 or higher, then we're good. I'll go ahead and merge #585.
Issue still present for the avWidget (config tool). The PR only had fixes for mainWidget.
Traceback (most recent call last):
File "/home/dennis/github/Freeseer/freeseer/src/freeseer/frontend/qtcommon/FreeseerApp.py", line 146, in translate
self.retranslate()
File "/home/dennis/github/Freeseer/freeseer/src/freeseer/frontend/configtool/configtool.py", line 219, in retranslate
self.avWidget.fileDirPushButton.setText("{}...".format(self.app.translate("ConfigToolApp", "Browse")))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-1: ordinal not in range(128)
OK. I will also fix this one in this week.
When chooses Japanese, Simplified Chinese or Traditional Chinese in the Language menu, there will be an error logged in the terminal:
The problem is caused by not using unicode for .format:
should be
There are several places with the same problem in record.py