mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-16 23:25:03 +00:00
Make default calendar name in Lightning localizable (bug 326430), patch by Stefan Sitter <ssitter@googlemail.com>, r=dmose
This commit is contained in:
parent
41ba5b698f
commit
555de2deb1
@ -251,9 +251,16 @@ function getCalendarManager()
|
||||
}
|
||||
|
||||
if (activeCalendarManager.getCalendars({}).length == 0) {
|
||||
var homeCalendar = activeCalendarManager.createCalendar("storage", makeURL("moz-profile-calendar://"));
|
||||
var homeCalendar = activeCalendarManager.createCalendar("storage",
|
||||
makeURL("moz-profile-calendar://"));
|
||||
activeCalendarManager.registerCalendar(homeCalendar);
|
||||
homeCalendar.name = "Home";
|
||||
|
||||
var sbs = Components.classes["@mozilla.org/intl/stringbundle;1"]
|
||||
.getService(
|
||||
Components.interfaces.nsIStringBundleService);
|
||||
var props = sbs.createBundle(
|
||||
"chrome://calendar/locale/calendar.properties");
|
||||
homeCalendar.name = props.GetStringFromName("homeCalendarName");
|
||||
|
||||
var composite = getCompositeCalendar();
|
||||
composite.addCalendar(homeCalendar);
|
||||
|
Loading…
x
Reference in New Issue
Block a user