summaryrefslogtreecommitdiffstats
path: root/browser/components/preferences/dialogs/translations.xhtml
blob: 205bd54ac118c115a5aa30fab97ff0acbc8d1255 (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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<?xml version="1.0"?>

<!-- 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://global/skin/global.css" type="text/css"?>
<?xml-stylesheet href="chrome://browser/skin/preferences/preferences.css" type="text/css"?>

<window
  id="TranslationsDialog"
  data-l10n-id="translations-settings-title"
  data-l10n-attrs="title, style"
  xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  xmlns:html="http://www.w3.org/1999/xhtml"
  onload="gTranslationsSettings.onLoad();"
  onunload="gTranslationsSettings.removeObservers();"
  persist="width height"
>
  <dialog
    buttons="accept"
    data-l10n-id="translations-settings-close-dialog"
    data-l10n-attrs="buttonlabelaccept, buttonaccesskeyaccept"
  >
    <linkset>
      <html:link rel="localization" href="browser/translations.ftl" />
    </linkset>

    <script src="chrome://browser/content/preferences/dialogs/translations.js" />

    <keyset>
      <key
        data-l10n-id="translations-settings-close-key"
        modifiers="accel"
        oncommand="window.close();"
      />
    </keyset>

    <vbox class="contentPane">
      <vbox flex="1">
        <label
          id="alwaysTranslateLanguagesLabel"
          data-l10n-id="translations-settings-always-translate-langs-description"
          control="permissionsTree"
        />
        <separator class="thin" />
        <tree
          id="alwaysTranslateLanguagesTree"
          flex="1"
          style="height: 12em"
          hidecolumnpicker="true"
          onkeypress="gTranslationsSettings.onAlwaysTranslateLanguageKeyPress(event)"
          onselect="gTranslationsSettings.onSelectAlwaysTranslateLanguage();"
        >
          <treecols>
            <treecol
              id="languageCol"
              data-l10n-id="translations-settings-languages-column"
              flex="1"
            />
          </treecols>
          <treechildren />
        </tree>
      </vbox>
      <hbox class="actionButtons" pack="start">
        <button
          id="removeAlwaysTranslateLanguage"
          disabled="true"
          data-l10n-id="translations-settings-remove-language-button"
          oncommand="gTranslationsSettings.onRemoveAlwaysTranslateLanguage();"
        />
        <button
          id="removeAllAlwaysTranslateLanguages"
          data-l10n-id="translations-settings-remove-all-languages-button"
          oncommand="gTranslationsSettings.onRemoveAllAlwaysTranslateLanguages();"
        />
      </hbox>
      <separator />
      <vbox flex="1">
        <label
          id="neverTranslateLanguagesLabel"
          data-l10n-id="translations-settings-never-translate-langs-description"
          control="permissionsTree"
        />
        <separator class="thin" />
        <tree
          id="neverTranslateLanguagesTree"
          flex="1"
          style="height: 12em"
          hidecolumnpicker="true"
          onkeypress="gTranslationsSettings.onNeverTranslateLanguageKeyPress(event)"
          onselect="gTranslationsSettings.onSelectNeverTranslateLanguage();"
        >
          <treecols>
            <treecol
              id="languageCol"
              data-l10n-id="translations-settings-languages-column"
              flex="1"
            />
          </treecols>
          <treechildren />
        </tree>
      </vbox>
      <hbox class="actionButtons" pack="start">
        <button
          id="removeNeverTranslateLanguage"
          disabled="true"
          data-l10n-id="translations-settings-remove-language-button"
          oncommand="gTranslationsSettings.onRemoveNeverTranslateLanguage();"
        />
        <button
          id="removeAllNeverTranslateLanguages"
          data-l10n-id="translations-settings-remove-all-languages-button"
          oncommand="gTranslationsSettings.onRemoveAllNeverTranslateLanguages();"
        />
      </hbox>
      <separator />
      <vbox flex="1">
        <label
          id="neverTranslateSitesLabel"
          data-l10n-id="translations-settings-never-translate-sites-description"
          control="permissionsTree"
        />
        <separator class="thin" />
        <tree
          id="neverTranslateSitesTree"
          flex="1"
          style="height: 12em"
          hidecolumnpicker="true"
          onkeypress="gTranslationsSettings.onNeverTranslateSiteKeyPress(event)"
          onselect="gTranslationsSettings.onSelectNeverTranslateSite();"
        >
          <treecols>
            <treecol
              id="siteCol"
              data-l10n-id="translations-settings-sites-column"
              flex="1"
            />
          </treecols>
          <treechildren />
        </tree>
      </vbox>
      <hbox class="actionButtons" pack="start">
        <button
          id="removeNeverTranslateSite"
          disabled="true"
          data-l10n-id="translations-settings-remove-site-button"
          oncommand="gTranslationsSettings.onRemoveNeverTranslateSite();"
        />
        <button
          id="removeAllNeverTranslateSites"
          data-l10n-id="translations-settings-remove-all-sites-button"
          oncommand="gTranslationsSettings.onRemoveAllNeverTranslateSites();"
        />
      </hbox>
    </vbox>
  </dialog>
</window>