Some hooks for Translate extension. More...
Static Public Member Functions | |
static | setupNamespaces (&$list) |
Hook: CanonicalNamespaces. | |
static | setupTranslate () |
Initialises the extension. | |
static | setupParserHooks ($parser) |
Hook: ParserFirstCallInit Registers <languages> tag with the parser. | |
static | schemaUpdates (DatabaseUpdater $updater) |
Hook: LoadExtensionSchemaUpdates. | |
static | parserTestTables (array &$tables) |
Hook: ParserTestTables. | |
static | onPageContentLanguage (Title $title, &$pageLang) |
Set the correct page content language for translation units. | |
static | translateMessageDocumentationLanguage (&$names, $code) |
Hook: LanguageGetTranslatedLanguageNames Hook: TranslateSupportedLanguages. | |
static | searchProfile (array &$profiles) |
Hook: SpecialSearchProfiles. | |
static | searchProfileForm (SpecialSearch $search, &$form, $profile, $term, array $opts) |
Hook: SpecialSearchProfileForm. | |
static | searchProfileSetupEngine (SpecialSearch $search, $profile, SearchEngine $engine) |
Hook: SpecialSearchSetupEngine. | |
static | hideDiscouragedFromStats ($id, $code) |
Hook: Translate:MessageGroupStats:isIncluded. | |
static | hideRestrictedFromStats ($id, $code) |
Hook: Translate:MessageGroupStats:isIncluded. | |
static | preventCategorization (LinksUpdate $updater) |
Hook LinksUpdate. | |
static | addConfig (&$vars, OutputPage $out) |
Hook: MakeGlobalVariablesScript. |
Some hooks for Translate extension.
Definition at line 14 of file TranslateHooks.php.
static TranslateHooks::addConfig | ( | &$ | vars, | |
OutputPage $ | out | |||
) | [static] |
Hook: MakeGlobalVariablesScript.
Adds $wgTranslateDocumentationLanguageCode to ResourceLoader configuration when Special:Translate is shown.
Definition at line 478 of file TranslateHooks.php.
static TranslateHooks::hideDiscouragedFromStats | ( | $ | id, | |
$ | code | |||
) | [static] |
Hook: Translate:MessageGroupStats:isIncluded.
Definition at line 443 of file TranslateHooks.php.
static TranslateHooks::hideRestrictedFromStats | ( | $ | id, | |
$ | code | |||
) | [static] |
Hook: Translate:MessageGroupStats:isIncluded.
Definition at line 449 of file TranslateHooks.php.
static TranslateHooks::onPageContentLanguage | ( | Title $ | title, | |
&$ | pageLang | |||
) | [static] |
Set the correct page content language for translation units.
Hook: PageContentLanguage
$title | Title | |
$pageLang |
Definition at line 323 of file TranslateHooks.php.
static TranslateHooks::parserTestTables | ( | array &$ | tables | ) | [static] |
Hook: ParserTestTables.
Definition at line 307 of file TranslateHooks.php.
static TranslateHooks::preventCategorization | ( | LinksUpdate $ | updater | ) | [static] |
Hook LinksUpdate.
Definition at line 463 of file TranslateHooks.php.
static TranslateHooks::schemaUpdates | ( | DatabaseUpdater $ | updater | ) | [static] |
Hook: LoadExtensionSchemaUpdates.
$updater | DatabaseUpdater |
Definition at line 210 of file TranslateHooks.php.
static TranslateHooks::searchProfile | ( | array &$ | profiles | ) | [static] |
Hook: SpecialSearchProfiles.
Definition at line 354 of file TranslateHooks.php.
static TranslateHooks::searchProfileForm | ( | SpecialSearch $ | search, | |
&$ | form, | |||
$ | profile, | |||
$ | term, | |||
array $ | opts | |||
) | [static] |
Hook: SpecialSearchProfileForm.
Definition at line 371 of file TranslateHooks.php.
static TranslateHooks::searchProfileSetupEngine | ( | SpecialSearch $ | search, | |
$ | profile, | |||
SearchEngine $ | engine | |||
) | [static] |
Hook: SpecialSearchSetupEngine.
Definition at line 425 of file TranslateHooks.php.
static TranslateHooks::setupNamespaces | ( | &$ | list | ) | [static] |
Hook: CanonicalNamespaces.
$list | array |
Definition at line 20 of file TranslateHooks.php.
static TranslateHooks::setupParserHooks | ( | $ | parser | ) | [static] |
Hook: ParserFirstCallInit Registers <languages> tag with the parser.
$parser | Parser |
Definition at line 178 of file TranslateHooks.php.
static TranslateHooks::setupTranslate | ( | ) | [static] |
Initialises the extension.
Does late-initialization that is not possible at file level, because it depends on user configuration.
Page translation hooks
Definition at line 37 of file TranslateHooks.php.
Referenced by PageTranslationTaggingText::setUp().
static TranslateHooks::translateMessageDocumentationLanguage | ( | &$ | names, | |
$ | code | |||
) | [static] |
Hook: LanguageGetTranslatedLanguageNames Hook: TranslateSupportedLanguages.
Definition at line 336 of file TranslateHooks.php.