From d8c174eb4efa7e067d87be5f47cdfd7d15bbf684 Mon Sep 17 00:00:00 2001 From: "ben%netscape.com" Date: Thu, 10 Feb 2000 06:57:33 +0000 Subject: [PATCH] localisability fix for bookmarks, r=jst@citec.fi git-svn-id: svn://10.0.0.236/trunk@60295 18797224-902f-48f8-a5cc-f745e15eee43 --- .../components/bookmarks/resources/bm-props.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/mozilla/xpfe/components/bookmarks/resources/bm-props.js b/mozilla/xpfe/components/bookmarks/resources/bm-props.js index fde7aee9ecb..bb66d65e304 100644 --- a/mozilla/xpfe/components/bookmarks/resources/bm-props.js +++ b/mozilla/xpfe/components/bookmarks/resources/bm-props.js @@ -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); }