| Summary: | Module fails to initialize in Spanish KDE environment | ||
|---|---|---|---|
| Product: | [Unmaintained] system-config-printer-kde | Reporter: | Jonathan Thomas <echidnaman> |
| Component: | general | Assignee: | Jonathan Riddell <jr> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | andres.becerra, karaluh, kneczaj, scarpino, thieme.reis, xeno |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Ubuntu | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
Brazilian portuguese kde too:
kcmshell4 system-config-printer-kde
Traceback (most recent call last):
File "<string>", line 18, in kpythonpluginfactory_bridge
File "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py", line 4005, in CreatePlugin
kcm = u.makeui(component_data, widget_parent)
File "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py", line 224, in makeui
special_choice=_("Automatic rotation")),
File "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py", line 51, in _
return unicode(i18n(string), "utf-8")
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 4-6: invalid data
My system:
kubuntu 9.04 with all updates
kde 4.3.0
Definitively is a localization bug, if I do: LC_ALL="en_EN" kcmshell4 system-config-printer-kde the module loads correctly in my spanish locale. How to fix it.
Edit file:
/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py
Go to line 223 and ...
Replace -> special_choice=_("Automatic rotation")),
by -> special_choice=i18n("Automatic rotation")),
It works for me.
(In reply to comment #3) > How to fix it. > > Edit file: > /usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py > > Go to line 223 and ... > > Replace -> special_choice=_("Automatic rotation")), > by -> special_choice=i18n("Automatic rotation")), > > It works for me. Definitively, that change fixes the module, thanks. Work for me too! Solution from comment #3 works for me. SVN commit 1034769 by jriddell: this seems to fix crashes when using translations strings in pyqt are weird :( BUG:202964 M +1 -1 system-config-printer-kde.py WebSVN link: http://websvn.kde.org/?view=rev&revision=1034769 *** Bug 213419 has been marked as a duplicate of this bug. *** *** Bug 217137 has been marked as a duplicate of this bug. *** *** Bug 207433 has been marked as a duplicate of this bug. *** |
Version: (using KDE 4.3.0) OS: Linux Installed from: Ubuntu Packages s-p-c-kde bails out with the following traceback when starting in a spanish KDE environment: jonathan@jonathan-desktop:~$ kcmshell4 system-config-printer-kde Traceback (most recent call last): File "<string>", line 18, in kpythonpluginfactory_bridge File "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py", line 4004, in CreatePlugin kcm = u.makeui(component_data, widget_parent) File "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py", line 223, in makeui special_choice=_("Automatic rotation")), File "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py", line 51, in _ return unicode(i18n(string), "utf-8") UnicodeDecodeError: 'utf8' codec can't decode bytes in position 6-9: invalid data Error in sys.excepthook: Traceback (most recent call last): File "/usr/lib/python2.6/dist-packages/apport_python_hook.py", line 77, in apport_excepthook pr['PythonArgs'] = '%r' % sys.argv AttributeError: 'module' object has no attribute 'argv' Original exception was: Traceback (most recent call last): File "<string>", line 18, in kpythonpluginfactory_bridge File "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py", line 4004, in CreatePlugin kcm = u.makeui(component_data, widget_parent) File "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py", line 223, in makeui special_choice=_("Automatic rotation")), File "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py", line 51, in _ return unicode(i18n(string), "utf-8") UnicodeDecodeError: 'utf8' codec can't decode bytes in position 6-9: invalid data