localisability fix for bookmarks, r=jst@citec.fi

This commit is contained in:
ben%netscape.com 2000-02-10 06:57:33 +00:00
parent 373d59125c
commit c83d8a0957

View File

@ -20,14 +20,11 @@
* Contributor(s):
*/
/*
Script for the bookmarks properties window
*/
var NC_NAMESPACE_URI = "http://home.netscape.com/NC-rdf#";
// string bundle
var bundle = null;
// XXX MAKE SURE that the "url" field is LAST!
// This is important for what happens if/when the URL itself is changed.
// Ask rjc@netscape.com if you want to know why exactly this is.
@ -55,6 +52,9 @@ var bookmark_url = '';
function Init()
{
// initialise the string bundle.
bundle = srGetStrBundle("chrome://bookmarks/locale/bookmark.properties");
bookmark_url = window.arguments[0];
// Initialize the properties panel by copying the values from the
@ -288,7 +288,7 @@ function Commit()
var duration = document.getElementById("duration").value;
if (duration == "")
{
alert("Please enter a duration.");
alert( bundle.GetStringFromName("pleaseEnterADuration") );
return(false);
}