Make the string "Unsigned" localizable in XPInstall. Bug 198010, patch by

Marcel Gosselin <marcel.gosselin@polymtl.ca>, r=ssu, sr=bzbarsky
This commit is contained in:
bzbarsky%mit.edu 2003-07-15 05:06:08 +00:00
Родитель 59370ac57d
Коммит 2bf16a5f25
2 изменённых файлов: 5 добавлений и 2 удалений

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

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

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

@ -77,6 +77,7 @@ progress.downloading=Downloading...
progress.downloaded=Downloaded
progress.installing=Installing...
Unsigned=Unsigned
#--------------------------------------------------------------------
# Miscellaneous