Make default calendar name in Lightning localizable (bug 326430), patch by Stefan Sitter <ssitter@googlemail.com>, r=dmose

This commit is contained in:
dmose%mozilla.org 2006-02-13 19:07:21 +00:00
Родитель 0ebf71a6b8
Коммит d07d22e8e0
1 изменённых файлов: 9 добавлений и 2 удалений

Просмотреть файл

@ -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);