You are here

function hook_l10n_update_languages_alter in Localization update 7.2

Alter the list of languages to be updated by Localization Update.

Parameters

array $langcodes: Language codes of languages to be updated by Localization Update module.

1 function implements hook_l10n_update_languages_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

l10n_update_l10n_update_languages_alter in ./l10n_update.module
Implements hook_l10n_update_languages_alter().
1 invocation of hook_l10n_update_languages_alter()
l10n_update_translatable_language_list in ./l10n_update.module
Returns list of translatable languages.

File

./l10n_update.api.php, line 64
API documentation for Localize updater module.

Code

function hook_l10n_update_languages_alter(array &$langcodes) {

  // Use a different language code for Dutch translations.
  if (isset($langcodes['nl'])) {
    $langcodes['nl-NL'] = $langcodes['nl'];
    unset($langcodes['nl']);
  }
}