UI Strings in JavaScript content area should be moved to locale

RESOLVED FIXED

Status

Calendar
Sunbird Only
RESOLVED FIXED
16 years ago
10 years ago

People

(Reporter: ajbu, Assigned: Mike Potter)

Tracking

Details

Attachments

(2 attachments)

(Reporter)

Description

16 years ago
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.
(Reporter)

Comment 1

16 years ago
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;

Comment 2

16 years ago
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
(Reporter)

Comment 3

16 years ago
Created attachment 94307 [details] [diff] [review]
patch for pref local strings + categories

Patch to move pref dialog text to locale dtd. 
Patch also adds simple categories field to the pref page.
(Reporter)

Comment 4

16 years ago
Created attachment 94348 [details] [diff] [review]
patch to localize Go menu
(Assignee)

Comment 5

16 years ago
Checked into CVS.
Assignee: mikep → ajbu
(Reporter)

Comment 6

16 years ago
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
(Assignee)

Comment 7

16 years ago
Fixed all except for the strings in calendarImportExport.js
(Assignee)

Updated

16 years ago
Target Milestone: --- → 1.0

Comment 8

16 years ago
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
(Assignee)

Comment 9

15 years ago
Fixed the ones in importExport.js now.
This should be done.
Status: NEW → RESOLVED
Last Resolved: 15 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.