Closed Bug 330103 Opened 19 years ago Closed 19 years ago

Hard coded strings l18n

Categories

(Calendar :: Lightning Only, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Lightning 0.1

People

(Reporter: bmo.cec, Assigned: jminta)

References

Details

(Keywords: intl)

Attachments

(1 file)

I packaged the Lightning xpi (0.1RC1 Linux) in French. Some strings are not localized. I searched in the locale part (calendar-fr-FR.jar and fr-FR.jar) and didn't find anything. These strings are "Today, Tomorrow and Soon" located in the "Agenda" tab. The only file I found these strings in is agenda-tree.js so I guess it is guilty :-) .
Me again, I (in fact Frederic, one of the FrenchMozilla translator, tester, ...) found some other non-localizable strings and as discussed on IRC, a single tracking bug is the most suitable way, so : The title windows for 'New Event' and 'Edit Event' is non-localizable. I'm not a coder but 'New Event' seems to be hard-coded in calendar-event-dialog.js and 'Edit Event' in calendar-event-dialog.js and/or calendar-management.js. Voila
"Today", "Tomorrow", "Soon" - agenda categories: /calendar/lightning/content/agenda-tree.js, line 50 et seq. "New Event" - default name for new events: /calendar/lightning/content/calendar-management.js, line 193 /calendar/resources/content/calendarWindow.js, line 60 "New Event", "Edit Event", "New Task", "Edit Task" - item dialog title: /calendar/base/content/calendar-event-dialog.js, line 390 et seq.
Attached patch use stringbundles — — Splinter Review
Patch moves the strings to stringbundles to enable localization. Also removes a bunch of useless lines from the agenda tree and fixes strict warnings about using sharp variables. The Sunbird changes block 0.3a2, because that release should be fully localizable.
Assignee: nobody → jminta
Status: NEW → ASSIGNED
Attachment #215541 - Flags: first-review?(mvl)
Comment on attachment 215541 [details] [diff] [review] use stringbundles r=mvl
Attachment #215541 - Flags: first-review?(mvl) → first-review+
Patch checked in.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: