summaryrefslogtreecommitdiffstats
path: root/comm/suite/components/pref/content/pref-languages-add.xul
blob: 0ae11aee9b0ea8770537cd0bb59d8f3fe88598cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?xml version="1.0"?> <!-- -*- Mode: SGML; indent-tabs-mode: nil; -*- -->
<!--

 This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>

<!DOCTYPE prefwindow SYSTEM "chrome://communicator/locale/pref/pref-languages.dtd" >


<prefwindow xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
            id="addLanguagesPreferences"
            title="&languages.customize.add.title.label;"
            type="child"
            onload="OnLoadAddLanguages();"
            onbeforeaccept="DoBeforeAccept();"
            ondialogaccept="return OnAccept();">

  <script src="chrome://communicator/content/pref/pref-languages-add.js"/>

  <prefpane id="addLanguagesPane">
    <preferences id="addLanguages">
      <preference id="intl.accept_languages"
                  name="intl.accept_languages"
                  type="wstring"/>
    </preferences>

    <stringbundleset id="langAddBundleset">
      <stringbundle id="prefLangAddBundle"
                    src="chrome://communicator/locale/pref/pref-languages.properties"/>
    </stringbundleset>

    <description style="width: 1px;">&languages.customize.prefAddLangDescript;</description>
    <separator class="thin"/>
    <description style="width: 1px;">&languages.customize.available.label;</description>

    <listbox id="availableLanguages"
             flex="1"
             seltype="multiple"
             preference="intl.accept_languages"
             ondblclick="HandleDoubleClick();"
             onsynctopreference="return WriteAddedLanguages(this);"/>

    <hbox align="center">
      <label value="&languages.customize.others.label;"
             accesskey="&languages.customize.others.accesskey;"
             control="otherLanguages"/>
      <textbox id="otherLanguages" size="12" flex="1"/>
      <label value="&languages.customize.others.examples;" control="otherLanguages"/>
    </hbox>
  </prefpane>
</prefwindow>