Lines Matching full:language
27 * Encapsulated handling of ChromeOS language options page.
48 var languageOptionsList = $('language-options-list');
67 $('language-options-add-button').onclick = function(e) {
68 // Add the language without showing the overlay if it's specified in
73 $('language-options-list').addLanguage(addLanguageCode);
80 // Listen to user clicks on the add language list.
81 var addLanguageList = $('add-language-overlay-language-list');
85 // Listen to add language dialog ok button.
86 var addLanguageOkButton = $('add-language-overlay-ok-button');
99 preloadEnginesPref: 'settings.language.preload_engines',
103 // dictionary language, like "en-US".
106 // The map of language code to input method IDs, like:
114 var inputMethodList = $('language-options-input-method-list');
119 // on the selected language. Note that we only have less than 100
180 $('language-options-list').redraw();
191 var languageOptionsList = $('language-options-list');
193 // Select the language if it's specified in the URL hash (ex. lang=ja).
240 var languageOptionsList = $('language-options-list');
249 // Create the new preload engine list per the language codes.
255 // Check if we have active input methods associated with the language.
262 // method can be associated with more than one language thus
273 * Initializes the map of language code to input method IDs.
293 * Updates the currently selected language name.
294 * @param {string} languageCode Language code (ex. "fr").
306 // Update the currently selected language name.
307 $('language-options-language-name').textContent = languageDisplayName;
311 * Updates the UI language button.
312 * @param {string} languageCode Language code (ex. "fr").
316 var uiLanguageButton = $('language-options-ui-language-button');
317 // Check if the language code matches the current UI language.
319 // If it matches, the button just says that the UI language is
328 // If the language is supported as UI language, users can click on
329 // the button to change the UI language.
338 $('language-options-ui-restart-button').onclick = function(e) {
343 // If the language is not supported as UI language, the button
344 // just says that Chromium OS cannot be displayed in this language.
351 $('language-options-ui-notification-bar').style.display = 'none';
355 * Updates the spell check language button.
356 * @param {string} languageCode Language code (ex. "fr").
361 'language-options-spell-check-language-button');
362 // Check if the language code matches the current spell check language.
364 // If it matches, the button just says that the spell check language is
373 // If the language is supported as spell check language, users can
374 // click on the button to change the spell check language.
383 // If the language is not supported as spell check language, the
384 // button just says that this language cannot be used for spell
392 $('language-options-ui-notification-bar').style.display = 'none';
397 * @param {string} languageCode Language code (ex. "fr").
410 var inputMethodList = $('language-options-input-method-list');
427 $('language-options-add-button').focus();
432 * Updates the language list in the add language overlay.
433 * @param {string} languageCode Language code (ex. "fr").
437 // Change the visibility of the language list in the add language
439 // so that users don't add the same language twice.
440 var languageOptionsList = $('language-options-list');
446 var addLanguageList = $('add-language-overlay-language-list');
449 // The first child button knows the language code.
468 $('language-options-list').updateDeletable();
497 * Handles add language list's click event.
501 var languageOptionsList = $('language-options-list');
510 // Enable the first input method for the language added.
525 * Handles add language dialog ok button.
528 var languagesSelect = $('add-language-overlay-language-list');
532 $('language-options-list').addLanguage(String(selection.value));
542 // Don't allow removing the language if it's as UI language.
557 var languageOptionsList = $('language-options-list');
576 * Checks whether it's possible to remove the language specified by
580 * @param {string} languageCode Language code (ex. "fr").
586 // associated with the language code.
595 var languageCodes = $('language-options-list').getLanguageCodes();
597 // Skip the target language code.
601 // Check if input methods used in this language are included in
647 var inputMethodList = $('language-options-input-method-list');
661 var inputMethodList = $('language-options-input-method-list');
668 var languageOptionsList = $('language-options-list');
757 * Chrome callback for when the UI language preference is saved.
760 $('language-options-ui-language-button').style.display = 'none';
761 $('language-options-ui-notification-bar').style.display = 'block';