locale_js_alter

function locale_js_alter

locale_js_alter(&$javascript)

Implements hook_js_alter().

This function checks all JavaScript files currently added via drupal_add_js() and invokes parsing if they have not yet been parsed for Drupal.t() and Drupal.formatPlural() calls. Also refreshes the JavaScript translation file if necessary, and adds it to the page.

File

modules/locale/locale.module, line 900
Add language handling functionality and enables the translation of