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

git-svn-id: svn://10.0.0.236/trunk@60295 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
ben%netscape.com
2000-02-10 06:57:33 +00:00
parent 7afd0fedb1
commit d8c174eb4e

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