зеркало из https://github.com/mozilla/gecko-dev.git
localisability fix for bookmarks, r=jst@citec.fi
This commit is contained in:
Родитель
373d59125c
Коммит
c83d8a0957
|
@ -20,14 +20,11 @@
|
||||||
* Contributor(s):
|
* Contributor(s):
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
|
||||||
|
|
||||||
Script for the bookmarks properties window
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
||||||
var NC_NAMESPACE_URI = "http://home.netscape.com/NC-rdf#";
|
var NC_NAMESPACE_URI = "http://home.netscape.com/NC-rdf#";
|
||||||
|
|
||||||
|
// string bundle
|
||||||
|
var bundle = null;
|
||||||
|
|
||||||
// XXX MAKE SURE that the "url" field is LAST!
|
// XXX MAKE SURE that the "url" field is LAST!
|
||||||
// This is important for what happens if/when the URL itself is changed.
|
// 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.
|
// Ask rjc@netscape.com if you want to know why exactly this is.
|
||||||
|
@ -55,6 +52,9 @@ var bookmark_url = '';
|
||||||
|
|
||||||
function Init()
|
function Init()
|
||||||
{
|
{
|
||||||
|
// initialise the string bundle.
|
||||||
|
bundle = srGetStrBundle("chrome://bookmarks/locale/bookmark.properties");
|
||||||
|
|
||||||
bookmark_url = window.arguments[0];
|
bookmark_url = window.arguments[0];
|
||||||
|
|
||||||
// Initialize the properties panel by copying the values from the
|
// Initialize the properties panel by copying the values from the
|
||||||
|
@ -288,7 +288,7 @@ function Commit()
|
||||||
var duration = document.getElementById("duration").value;
|
var duration = document.getElementById("duration").value;
|
||||||
if (duration == "")
|
if (duration == "")
|
||||||
{
|
{
|
||||||
alert("Please enter a duration.");
|
alert( bundle.GetStringFromName("pleaseEnterADuration") );
|
||||||
return(false);
|
return(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче