Bug 477297

Summary: Rhythmbox Python Console in pt_BR locale raises exception on start
Product: [Fedora] Fedora Reporter: Fernando Henrique Sanches <fernandohsanches>
Component: rhythmboxAssignee: Bastien Nocera <bnocera>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 10CC: bnocera, fernandohsanches, igor, skarllot, trans-pt_br
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-04-28 16:55:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Catalog file with quotes corrected none

Description Fernando Henrique Sanches 2008-12-20 05:11:34 UTC
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):
Rhythmbox 0.11.6
Python 2.5.2

How reproducible:
Aways.

Steps to Reproduce:
1. Open Rhythbox
2. Open Python console
  
Actual results:
Console opens with this printed exception (but works fine).

Expected results:
Console opens without an exception. The string is printed properly.

Additional info:
The fix should be just a change on the quotes of the string, but I don't know where it is located.

Comment 1 Fabrício Godoy 2008-12-20 14:05:20 UTC
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

Comment 2 Fabrício Godoy 2008-12-20 14:06:46 UTC
Sorry by incovenience, the problem will be fixed soon as possible.

Comment 3 Igor Pires Soares 2008-12-20 20:33:11 UTC
This seems to be an i18n issue, not L10n. Doubles quotes should be allowed here as well as in other strings.

Comment 4 Bastien Nocera 2009-04-28 16:55:57 UTC
I filed this upstream:
http://bugzilla.gnome.org/show_bug.cgi?id=580629

The right course of action will be discussed upstream, thanks for the report.