Closed Bug 156791 Opened 22 years ago Closed 22 years ago

UI Strings in JavaScript content area should be moved to locale

Categories

(Calendar :: Sunbird Only, defect)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ajbu, Assigned: mikeypotter)

Details

Attachments

(2 files)

There are still hardcoded UI strings in the Calendar JavaScript, those should 
be moved to locale properties to enable translation.
Would it be easiest if I comment those strings here when I see them?
Put them all in different bugs seems a little cumbersome.
Strings in calendarMail.js:
 nsIMsgAttachment.name = "iCal Event"
 nsIMsgCompFields.subject = gMailIdentity.fullName + " would like to schedule 
a meeting with you";
 nsIMsgCompFields.organization = gMailIdentity.organization;
 nsIMsgCompFields.body = "When: " + Event.start + "-" + Event.end 
+ "\nWhere: " + Event.location + "\nOrganizer: " + gMailIdentity.fullName + " 
<" + gMailIdentity.email + ">" + "\nSummary:" + Event.description;
strings concerned
--------
in the Daily view 
"All-Day Events" 
--------
in the Calendar global setting
"Calendar" in the window title
"Date Text Format" 
The combo whith 
"Short Format (ie. 04/01/02)" and
"Long (ie. Apr 1, 2002)"
"First Day Of The Week" and The list of Days just after.
"Default Event Length" 
(and may be "Minutes" juste after but it's the same name in french)
"Default Snooze Length"
(and may be "Minutes" juste after but it's the same name in french)
--------
"Go" menu
"Next" and "Previous" item in the "Go" Menu

Best regards
Patch to move pref dialog text to locale dtd. 
Patch also adds simple categories field to the pref page.
Attached patch patch to localize Go menu — — Splinter Review
Checked into CVS.
Assignee: mikep → ajbu
This are the strings I know of are still in the JavaScript:

calendarMail.js
[194]			nsIMsgAttachment.name = "iCal Event"
[206]			nsIMsgCompFields.body = "When: " + Event.start + "-" + 
Event.end + "\nWhere: " + Event.location + "\nOrganizer: " + 
gMailIdentity.fullName + " <" + gMailIdentity.email + ">" + "\nSummary:" + 
Event.description;


calendarDayView.js
[151]      TextNode = document.createTextNode( "All-Day Events" );
note that calendarWeekView uses the label from global.dtd:
<!ENTITY allDayEvents.label "All Day Events">

calendarImportExport.js also has hardcoded strings for filters and dialogs.
Assignee: ajbu → mikep
Fixed all except for the strings in calendarImportExport.js
Target Milestone: --- → 1.0
Default QA Contact for Calendar has changed.  If you wish to remain the QA
contact for this bug, feel free to change it back.
QA Contact: colint → brantgurganus2001
Fixed the ones in importExport.js now.
This should be done.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
The bugspam monkeys have been set free and are feeding on Calendar :: Sunbird Only. Be afraid for your sanity!
QA Contact: gurganbl → sunbird
Target Milestone: 1.0 → ---
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: