summaryrefslogtreecommitdiffstats
path: root/browser/components/preferences/translations.inc.xhtml
blob: 1143cbc6d07874c7a66d3c88f4984df1495a9d71 (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
# 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/.

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

<div id="translations-settings-page"
     xmlns="http://www.w3.org/1999/xhtml"
     xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
     data-category="paneTranslations"
     data-hidden-from-search="true"
     hidden="true">

  <button id="translations-settings-back-button" class="back-button"
          data-l10n-id="translations-settings-back-button"/>

  <h1 id="translations-settings-header"
      data-l10n-id="translations-settings-header"/>

  <p id="translations-settings-description" data-l10n-id="translations-settings-description"/>

  <moz-card class="translations-settings-manage-section" data-l10n-attrs="heading"
       id="translations-settings-always-translate-section">
    <div class="translations-settings-manage-language">
      <h2 id="translations-settings-always-translate" data-l10n-id="translations-settings-always-translate"/>
      <xul:menulist id="translations-settings-always-translate-list"
                    data-l10n-id="translations-settings-add-language-button"
                    aria-labelledby="translations-settings-always-translate">
        <!-- The list of <menuitem> will be dynamically inserted. -->
        <xul:menupopup id="translations-settings-always-translate-popup"/>
      </xul:menulist>
    </div>
  </moz-card>

  <moz-card id="translations-settings-never-translate-section"
       class="translations-settings-manage-section">
    <div class="translations-settings-manage-language">
      <h2 id="translations-settings-never-translate" data-l10n-id="translations-settings-never-translate"/>
      <xul:menulist id="translations-settings-never-translate-list"
                    data-l10n-id="translations-settings-add-language-button"
                    aria-labelledby="translations-settings-never-translate">
        <!-- The list of <menuitem> will be dynamically inserted. -->
        <xul:menupopup id="translations-settings-never-translate-popup"/>
      </xul:menulist>
    </div>
  </moz-card>

  <moz-card id="translations-settings-never-sites-section"
            class="translations-settings-manage-section">
    <div class="translations-settings-manage-section-info" >
      <h2 id="translations-settings-never-sites-header"
          data-l10n-id="translations-settings-never-sites-header"/>
      <p id="translations-settings-never-sites"
         data-l10n-id="translations-settings-never-sites-description"/>
    </div>
  </moz-card>

  <moz-card id="translations-settings-download-section"
       class="translations-settings-manage-section">
    <div class="translations-settings-manage-section-info">
      <h2 data-l10n-id="translations-settings-download-languages"/>
      <a is="moz-support-link" class="learnMore"
          id="download-languages-learn-more"
          data-l10n-id="translations-settings-download-languages-link"
          support-page="website-translation"/>
    </div>
    <div class="translations-settings-languages-card">
      <h3 class="translations-settings-language-header" data-l10n-id="translations-settings-language-header"></h3>
      <div class="translations-settings-language-list">
        <div class="translations-settings-language">
          <moz-button class="translations-settings-download-icon" type="ghost icon"
                      aria-label="translations-settings-download-all-languages"></moz-button>
          <!--  The option to "All languages" is added here.
                In translations.js the option to download individual languages is
                added dynamically based on the supported language list -->
          <label id="translations-settings-download-all-languages" data-l10n-id="translations-settings-download-all-languages"></label>
        </div>
      </div>
    </div>
  </moz-card>
</div>