summaryrefslogtreecommitdiff
path: root/chromium/chrome/browser/resources/options/language_options.html
blob: 9265faebacf78bf2867df89c89499c05d1ef41fa (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
<div id="languagePage" class="page" hidden>
  <div class="close-button"></div>
  <h1 i18n-content="languagePage"></h1>
  <div class="content-area">
    <div id="notification">
      <span>&nbsp;</span>
      <span class="link"><span class="link-color"></span></span>
    </div>
    <div class="language-options-header">
      <span i18n-content="addLanguageInstructions"></span>
<if expr="chromeos">
      <span i18n-content="inputMethodInstructions"></span>
</if>
      <a target="_blank" i18n-content="learnMore"
          i18n-values="href:languagesLearnMoreURL"></a>
    </div>
    <div class="language-options">
      <div id="language-options-languages">
        <h3 i18n-content="languages"></h3>
        <list id="language-options-list"></list>
        <div class="language-options-lower-left">
          <button id="language-options-add-button"
            i18n-content="addButton">
          </button>
        </div>
        <div id="language-options-list-dropmarker"></div>
      </div>
      <div id="language-options-details">
        <h3 id="language-options-language-name"></h3>
<if expr="os == 'win32' or chromeos">
        <div id="language-options-ui-language-section"
             class="language-options-contents">
          <button id="language-options-ui-language-button"
              i18n-content="displayInThisLanguage">
          </button>
          <span class="controlled-setting-indicator"></span>
          <span id="language-options-ui-language-message" hidden></span>
        </div>
</if>
<!-- Chrome uses the native OS spellchecker in OS X, so don't display the
     dictionary pane. -->
<if expr="not is_macosx">
        <div id="language-options-spellcheck" class="language-options-contents">
          <div class="checkbox" id="spellcheck-language-checkbox-container">
            <label>
              <input type="checkbox" id="spellcheck-language-checkbox">
              <span i18n-content="useThisForSpellChecking"></span>
            </label>
          </div>
          <button id="spellcheck-language-button"
              i18n-content="useThisForSpellChecking">
          </button>
          <span id="spellcheck-language-message" hidden></span>
          <span id="language-options-dictionary-downloading-message"
              i18n-content="downloadingDictionary" hidden>
          </span>
        </div>
        <div id="language-options-dictionary-download-failed-message"
            class="language-options-notification" hidden>
          <div i18n-content="downloadFailed"></div>
          <div id="language-options-dictionary-download-fail-help-message"
              i18n-content="downloadFailHelp" hidden>
          </div>
          <button id="dictionary-download-retry-button"
              i18n-content="retryButton">
          </button>
        </div>
        <div id="language-options-ui-notification-bar"
            class="language-options-notification" hidden>
          <div i18n-content="restartRequired"></div>
<if expr="chromeos">
          <button id="language-options-ui-restart-button"
              i18n-content="restartButton">
          </button>
</if>
        </div>
</if>
        <div id="language-options-offer-to-translate"
            class="language-options-contents" hidden>
          <div class="checkbox">
            <label>
              <input type="checkbox" id="offer-to-translate-in-this-language">
              <span class="offer-to-translate-label"
                  i18n-content="offerToTranslateInThisLanguage"></span>
            </label>
          </div>
          <span id="cannot-translate-in-this-language"
               i18n-content="cannotTranslateInThisLanguage" hidden></span>
        </div>
<if expr="chromeos">
        <h3 i18n-content="inputMethod"></h3>
        <div id="language-options-input-method-template" class="input-method"
            hidden>
          <div class="checkbox">
            <label>
              <input type="checkbox">
              <span class="input-method-label"></span>
            </label>
          </div>
        </div>
        <div id="language-options-input-method-list"
             class="language-options-contents">
          <span id="language-options-input-method-none"
              i18n-content="noInputMethods" hidden>
          </span>
        </div>
</if>
      </div>
    </div>
    <div class="language-options-footer">
<if expr="chromeos">
      <div i18n-content="switchInputMethodsHint"></div>
      <div i18n-content="selectPreviousInputMethodHint"></div>
      <a is="action-link" id="edit-custom-dictionary-button"
          class="standalone-action-link"
          i18n-content="languageDictionaryOverlayTitle"></a>
</if>
<if expr="not chromeos and not is_macosx">
      <div class="checkbox">
        <label id="enable-spellcheck-container">
          <input id="enable-spellcheck" pref="browser.enable_spellchecking"
              metric="Options_SpellCheck" type="checkbox">
          <span i18n-content="enableSpellCheck"></span>
        </label>
        <a is="action-link" id="edit-custom-dictionary-button"
            i18n-content="languageDictionaryOverlayTitle" hidden></a>
      </div>
      <div id="auto-spell-correction-option" class="checkbox" hidden>
        <label>
          <input id="enable-auto-spell-correction"
              pref="browser.enable_autospellcorrect"
              metric="Options_AutoSpellCorrection" type="checkbox">
          <span i18n-content="enableAutoSpellCorrection"></span>
        </label>
      </div>
</if>
    </div>
  </div>
  <div class="action-area">
    <div class="button-strip">
      <button id="language-confirm" class="default-button" i18n-content="done">
      </button>
    </div>
  </div>
</div>