function hook_transliteration_overrides_alter

Provide language-specific overrides for transliteration.

Parameters

array $overrides: Associative array of language-specific overrides whose keys are integer Unicode character codes, and whose values are the transliterations of those characters in the given language, to override default transliterations.

string $langcode: The code for the language that is being transliterated.

Related topics

1 function implements hook_transliteration_overrides_alter()

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

transliterate_test_transliteration_overrides_alter in drupal/core/modules/system/tests/modules/transliterate_test/transliterate_test.module
Implements hook_transliteration_overrides_alter().
1 invocation of hook_transliteration_overrides_alter()

File

drupal/core/modules/system/language.api.php, line 242
Hooks provided by the base system for language support.

Code

function hook_transliteration_overrides_alter(&$overrides, $langcode) {

  // Provide special overrides for German for a custom site.
  if ($langcode == 'de') {

    // The core-provided transliteration of Ä is Ae, but we want just A.
    $overrides[0xc4] = 'A';
  }
}