Bug 273251 Make print preview window title localizable. patch by robin.edrenius@gmail.com, r=jminta

This commit is contained in:
jminta%gmail.com 2005-12-08 16:14:11 +00:00
Родитель 320a1965cf
Коммит b62a852b9e
2 изменённых файлов: 8 добавлений и 0 удалений

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

@ -172,6 +172,13 @@ function OnLoadPrintEngine(){
var args = window.arguments[0];
gContent = document.getElementById("content");
var sbs = Components.classes["@mozilla.org/intl/stringbundle;1"]
.getService(Components.interfaces.nsIStringBundleService);
var props = sbs.createBundle("chrome://calendar/locale/calendar.properties");
var windowTitle = props.formatStringFromName("PrintPreviewWindowTitle", [args.title], 1);
document.title = windowTitle;
var htmlexporter = Components.classes["@mozilla.org/calendar/export;1?type=html"].createInstance(Components.interfaces.calIExporter);
// Fail-safe check to not init twice, to prevent leaking files

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

@ -38,6 +38,7 @@
# Misc. strings in JS
AllDayEvents=All Day Events
PrintPreviewWindowTitle=Print Preview of %1$S
# Event status: Tentative, Confirmed, Cancelled
# ToDo task status: NeedsAction, InProcess, Completed, Cancelled