Manual:Hooks/LanguageGetTranslatedLanguageNames/cs
LanguageGetTranslatedLanguageNames | |
---|---|
Available from version 1.18.0 (r79359, codereview) Poskytne přeložené názvy jazyků. | |
Define function: | public static function onLanguageGetTranslatedLanguageNames( &$names, $code ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"LanguageGetTranslatedLanguageNames": "MediaWiki\\Extension\\MyExtension\\Hooks::onLanguageGetTranslatedLanguageNames"
}
}
|
Called from: | File(s): ../languages/Language.php |
Interface: | LanguageGetTranslatedLanguageNamesHook.php |
For more information about attaching hooks, see Příručka:Háčky .
For examples of extensions using this hook, see Category:LanguageGetTranslatedLanguageNames extensions/cs.
Podrobnosti
edit- &$names: pole kódu jazyka => název jazyka
- $code: preferovaný jazyk překladů