зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
e17540fe9a
Коммит
54934b36cc
|
@ -84,7 +84,7 @@ function loadDS()
|
|||
gTitleArc = gRDFService.GetResource("http://home.netscape.com/NC-rdf#title");
|
||||
gContentArc = gRDFService.GetResource("http://home.netscape.com/NC-rdf#content");
|
||||
|
||||
var ds_uri = "chrome://global/locale/builtinURLs.rdf";
|
||||
var ds_uri = "chrome://global-region/locale/builtinURLs.rdf";
|
||||
var url_ds = gRDFService.GetDataSource(ds_uri); // return nsIRDFDataSource
|
||||
if (!url_ds) {
|
||||
debug_dump("\n >>Can't get " + ds_uri + "<-\n");
|
||||
|
@ -93,7 +93,7 @@ function loadDS()
|
|||
|
||||
if (url_ds.QueryInterface(Components.interfaces.nsIRDFRemoteDataSource).loaded)
|
||||
{
|
||||
ds_uri = "chrome://global/locale/builtinURLs.rdf";
|
||||
ds_uri = "chrome://global-region/locale/builtinURLs.rdf";
|
||||
gBuiltinUrlsDataSource = gRDFService.GetDataSource(ds_uri); // return nsIRDFDataSource
|
||||
gDataSourceLoaded = (gBuiltinUrlsDataSource != null);
|
||||
}
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
<?xml version="1.0"?>
|
||||
<RDF:RDF xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:chrome="http://www.mozilla.org/rdf/chrome#">
|
||||
|
||||
<!-- list all the packages being supplied by this jar -->
|
||||
<RDF:Seq about="urn:mozilla:package:root">
|
||||
<RDF:li resource="urn:mozilla:package:communicator-region"/>
|
||||
</RDF:Seq>
|
||||
|
||||
<!-- package information -->
|
||||
<RDF:Description about="urn:mozilla:package:communicator-region"
|
||||
chrome:author="mozilla.org"
|
||||
chrome:name="communicator-region">
|
||||
</RDF:Description>
|
||||
|
||||
</RDF:RDF>
|
|
@ -320,12 +320,13 @@ function helpMenuCreate()
|
|||
{
|
||||
//adding the brand string to the about
|
||||
var BrandBundle = srGetStrBundle("chrome://global/locale/brand.properties");
|
||||
var regionalBundle = srGetStrBundle("chrome://global-region/locale/region.properties");
|
||||
var aboutStrName = BrandBundle.GetStringFromName("aboutStrName");
|
||||
var aboutItem = document.getElementById( "releaseName" );
|
||||
aboutItem.setAttribute("value", aboutStrName);
|
||||
|
||||
//Adding the release url since it will change based on brand
|
||||
var BrandRelUrl = BrandBundle.GetStringFromName("releaseUrl");
|
||||
var BrandRelUrl = regionalBundle.GetStringFromName("releaseUrl");
|
||||
var relCommand = "openTopWin(\'" + BrandRelUrl + "\')";
|
||||
var relItem = document.getElementById( "releaseUrl" );
|
||||
relItem.setAttribute("oncommand", relCommand);
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
<?xml version="1.0"?>
|
||||
<RDF:RDF xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:chrome="http://www.mozilla.org/rdf/chrome#">
|
||||
|
||||
<!-- list all the locale being supplied by this package -->
|
||||
<RDF:Seq about="urn:mozilla:locale:root">
|
||||
<RDF:li resource="urn:mozilla:locale:US"/>
|
||||
</RDF:Seq>
|
||||
|
||||
<!-- locale information -->
|
||||
<RDF:Description about="urn:mozilla:locale:US"
|
||||
chrome:author="mozilla.org"
|
||||
chrome:name="US"
|
||||
chrome:previewURL="http://www.mozilla.org/locales/US.gif">
|
||||
<chrome:packages>
|
||||
<RDF:Seq about="urn:mozilla:locale:US:packages">
|
||||
<RDF:li resource="urn:mozilla:locale:US:communicator-region"/>
|
||||
</RDF:Seq>
|
||||
</chrome:packages>
|
||||
</RDF:Description>
|
||||
</RDF:RDF>
|
Загрузка…
Ссылка в новой задаче