mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-07 11:56:51 +00:00
Using localized text, bug 191508.
This commit is contained in:
parent
cc80d85925
commit
40536b68e1
@ -352,9 +352,22 @@
|
||||
<parameter name="aDate"/>
|
||||
<body><![CDATA[
|
||||
|
||||
var monthNames = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
|
||||
|
||||
var midx = aDate.getMonth();
|
||||
this.dateStringBundle = srGetStrBundle("chrome://calendar/locale/dateFormat.properties");
|
||||
var monthNames=new Array(12);
|
||||
monthNames[0]=this.dateStringBundle.GetStringFromName("month.1.name" );
|
||||
monthNames[1]=this.dateStringBundle.GetStringFromName("month.2.name" );
|
||||
monthNames[2]=this.dateStringBundle.GetStringFromName("month.3.name" );
|
||||
monthNames[3]=this.dateStringBundle.GetStringFromName("month.4.name" );
|
||||
monthNames[4]=this.dateStringBundle.GetStringFromName("month.5.name" );
|
||||
monthNames[5]=this.dateStringBundle.GetStringFromName("month.6.name" );
|
||||
monthNames[6]=this.dateStringBundle.GetStringFromName("month.7.name" );
|
||||
monthNames[7]=this.dateStringBundle.GetStringFromName("month.8.name" );
|
||||
monthNames[8]=this.dateStringBundle.GetStringFromName("month.9.name" );
|
||||
monthNames[9]=this.dateStringBundle.GetStringFromName("month.10.name" );
|
||||
monthNames[10]=this.dateStringBundle.GetStringFromName("month.11.name" );
|
||||
monthNames[11]=this.dateStringBundle.GetStringFromName("month.12.name" );
|
||||
|
||||
var midx = aDate.getMonth();
|
||||
|
||||
return monthNames[midx];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user