mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-07 04:05:49 +00:00
62171: "Separate content from UI". Split langenus.xpi into regus.xpi.
browser: (r=pchen,sr=alecf), mailnews: (r=yamamoto,sr=sspitzer), editor: (r=cmonske,sr=sfraser), xpinstall (r=ssu,sr=dveditz).
This commit is contained in:
parent
04472a2b72
commit
7cf02c8ce7
@ -38,11 +38,13 @@ const nsIRDFLiteral = Components.interfaces.nsIRDFLiteral;
|
||||
const nsIRDFDataSource = Components.interfaces.nsIRDFDataSource;
|
||||
const nsIRDFRemoteDataSource = Components.interfaces.nsIRDFRemoteDataSource;
|
||||
const nsIInternetSearchService = Components.interfaces.nsIInternetSearchService;
|
||||
const STRINGBUNDLE_REGIONAL_URL = "chrome://navigator-region/locale/region.properties";
|
||||
|
||||
var rootNode;
|
||||
var textArc;
|
||||
var modeArc;
|
||||
var searchBundle;
|
||||
var regionalBundle;
|
||||
|
||||
var sidebarInitiatedSearch = false;
|
||||
|
||||
@ -580,8 +582,10 @@ function OpenSearch(aSearchStr, engineURIs)
|
||||
var searchEngineURI = nsPreferences.copyUnicharPref("browser.search.defaultengine", null);
|
||||
var defaultSearchURL = nsPreferences.getLocalizedUnicharPref("browser.search.defaulturl", null);
|
||||
|
||||
if (!defaultSearchURL)
|
||||
defaultSearchURL = searchBundle.getString("defaultSearchURL");
|
||||
if (!defaultSearchURL) {
|
||||
regionalBundle = srGetStrBundle( STRINGBUNDLE_REGIONAL_URL );
|
||||
defaultSearchURL = regionalBundle.GetStringFromName("defaultSearchURL");
|
||||
}
|
||||
|
||||
var searchDS = Components.classes[ISEARCH_CONTRACTID].getService(nsIInternetSearchService);
|
||||
|
||||
@ -600,7 +604,7 @@ function OpenSearch(aSearchStr, engineURIs)
|
||||
}
|
||||
|
||||
if (!searchEngineURI)
|
||||
searchEngineURI = searchBundle.getString("defaultSearchURL");
|
||||
searchEngineURI = regionalBundle.GetStringFromName("defaultSearchURL");
|
||||
|
||||
// look up the correct search URL format for the given engine
|
||||
try {
|
||||
|
@ -35,6 +35,7 @@
|
||||
|
||||
<script type="text/javascript" src="chrome://global/content/nsUserSettings.js"/>
|
||||
<script type="text/javascript" src="chrome://global/content/nsJSComponentManager.js"/>
|
||||
<script type="text/javascript" src="chrome://global/content/strres.js"/>
|
||||
<script type="text/javascript" src="chrome://communicator/content/search/search-panel.js"/>
|
||||
<script type="text/javascript" src="chrome://communicator/content/search/shared.js"/>
|
||||
|
||||
|
@ -2,5 +2,3 @@ enterstringandlocation=Enter some text to search for and select at least one loc
|
||||
enableAdvanced=Enable advanced search options
|
||||
disableAdvanced=Disable advanced search options
|
||||
|
||||
# Localizable URLs
|
||||
defaultSearchURL=http://search.netscape.com/cgi-bin/search?charset=UTF-8&search=
|
||||
|
Loading…
Reference in New Issue
Block a user