1999-06-05 03:28:56 +04:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
1999-08-10 06:48:56 +04:00
|
|
|
<!--
|
|
|
|
The contents of this file are subject to the Netscape Public
|
|
|
|
License Version 1.1 (the "License"); you may not use this file
|
|
|
|
except in compliance with the License. You may obtain a copy of
|
|
|
|
the License at http://www.mozilla.org/NPL/
|
|
|
|
|
|
|
|
Software distributed under the License is distributed on an "AS
|
|
|
|
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
|
|
implied. See the License for the specific language governing
|
|
|
|
rights and limitations under the License.
|
|
|
|
|
|
|
|
The Original Code is Mozilla Communicator client code, released
|
|
|
|
March 31, 1998.
|
|
|
|
|
|
|
|
The Initial Developer of the Original Code is Netscape
|
|
|
|
Communications Corporation. Portions created by Netscape are
|
|
|
|
Copyright (C) 1998-1999 Netscape Communications Corporation. All
|
|
|
|
Rights Reserved.
|
|
|
|
|
|
|
|
Contributor(s):
|
|
|
|
-->
|
|
|
|
|
2006-05-17 06:24:52 +04:00
|
|
|
<?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
|
1999-06-05 03:28:56 +04:00
|
|
|
|
2006-05-17 06:24:57 +04:00
|
|
|
<!DOCTYPE window [
|
|
|
|
<!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
|
|
|
|
%brandDTD;
|
|
|
|
<!ENTITY % prefAppearanceDTD SYSTEM "chrome://communicator/locale/pref/pref-appearance.dtd" >
|
|
|
|
%prefAppearanceDTD;
|
|
|
|
]>
|
107642 - XUL syntax/cleanup landing. Fixes 94470, 96008, 96019, 76800, 102637, 80399, 108303, and removes over a thousand unnecessary or nonsensical attributes. Also fixes 108302, 102366, 102367, 105815. r=sspitzer,cmanske on appropriate parts sr=ben
2006-05-17 06:31:28 +04:00
|
|
|
<page xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
2006-05-17 06:31:51 +04:00
|
|
|
onload="parent.initPanel(panel);"
|
|
|
|
headertitle="&lHeader;">
|
1999-06-05 03:28:56 +04:00
|
|
|
|
2006-05-17 06:28:42 +04:00
|
|
|
<script type="application/x-javascript">
|
2006-05-17 06:24:52 +04:00
|
|
|
<![CDATA[
|
2006-05-17 06:26:11 +04:00
|
|
|
var panel = "chrome://communicator/content/pref/pref-appearance.xul";
|
2006-05-17 06:29:15 +04:00
|
|
|
// the first elements in this array will be poked from chromeregistry loaded
|
|
|
|
// overlays once overlays.rdf works properly
|
2006-05-17 06:31:48 +04:00
|
|
|
var _elementIDs = ["generalStartupBrowser", "showHideTooltips", "useSiteIcons", "languageList"];
|
2006-05-17 06:29:15 +04:00
|
|
|
|
|
|
|
function Startup()
|
|
|
|
{
|
|
|
|
parent.hPrefWindow.registerOKCallbackFunc( switchUILanguage );
|
|
|
|
}
|
|
|
|
|
|
|
|
function switchUILanguage()
|
|
|
|
{
|
2006-05-17 06:30:45 +04:00
|
|
|
var oldLangCode = parent.hPrefWindow.getPref( "localizedstring", "general.useragent.locale");
|
2006-05-17 06:29:15 +04:00
|
|
|
var newLangCode;
|
|
|
|
|
|
|
|
try {
|
|
|
|
var languageList = document.getElementById('languageList');
|
2006-05-17 06:31:22 +04:00
|
|
|
newLangCode = languageList ?
|
2006-05-17 06:29:15 +04:00
|
|
|
languageList.selectedItem.value :
|
|
|
|
parent.hPrefWindow.wsm.dataManager.getItemData( "chrome://communicator/content/pref/pref-appearance.xul", "languageList" ).value;
|
|
|
|
}
|
|
|
|
catch (e) {}
|
|
|
|
if (newLangCode != oldLangCode) {
|
|
|
|
try {
|
2006-05-17 06:30:34 +04:00
|
|
|
var chromeRegistry = Components.classes["@mozilla.org/chrome/chrome-registry;1"].getService(Components.interfaces.nsIChromeRegistry);
|
|
|
|
var observerService = Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService);
|
2006-05-17 06:29:15 +04:00
|
|
|
chromeRegistry.selectLocale(newLangCode, true);
|
2006-05-17 06:31:23 +04:00
|
|
|
observerService.notifyObservers(null, "locale-selected", null);
|
2006-05-17 06:29:15 +04:00
|
|
|
}
|
|
|
|
catch(e) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
2006-05-17 06:31:33 +04:00
|
|
|
|
2006-05-17 06:29:15 +04:00
|
|
|
return true;
|
|
|
|
}
|
2006-05-17 06:24:52 +04:00
|
|
|
]]>
|
|
|
|
</script>
|
|
|
|
|
107642 - XUL syntax/cleanup landing. Fixes 94470, 96008, 96019, 76800, 102637, 80399, 108303, and removes over a thousand unnecessary or nonsensical attributes. Also fixes 108302, 102366, 102367, 105815. r=sspitzer,cmanske on appropriate parts sr=ben
2006-05-17 06:31:28 +04:00
|
|
|
<groupbox id="generalStartupPreferences" align="start">
|
2006-05-17 06:31:17 +04:00
|
|
|
<caption label="&onStartLegend.label;"/>
|
2006-05-17 06:24:52 +04:00
|
|
|
<!-- XXX remove when navigator overlays.rdf works -->
|
107642 - XUL syntax/cleanup landing. Fixes 94470, 96008, 96019, 76800, 102637, 80399, 108303, and removes over a thousand unnecessary or nonsensical attributes. Also fixes 108302, 102366, 102367, 105815. r=sspitzer,cmanske on appropriate parts sr=ben
2006-05-17 06:31:28 +04:00
|
|
|
<checkbox id="generalStartupBrowser"
|
2006-05-17 06:28:51 +04:00
|
|
|
label="&navCheck.label;" accesskey="&navCheck.accesskey;"
|
107642 - XUL syntax/cleanup landing. Fixes 94470, 96008, 96019, 76800, 102637, 80399, 108303, and removes over a thousand unnecessary or nonsensical attributes. Also fixes 108302, 102366, 102367, 105815. r=sspitzer,cmanske on appropriate parts sr=ben
2006-05-17 06:31:28 +04:00
|
|
|
prefstring="general.startup.browser"/>
|
2006-05-17 06:24:52 +04:00
|
|
|
<!-- XXX -->
|
2006-05-17 06:30:33 +04:00
|
|
|
</groupbox>
|
2006-05-17 06:24:52 +04:00
|
|
|
|
2006-05-17 06:30:43 +04:00
|
|
|
<vbox class="box-padded" align="start">
|
2006-05-17 06:29:15 +04:00
|
|
|
<separator class="thin" />
|
|
|
|
|
2006-05-17 06:28:51 +04:00
|
|
|
<checkbox id="showHideTooltips" label="&showHideTooltips.label;"
|
107642 - XUL syntax/cleanup landing. Fixes 94470, 96008, 96019, 76800, 102637, 80399, 108303, and removes over a thousand unnecessary or nonsensical attributes. Also fixes 108302, 102366, 102367, 105815. r=sspitzer,cmanske on appropriate parts sr=ben
2006-05-17 06:31:28 +04:00
|
|
|
accesskey="&showHideTooltips.accesskey;"
|
|
|
|
prefstring="browser.chrome.toolbar_tips"/>
|
2006-05-17 06:29:15 +04:00
|
|
|
|
2006-05-17 06:31:48 +04:00
|
|
|
<checkbox id="useSiteIcons" label="&useSiteIcons.label;"
|
|
|
|
accesskey="&useSiteIcons.accesskey;"
|
|
|
|
prefstring="browser.chrome.site_icons"/>
|
|
|
|
|
2006-05-17 06:29:15 +04:00
|
|
|
<separator/>
|
1999-11-19 00:05:43 +03:00
|
|
|
|
107642 - XUL syntax/cleanup landing. Fixes 94470, 96008, 96019, 76800, 102637, 80399, 108303, and removes over a thousand unnecessary or nonsensical attributes. Also fixes 108302, 102366, 102367, 105815. r=sspitzer,cmanske on appropriate parts sr=ben
2006-05-17 06:31:28 +04:00
|
|
|
<description>&languageList.txt.label;</description>
|
2006-05-17 06:29:15 +04:00
|
|
|
|
|
|
|
<separator class="thin" />
|
|
|
|
|
107642 - XUL syntax/cleanup landing. Fixes 94470, 96008, 96019, 76800, 102637, 80399, 108303, and removes over a thousand unnecessary or nonsensical attributes. Also fixes 108302, 102366, 102367, 105815. r=sspitzer,cmanske on appropriate parts sr=ben
2006-05-17 06:31:28 +04:00
|
|
|
<label value="&languageList.label;" control="languageList"/>
|
2006-05-17 06:29:15 +04:00
|
|
|
|
|
|
|
<separator class="thin" />
|
|
|
|
|
107642 - XUL syntax/cleanup landing. Fixes 94470, 96008, 96019, 76800, 102637, 80399, 108303, and removes over a thousand unnecessary or nonsensical attributes. Also fixes 108302, 102366, 102367, 105815. r=sspitzer,cmanske on appropriate parts sr=ben
2006-05-17 06:31:28 +04:00
|
|
|
<menulist id="languageList"
|
|
|
|
preftype="localizedstring"
|
|
|
|
prefstring="general.useragent.locale"
|
2006-05-17 06:29:15 +04:00
|
|
|
wsm_attributes="value"
|
|
|
|
datasources="rdf:chrome" ref="urn:mozilla:locale:root"
|
|
|
|
sortResource="http://www.mozilla.org/rdf/chrome#name"
|
|
|
|
sortDirection="ascending">
|
|
|
|
<template xmlns:chrome="http://www.mozilla.org/rdf/chrome#">
|
|
|
|
<rule chrome:localeType="region"/>
|
|
|
|
<rule>
|
|
|
|
<menupopup>
|
|
|
|
<menuitem
|
|
|
|
uri="..."
|
|
|
|
label="rdf:http://www.mozilla.org/rdf/chrome#displayName"
|
|
|
|
value="rdf:http://www.mozilla.org/rdf/chrome#name"/>
|
|
|
|
</menupopup>
|
|
|
|
</rule>
|
|
|
|
</template>
|
|
|
|
</menulist>
|
107642 - XUL syntax/cleanup landing. Fixes 94470, 96008, 96019, 76800, 102637, 80399, 108303, and removes over a thousand unnecessary or nonsensical attributes. Also fixes 108302, 102366, 102367, 105815. r=sspitzer,cmanske on appropriate parts sr=ben
2006-05-17 06:31:28 +04:00
|
|
|
</vbox>
|
2006-05-17 06:31:26 +04:00
|
|
|
</page>
|
2006-05-17 06:29:15 +04:00
|
|
|
|