Make "Search for:" bookmark string localizable.

b=113341; r=morse; sr=alecf
This commit is contained in:
sgehani%netscape.com 2006-07-27 14:55:38 +00:00
parent 9f45267bf1
commit 0acbbef1eb
2 changed files with 3 additions and 1 deletions

View File

@ -971,7 +971,8 @@ function saveSearch()
}
}
var searchTitle = "Search: '" + lastSearchText + "'"; // using " + gSites;
var searchTitle = searchBundle.stringBundle.formatStringFromName(
"searchTitle", [lastSearchText], 1);
var bmks = Components.classes[BMARKS_CONTRACTID].getService(nsIBookmarksService);
bmks.AddBookmark(lastSearchURI, searchTitle, bmks.BOOKMARK_SEARCH_TYPE, null);

View File

@ -11,3 +11,4 @@ changeEngineTitle=Change default search engine?
changeEngineMsg=Would you like to make %S your default search engine?
dontAskAgainMsg=Change default engine without asking in the future
thisEngine=this
searchTitle=Search: '%S'