function finish() {
      if (translationRequired) {
        if (!inlineDict) {
          // no inline dictionary has been used: translate the whole document
          untranslatedElements = translateFragment();
        } else if (untranslatedElements.length) {
          // the document should have been already translated but the inline
          // dictionary didn't include all necessary l10n keys:
          // try to translate all remaining elements now
          untranslatedElements = translateElements(untranslatedElements);
        }
      }
      // tell the rest of the world we're done
      // -- note that `gReadyState' must be set before the `localized' event is
      //    fired for `localizeElement()' to work as expected
      gReadyState = 'complete';
      fireL10nReadyEvent(lang);
      consoleWarn_missingKeys(untranslatedElements, lang);
    }
// translate the document if required and fire a `localized' event
translate the document if required and fire a `localized' event
translate the document if required and fire a ` localized ' event
function finish() {
      if (translationRequired) {
        if (!inlineDict) {
          untranslatedElements = translateFragment();
        } else if (untranslatedElements.length) {
          untranslatedElements = translateElements(untranslatedElements);
        }
      }
      gReadyState = 'complete';
      fireL10nReadyEvent(lang);
      consoleWarn_missingKeys(untranslatedElements, lang);
    }
function finish ( ) { if ( translationRequired ) { if ( ! inlineDict ) { untranslatedElements = translateFragment ( ) ; } else if ( untranslatedElements . length ) { untranslatedElements = translateElements ( untranslatedElements ) ; } } gReadyState = 'complete' ; fireL10nReadyEvent ( lang ) ; consoleWarn_missingKeys ( untranslatedElements , lang ) ; }
translate the document if required and fire a `localized' event
translate the document if required and fire a ` localized ' event
// no inline dictionary has been used: translate the whole document // the document should have been already translated but the inline // dictionary didn't include all necessary l10n keys: // try to translate all remaining elements now // tell the rest of the world we're done // -- note that `gReadyState' must be set before the `localized' event is //    fired for `localizeElement()' to work as expected