Red Hat Bugzilla – Bug 477297
Rhythmbox Python Console in pt_BR locale raises exception on start
Last modified: 2009-04-28 12:55:57 EDT
Description of problem:
On opening Python Console on Rhythmbox, the following exception is raised:
Traceback (most recent call last):
File "/usr/lib64/rhythmbox/plugins/python-console/pythonconsole.py", line 393, in __run
exec command in self.namespace
File "<string>", line 1
print "Você pode acessar a janela principal através da variável "shell" :\n%s" % shell
SyntaxError: invalid syntax
Clearly, there is a problem with the printed string - it is using double quotes where single quotes should be used (or backslashed doublequotes).
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Open Rhythbox
2. Open Python console
Console opens with this printed exception (but works fine).
Console opens without an exception. The string is printed properly.
The fix should be just a change on the quotes of the string, but I don't know where it is located.
Created attachment 327534 [details]
Catalog file with quotes corrected
You're right, using single quotes no problem occurs.
To test, overwrite your /usr/share/locale/pt_BR/LC_MESSAGES/rhythmbox.mo by my attachment, but before make a copy from original:
# cp /usr/share/locale/pt_BR/LC_MESSAGES/rhythmbox.mo /usr/share/locale/pt_BR/LC_MESSAGES/rhythmbox.backup.mo
Sorry by incovenience, the problem will be fixed soon as possible.
This seems to be an i18n issue, not L10n. Doubles quotes should be allowed here as well as in other strings.
I filed this upstream:
The right course of action will be discussed upstream, thanks for the report.