home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2005 October / Gamestar_77_2005-10_dvd.iso / Programy / nsb-install-8-0.exe / chrome / browser.jar / content / browser / pref / pref-languages.xul < prev    next >
Encoding:
Extensible Markup Language  |  2005-07-29  |  5.8 KB  |  127 lines

  1. <?xml version="1.0"?> <!-- -*- Mode: SGML; indent-tabs-mode: nil; -*- -->
  2. <!--
  3.  
  4.  ***** BEGIN LICENSE BLOCK *****
  5.  Version: MPL 1.1/GPL 2.0/LGPL 2.1
  6.  
  7.  The contents of this file are subject to the Mozilla Public License Version
  8.  1.1 (the "License"); you may not use this file except in compliance with
  9.  the License. You may obtain a copy of the License at
  10.  http://www.mozilla.org/MPL/
  11.  
  12.  Software distributed under the License is distributed on an "AS IS" basis,
  13.  WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  14.  for the specific language governing rights and limitations under the
  15.  License.
  16.  
  17.  The Original Code is mozilla.org Code.
  18.  
  19.  The Initial Developer of the Original Code is
  20.  Netscape Communications Corporation.
  21.  Portions created by the Initial Developer are Copyright (C) 1999
  22.  the Initial Developer. All Rights Reserved.
  23.  
  24.  Contributor(s):
  25.    Steffen Wilberg <steffen.wilberg@web.de>
  26.  
  27.  Alternatively, the contents of this file may be used under the terms of
  28.  either of the GNU General Public License Version 2 or later (the "GPL"),
  29.  or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  30.  in which case the provisions of the GPL or the LGPL are applicable instead
  31.  of those above. If you wish to allow use of your version of this file only
  32.  under the terms of either the GPL or the LGPL, and not to allow others to
  33.  use your version of this file under the terms of the MPL, indicate your
  34.  decision by deleting the provisions above and replace them with the notice
  35.  and other provisions required by the GPL or the LGPL. If you do not delete
  36.  the provisions above, a recipient may use your version of this file under
  37.  the terms of any one of the MPL, the GPL or the LGPL.
  38.  
  39.  ***** END LICENSE BLOCK ***** -->
  40.  
  41. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  42.  
  43. <!DOCTYPE window SYSTEM "chrome://browser/locale/pref/pref-languages.dtd" >
  44.  
  45. <dialog id="Languages"
  46.         title="&languages.customize.Header;"
  47.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  48.         style="width: 0px; height: 0px;" onload="Init();"
  49.         ondialogaccept="return onLanguagesDialogOK(event);"
  50.         persist="screenX screenY width height">
  51.  
  52.   <script type="application/x-javascript" src="chrome://browser/content/pref/pref-languages.js"/>
  53.   <script type="application/x-javascript">
  54.   <![CDATA[
  55.     var _elementIDs = ["active_languages", "DefaultCharsetList"];
  56.     var observerService = Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService);
  57.     observerService.notifyObservers(null, "charsetmenu-selected", "other");
  58.   ]]>
  59.   </script>
  60.  
  61.   <stringbundleset id="languageSet">
  62.     <stringbundle id="bundle_regions" src="chrome://global/locale/regionNames.properties"/>
  63.     <stringbundle id="bundle_languages" src="chrome://global/locale/languageNames.properties"/>
  64.     <stringbundle id="bundle_prefLang" src="chrome://browser/locale/pref/pref-languages.properties"/>
  65.     <stringbundle id="bundle_accepted" src="resource://gre/res/language.properties"/>
  66.   </stringbundleset>
  67.  
  68.   <groupbox flex="1">
  69.     <caption label="&languages.customize.label;"/>
  70.     <description>&languages.customize.prefLangDescript;</description>
  71.     <description>&languages.customize.active.label;</description>
  72.     <hbox flex="1">
  73.       <vbox flex="1">
  74.         <listbox id="active_languages" flex="1"
  75.                  preftype="localizedstring" prefstring="intl.accept_languages"
  76.                  prefvalue="" prefattribute="prefvalue" wsm_attributes="prefvalue"
  77.                  seltype="multiple" onselect="SelectLanguage();"/>
  78.         <spacer/>
  79.         <label accesskey="&languages.customize.selectLanguage.accesskey;" control="available_languages"/>
  80.         <menulist id="available_languages" oncommand="SelectAvailableLanguage();"
  81.                   label="&languages.customize.selectLanguage.label;"
  82.                   accesskey="&languages.customize.selectLanguage.accesskey;"
  83.                   prefstring="pref.browser.language.disable_addLanguages">
  84.           <menupopup/>
  85.         </menulist>
  86.       </vbox>
  87.       <vbox>
  88.         <button id="up" class="up" oncommand="MoveUp();"  disabled="true"
  89.                 label="&languages.customize.moveUp.label;"
  90.                 accesskey="&languages.customize.moveUp.accesskey;"
  91.                 prefstring="pref.browser.language.disable_button.up"/>
  92.         <button id="down" class="down" oncommand="MoveDown();" disabled="true"
  93.                 label="&languages.customize.moveDown.label;"
  94.                 accesskey="&languages.customize.moveDown.accesskey;"
  95.                 prefstring="pref.browser.language.disable_button.down"/>
  96.         <button id="remove" oncommand="RemoveActiveLanguage();" disabled="true"
  97.                 label="&languages.customize.deleteButton.label;"
  98.                 accesskey="&languages.customize.deleteButton.accesskey;"
  99.                 prefstring="pref.browser.language.disable_button.remove"/>
  100.         <spacer flex="1"/>
  101.         <button id="add" oncommand="AddAvailableLanguage();" disabled="true"
  102.                 label="&languages.customize.addButton.label;"
  103.                 accesskey="&languages.customize.addButton.accesskey;"/>
  104.       </vbox>
  105.     </hbox>
  106.   </groupbox>
  107.  
  108.   <groupbox align="start">
  109.     <caption label="&languages.customize.Charset.grouplabel;"/>
  110.     <hbox align="center">
  111.       <label value="&languages.customize.DefaultCharset.label;"
  112.              accesskey="&languages.customize.DefaultCharset.accesskey;"
  113.              control="DefaultCharsetList"/>
  114.       <menulist id="DefaultCharsetList" ref="NC:DecodersRoot" datasources="rdf:charset-menu"
  115.           prefstring="intl.charset.default" preftype="localizedstring"
  116.           wsm_attributes="value">
  117.           <template>
  118.             <menupopup>
  119.               <menuitem label="rdf:http://home.netscape.com/NC-rdf#Name" value="..." uri="..."/>
  120.             </menupopup>
  121.           </template>
  122.       </menulist>
  123.     </hbox>
  124.   </groupbox>
  125. </dialog>
  126.  
  127.