Open Bug 312560 Opened 19 years ago Updated 14 years ago

Make UI strings in nsSidebar.js localizable

Categories

(SeaMonkey :: Sidebar, defect)

defect
Not set
normal

Tracking

(Not tracked)

People

(Reporter: torisugari, Unassigned)

References

(Depends on 1 open bug)

Details

(Keywords: helpwanted, l12y)

There's some l10n problems in nsSidebar.js http://lxr.mozilla.org/mozilla/source/xpfe/components/sidebar/src/nsSidebar.jshttp://lxr.mozilla.org/mozilla/source/xpfe/components/sidebar/src/nsSidebar.js 1. Hardcoded UI string. > 283 this.promptService.alert(null, "Failed to add the search engine."); 2. getting stringbundle from chrome://branding/locale/brand.properties > 290 var brandStringBundle = srGetStrBundle("chrome://branding/locale/brand.properties"); > 291 if (stringBundle) { > 292 sidebarName = brandStringBundle.GetStringFromName("sidebarName"); And we glab only one string: "Sidebar". I don't think there's any relationship between branding and sidebar. 3. We should use formatStringFromName(...) instead of regexp replace(...). > 294 dialogMessage = stringBundle.GetStringFromName("addEngineConfirmMessage"); > 295 dialogMessage = dialogMessage.replace(/%title%/, suggestedTitle); > 296 dialogMessage = dialogMessage.replace(/%category%/, suggestedCategory); > 297 dialogMessage = dialogMessage.replace(/%url%/, engineURL); > 298 dialogMessage = dialogMessage.replace(/#/g, "\n"); > 299 dialogMessage = dialogMessage.replace(/%name%/, sidebarName);
Status: UNCONFIRMED → NEW
Ever confirmed: true
#1 also has the problem described at bug 268370.
Blocks: 268370
Flags: blocking-seamonkey1.1a?
I filed bug 338989 for Firefox.
No longer blocks: 268370
(In reply to comment #0) > I don't think there's any relationship > between branding and sidebar. There was, as Netscape called it "My Sidebar", which was a "branding" difference between Mozilla and Netscape... Even if I'd really love to have better L12y, we won't block a release for this, and also no Alpha.
Flags: blocking-seamonkey1.1a? → blocking-seamonkey1.1a-
Keywords: helpwanted
When this is fixed, please make sure we don't use OK/Cancel where we ask a yes/no question.
Depends on: 613971
You need to log in before you can comment on or make changes to this bug.