Closed Bug 353437 Opened 18 years ago Closed 18 years ago

Need to localize file-type filter in Alarms dialog

Categories

(Calendar :: Alarms, defect)

defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED
Sunbird 0.5

People

(Reporter: ispiked, Assigned: mattwillis)

Details

Attachments

(1 file, 1 obsolete file)

Filed as a follow-up to bug 352674.

Right now we hard-code the filter name to "*.wav". We need to add a string such as "WAV Files (*.wav)" to calendar.properties and use that.
Target Milestone: --- → Sunbird 0.5
Version: unspecified → Trunk
Attached patch localizes the label. (obsolete) — — Splinter Review
To reviewers: Test on Linux or Win32. Mac doesn't show this label.
Assignee: nobody → lilmatt
Status: NEW → ASSIGNED
Attachment #241975 - Flags: second-review?(dmose)
Attachment #241975 - Flags: first-review?(cmtalbert)
Comment on attachment 241975 [details] [diff] [review]
localizes the label.

Did not run a build. But, the fix looks good to me. I did ask some questions as to the rationale behind the method used to get the localized resource in the XUL file, but several other preference files do this too. The preference files in general seem to be a good candidate for streamlining code w.r.t. localized strings, but that is outside the scope of this simple fix.

I'm not clear on the scope that wavFileLabel obtains from this sort of declaration, if it is a global, then my nit would be to "namespace" it by changing it to gWavFilePrefLabel or wavFilePrefLabel -- something that can be sure to never conflict with any new development. 

It should be noted that wavFileLabel does not occur anywhere in our current calendar/ codebase, however.
Attachment #241975 - Flags: first-review?(cmtalbert) → first-review+
Comment on attachment 241975 [details] [diff] [review]
localizes the label.

Unless I'm mistaken, this wants to live in a string bundle, not a DTD.
Attachment #241975 - Flags: second-review?(dmose) → second-review-
Attached patch now with 100% less stupid! — — Splinter Review
Stringbundles. Yum.
Attachment #241975 - Attachment is obsolete: true
Attachment #242240 - Flags: second-review?(dmose)
Attachment #242240 - Flags: first-review?(cmtalbert)
Attachment #242240 - Flags: second-review?(dmose) → second-review+
Comment on attachment 242240 [details] [diff] [review]
now with 100% less stupid!

carrying forward ctalbert's review
Attachment #242240 - Flags: first-review?(cmtalbert) → first-review+
Patch checked in on MOZILLA_1_8_BRANCH and trunk.

-> FIXED
Status: ASSIGNED → RESOLVED
Closed: 18 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: