From 2bf16a5f25abbcaaba7afce8fc680ab079772d1f Mon Sep 17 00:00:00 2001 From: "bzbarsky%mit.edu" Date: Tue, 15 Jul 2003 05:06:08 +0000 Subject: [PATCH] Make the string "Unsigned" localizable in XPInstall. Bug 198010, patch by Marcel Gosselin , r=ssu, sr=bzbarsky --- xpinstall/res/content/institems.js | 6 ++++-- xpinstall/res/locale/en-US/xpinstall.properties | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/xpinstall/res/content/institems.js b/xpinstall/res/content/institems.js index dac74bd0f39..d741a3f9e14 100644 --- a/xpinstall/res/content/institems.js +++ b/xpinstall/res/content/institems.js @@ -20,6 +20,7 @@ // dialog param block var gParam; +var gBundle; function addTreeItem(num, aName, aUrl, aCertName) { @@ -32,7 +33,7 @@ function addTreeItem(num, aName, aUrl, aCertName) // second column is for the cert name var certName = document.createElement("description"); if (aCertName == "") - certName.setAttribute("value", "Unsigned"); // i18n! + certName.setAttribute("value", gBundle.getString("Unsigned") ); else certName.setAttribute("value", aCertName); @@ -61,6 +62,7 @@ function onLoad() doSetOKCancel(onOk, onCancel); + gBundle = document.getElementById("xpinstallBundle"); gParam = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); gParam.SetInt(0, 1 ); /* Set the default return to Cancel */ @@ -76,7 +78,7 @@ function onLoad() addTreeItem(row++, moduleName, URL, certName); } - var okText = document.getElementById("xpinstallBundle").getString("OK"); + var okText = gBundle.getString("OK"); var okButton = document.getElementById("ok") okButton.label = okText; okButton.setAttribute("default",false); diff --git a/xpinstall/res/locale/en-US/xpinstall.properties b/xpinstall/res/locale/en-US/xpinstall.properties index 8660f96aa18..593b4d544cd 100644 --- a/xpinstall/res/locale/en-US/xpinstall.properties +++ b/xpinstall/res/locale/en-US/xpinstall.properties @@ -77,6 +77,7 @@ progress.downloading=Downloading... progress.downloaded=Downloaded progress.installing=Installing... +Unsigned=Unsigned #-------------------------------------------------------------------- # Miscellaneous