Closed Bug 395640 Opened 17 years ago Closed 17 years ago

"always ask" and "handle internally" options for feed entry in Applications prefpane should be renamed

Categories

(Firefox :: File Handling, defect, P2)

defect

Tracking

()

RESOLVED FIXED
Firefox 3 beta1

People

(Reporter: myk, Assigned: myk)

References

Details

(Whiteboard: [contentHandling-ui])

Attachments

(1 file, 2 obsolete files)

faaborg's review in bug 377784, comment 45 says that the "always ask" option for the Web Feed entry in the Applications prefpane, which is currently called "Show me a preview and ask me what to do", should be labeled "Preview in Firefox", while the "handle internally" option, which is currently called "Live Bookmarks", should be called "Live Bookmarks in Firefox".
Err, un-ccing mconnor.  I don't want to spam him with a bunch of bug mail, so I'm only going to cc: him on the stuff he's commented on in bug 377784.
Depends on: 377784
Assignee: nobody → myk
Priority: -- → P2
Target Milestone: --- → Firefox 3 M9
Whiteboard: [contentHandling-ui]
Attached patch patch v1: changes labels (obsolete) — Splinter Review
Attachment #280824 - Flags: review?(gavin.sharp)
Comment on attachment 280824 [details] [diff] [review]
patch v1: changes labels

Gavin pointed out on IRC that we should be using brandShortName instead of
hardcoding the name of the application in the properties.  My patch for bug 395644 adds the necessary plumbing to make that possible, so I'll submit an updated patch for this bug once the patch on that bug lands.
Attachment #280824 - Attachment is obsolete: true
Attachment #280824 - Flags: review?(gavin.sharp)
Depends on: 395644
Attached patch patch v2: uses brandShortName (obsolete) — Splinter Review
Here's a patch that uses brandShortName instead of hardcoding the name of the application in the properties file.  This patch also memoizes brandShortName so that retrieving it doesn't hurt performance for tasks that call describePreferredAction many times.
Attachment #281220 - Flags: review?(gavin.sharp)
Comment on attachment 281220 [details] [diff] [review]
patch v2: uses brandShortName

>Index: browser/components/preferences/applications.js

>@@ -1069,25 +1076,28 @@ var gApplicationsPane = {

>+      let label = this._prefsBundle.getFormattedString("alwaysAskAboutFeed",

>+      let label = this._prefsBundle.getFormattedString("liveBookmarks",

nit: unnecessarily redeclaring "label"

>Index: browser/locales/en-US/chrome/browser/preferences/preferences.properties

>+# LOCALIZATION NOTE (alwaysAskAboutFeed, liveBookmarks): %S = brandShortName
>+alwaysAskAboutFeed=Preview in %S
>+liveBookmarks=Live Bookmarks in %S

As I mentioned on IRC, it wouldn't hurt to change the entity names here to indicate a semantic change, even if it's fairly unlikely that localizers have started translating these yet.
Attachment #281220 - Flags: review?(gavin.sharp) → review+
(In reply to comment #5)
> nit: unnecessarily redeclaring "label"

Urk, right, fixed.


> >+# LOCALIZATION NOTE (alwaysAskAboutFeed, liveBookmarks): %S = brandShortName
> >+alwaysAskAboutFeed=Preview in %S
> >+liveBookmarks=Live Bookmarks in %S
> 
> As I mentioned on IRC, it wouldn't hurt to change the entity names here to
> indicate a semantic change, even if it's fairly unlikely that localizers have
> started translating these yet.

Erm, right, how about previewInApp and liveBookmarksInApp?
Attachment #281220 - Attachment is obsolete: true
Attachment #281236 - Flags: review?(gavin.sharp)
Attachment #281236 - Flags: review?(gavin.sharp) → review+
Comment on attachment 281236 [details] [diff] [review]
patch v3: review fixes

Requesting approval to land this low-risk polish fix that renames two actions in the actions menu for the feed type (and refactors a bit of code in the process).
Attachment #281236 - Flags: approval1.9?
Attachment #281236 - Flags: approval1.9? → approval1.9+
Checking in browser/components/preferences/applications.js;
/cvsroot/mozilla/browser/components/preferences/applications.js,v  <--  applications.js
new revision: 1.8; previous revision: 1.7
done
Checking in browser/locales/en-US/chrome/browser/preferences/preferences.properties;
/cvsroot/mozilla/browser/locales/en-US/chrome/browser/preferences/preferences.properties,v  <--  preferences.properties
new revision: 1.17; previous revision: 1.16
done
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: