mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-04-02 12:32:55 +00:00
Bug 273251 Make print preview window title localizable. patch by robin.edrenius@gmail.com, r=jminta
This commit is contained in:
parent
320a1965cf
commit
b62a852b9e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user