Bug 710594

Summary: Firefox's brandShortName is not encoded correctly, and also is not consistent with the one in .desktop file
Product: [Fedora] Fedora Reporter: Hedayat Vatankhah <hedayatv>
Component: firefoxAssignee: Gecko Maintainer <gecko-bugs-nobody>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: gecko-bugs-nobody
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-05 18:25:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Hedayat Vatankhah 2011-06-03 19:56:27 UTC
Description of problem:
Firefox's brandShortName is translated in some languages. It creates two problems:
1. It is inconsistent with the name in mozilla-firefox.desktop file. This creates inconsistencies when you run Firefox in gnome-shell: If you run firefox by clicking the icon in dash, its title in the gnome-shell's top bar will be "Firefox" regardless of the current locale. Also, it is "Firefox" in Alt+Tab browser. However, if you restart gnome-shell, or if you run firefox by running it using Alt+F2 or from a terminal, it's title in the top bar and Alt+Tab browser will be the translated brandShortName string rather than "Firefox". Not only it is inconsistent with the other behavior, but also this way gnome shell doesn't recognize that it is the same as the Firefox icon in dash, so you'll see two Firefox icons in dash: one is the icon for "Firefox" from .desktop file, and the other one is an icon for the translated brandShortName. 

2. The other problem is that brandShortName translation is not correctly encoded at all. This means that if you run firefox in an Arabic locale (ar_YE.UTF-8) or in Persian locale (fa_IR) where brandShortName is translated, you won't see the translated word in gnome-shell's top bar and in Alt+Tab browser, but a completely unreadable word will be seen. Therefore, the translated words (which are translated in UTF-8 encoding in corresponding langpacks) are incorrectly encoded by firefox. This even creates very sever problems in fa_IR locale in gnome-shell as described in bug #704893

Version-Release number of selected component (if applicable):
firefox-4.0.1-2.fc15.x86_64

How reproducible:
100%

Steps to Reproduce:
1. export LANG=ar_YE.UTF-8 
2. firefox
  
Actual results:
See the title in the top bar, which is not readable at all. Also, it appears as a new icon in gnome-shell's dash, not as an instance of Firefox.

Expected results:
The title should be the Arabic translation of Firefox as in the corresponding langpack. 
Also, it should be recognized as a Firefox instance in dash, rather than a new window.

Comment 1 Hedayat Vatankhah 2011-10-05 18:25:21 UTC
Fixed in recent versions.