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: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Jonathan Thomas
2009-08-07 15:56:57 UTC
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. *** |