home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0"?> <!-- -*- Mode: SGML; indent-tabs-mode: nil; -*- -->
- <!--
-
- ***** BEGIN LICENSE BLOCK *****
- Version: MPL 1.1/GPL 2.0/LGPL 2.1
-
- The contents of this file are subject to the Mozilla 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/MPL/
-
- 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.org Code.
-
- The Initial Developer of the Original Code is
- Netscape Communications Corporation.
- Portions created by the Initial Developer are Copyright (C) 1999
- the Initial Developer. All Rights Reserved.
-
- Contributor(s):
- Steffen Wilberg <steffen.wilberg@web.de>
-
- Alternatively, the contents of this file may be used under the terms of
- either of the GNU General Public License Version 2 or later (the "GPL"),
- or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
- in which case the provisions of the GPL or the LGPL are applicable instead
- of those above. If you wish to allow use of your version of this file only
- under the terms of either the GPL or the LGPL, and not to allow others to
- use your version of this file under the terms of the MPL, indicate your
- decision by deleting the provisions above and replace them with the notice
- and other provisions required by the GPL or the LGPL. If you do not delete
- the provisions above, a recipient may use your version of this file under
- the terms of any one of the MPL, the GPL or the LGPL.
-
- ***** END LICENSE BLOCK ***** -->
-
- <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
-
- <!DOCTYPE window SYSTEM "chrome://browser/locale/pref/pref-languages.dtd" >
-
- <dialog id="Languages"
- title="&languages.customize.Header;"
- xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
- style="width: 0px; height: 0px;" onload="Init();"
- ondialogaccept="return onLanguagesDialogOK(event);"
- persist="screenX screenY width height">
-
- <script type="application/x-javascript" src="chrome://browser/content/pref/pref-languages.js"/>
- <script type="application/x-javascript">
- <![CDATA[
- var _elementIDs = ["active_languages", "DefaultCharsetList"];
- var observerService = Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService);
- observerService.notifyObservers(null, "charsetmenu-selected", "other");
- ]]>
- </script>
-
- <stringbundleset id="languageSet">
- <stringbundle id="bundle_regions" src="chrome://global/locale/regionNames.properties"/>
- <stringbundle id="bundle_languages" src="chrome://global/locale/languageNames.properties"/>
- <stringbundle id="bundle_prefLang" src="chrome://browser/locale/pref/pref-languages.properties"/>
- <stringbundle id="bundle_accepted" src="resource://gre/res/language.properties"/>
- </stringbundleset>
-
- <groupbox flex="1">
- <caption label="&languages.customize.label;"/>
- <description>&languages.customize.prefLangDescript;</description>
- <description>&languages.customize.active.label;</description>
- <hbox flex="1">
- <vbox flex="1">
- <listbox id="active_languages" flex="1"
- preftype="localizedstring" prefstring="intl.accept_languages"
- prefvalue="" prefattribute="prefvalue" wsm_attributes="prefvalue"
- seltype="multiple" onselect="SelectLanguage();"/>
- <spacer/>
- <label accesskey="&languages.customize.selectLanguage.accesskey;" control="available_languages"/>
- <menulist id="available_languages" oncommand="SelectAvailableLanguage();"
- label="&languages.customize.selectLanguage.label;"
- accesskey="&languages.customize.selectLanguage.accesskey;"
- prefstring="pref.browser.language.disable_addLanguages">
- <menupopup/>
- </menulist>
- </vbox>
- <vbox>
- <button id="up" class="up" oncommand="MoveUp();" disabled="true"
- label="&languages.customize.moveUp.label;"
- accesskey="&languages.customize.moveUp.accesskey;"
- prefstring="pref.browser.language.disable_button.up"/>
- <button id="down" class="down" oncommand="MoveDown();" disabled="true"
- label="&languages.customize.moveDown.label;"
- accesskey="&languages.customize.moveDown.accesskey;"
- prefstring="pref.browser.language.disable_button.down"/>
- <button id="remove" oncommand="RemoveActiveLanguage();" disabled="true"
- label="&languages.customize.deleteButton.label;"
- accesskey="&languages.customize.deleteButton.accesskey;"
- prefstring="pref.browser.language.disable_button.remove"/>
- <spacer flex="1"/>
- <button id="add" oncommand="AddAvailableLanguage();" disabled="true"
- label="&languages.customize.addButton.label;"
- accesskey="&languages.customize.addButton.accesskey;"/>
- </vbox>
- </hbox>
- </groupbox>
-
- <groupbox align="start">
- <caption label="&languages.customize.Charset.grouplabel;"/>
- <hbox align="center">
- <label value="&languages.customize.DefaultCharset.label;"
- accesskey="&languages.customize.DefaultCharset.accesskey;"
- control="DefaultCharsetList"/>
- <menulist id="DefaultCharsetList" ref="NC:DecodersRoot" datasources="rdf:charset-menu"
- prefstring="intl.charset.default" preftype="localizedstring"
- wsm_attributes="value">
- <template>
- <menupopup>
- <menuitem label="rdf:http://home.netscape.com/NC-rdf#Name" value="..." uri="..."/>
- </menupopup>
- </template>
- </menulist>
- </hbox>
- </groupbox>
- </dialog>
-
-