Home | History | Annotate | Download | only in options
      1 <div id="languagePage" class="page" hidden>
      2   <div class="close-button"></div>
      3   <h1 i18n-content="languagePage"></h1>
      4   <div class="content-area">
      5     <div id="notification">
      6       <span>&nbsp;</span>
      7       <span class="link"><span class="link-color"></span></span>
      8     </div>
      9     <div class="language-options-header">
     10       <span i18n-content="addLanguageInstructions"></span>
     11 <if expr="chromeos">
     12       <span i18n-content="inputMethodInstructions"></span>
     13 </if>
     14       <a target="_blank" i18n-content="learnMore"
     15           i18n-values="href:languagesLearnMoreURL"></a>
     16     </div>
     17     <div class="language-options">
     18       <div id="language-options-languages">
     19         <h3 i18n-content="languages"></h3>
     20         <list id="language-options-list"></list>
     21         <div class="language-options-lower-left">
     22           <button id="language-options-add-button"
     23             i18n-content="addButton">
     24           </button>
     25         </div>
     26         <div id="language-options-list-dropmarker"></div>
     27       </div>
     28       <div id="language-options-details">
     29         <h3 id="language-options-language-name"></h3>
     30 <if expr="os == 'win32' or chromeos">
     31         <div class="language-options-contents">
     32           <button id="language-options-ui-language-button"
     33               i18n-content="displayInThisLanguage">
     34           </button>
     35           <span class="controlled-setting-indicator"></span>
     36           <span id="language-options-ui-language-message" hidden></span>
     37         </div>
     38 </if>
     39 <!-- Chrome uses the native OS spellchecker in OS X, so don't display the
     40      dictionary pane. -->
     41 <if expr="not is_macosx">
     42         <div id="language-options-spellcheck" class="language-options-contents">
     43           <button id="language-options-spell-check-language-button"
     44               i18n-content="useThisForSpellChecking">
     45           </button>
     46           <span id="language-options-spell-check-language-message" hidden>
     47           </span>
     48           <span id="language-options-dictionary-downloading-message"
     49               i18n-content="downloadingDictionary" hidden>
     50           </span>
     51         </div>
     52         <div id="language-options-dictionary-download-failed-message"
     53             class="language-options-notification" hidden>
     54           <div i18n-content="downloadFailed"></div>
     55           <div id="language-options-dictionary-download-fail-help-message"
     56               i18n-content="downloadFailHelp" hidden>
     57           </div>
     58           <button id="dictionary-download-retry-button"
     59               i18n-content="retryButton">
     60           </button>
     61         </div>
     62         <div id="language-options-ui-notification-bar"
     63             class="language-options-notification" hidden>
     64           <div i18n-content="restartRequired"></div>
     65 <if expr="chromeos">
     66           <button id="language-options-ui-restart-button"
     67               i18n-content="restartButton">
     68           </button>
     69 </if>
     70         </div>
     71 </if>
     72         <div id="language-options-offer-to-translate"
     73             class="language-options-contents" hidden>
     74           <div class="checkbox">
     75             <label>
     76               <input type="checkbox" id="offer-to-translate-in-this-language">
     77               <span class="offer-to-translate-label"
     78                   i18n-content="offerToTranslateInThisLanguage"></span>
     79             </label>
     80           </div>
     81           <span id="cannot-translate-in-this-language"
     82                i18n-content="cannotTranslateInThisLanguage" hidden></span>
     83         </div>
     84 <if expr="chromeos">
     85         <h3 i18n-content="inputMethod"></h3>
     86         <div id="language-options-input-method-template" class="input-method"
     87             hidden>
     88           <div class="checkbox">
     89             <label>
     90               <input type="checkbox">
     91               <span class="input-method-label"></span>
     92             </label>
     93           </div>
     94         </div>
     95         <div id="language-options-input-method-list"
     96              class="language-options-contents">
     97           <span id="language-options-input-method-none"
     98               i18n-content="noInputMethods" hidden>
     99           </span>
    100         </div>
    101 </if>
    102       </div>
    103     </div>
    104     <div class="language-options-footer">
    105 <if expr="chromeos">
    106       <div i18n-content="switchInputMethodsHint"></div>
    107       <div i18n-content="selectPreviousInputMethodHint"></div>
    108       <button id="edit-dictionary-button"
    109           class="link-button standalone-link-button"
    110           i18n-content="languageDictionaryOverlayTitle"></button>
    111 </if>
    112 <if expr="not chromeos and not is_macosx">
    113       <div id="spell-check-option" class="checkbox">
    114         <label>
    115           <input id="enable-spell-check" pref="browser.enable_spellchecking"
    116               metric="Options_SpellCheck" type="checkbox">
    117           <span i18n-content="enableSpellCheck"></span>
    118         </label>
    119         <button id="edit-dictionary-button" class="link-button"
    120             i18n-content="languageDictionaryOverlayTitle" hidden></button>
    121       </div>
    122       <div id="auto-spell-correction-option" class="checkbox" hidden>
    123         <label>
    124           <input id="enable-auto-spell-correction"
    125               pref="browser.enable_autospellcorrect"
    126               metric="Options_AutoSpellCorrection" type="checkbox">
    127           <span i18n-content="enableAutoSpellCorrection"></span>
    128         </label>
    129       </div>
    130 </if>
    131     </div>
    132   </div>
    133   <div class="action-area">
    134     <div class="button-strip">
    135       <button id="language-confirm" class="default-button" i18n-content="done">
    136       </button>
    137     </div>
    138   </div>
    139 </div>
    140