TranslateHooks Class Reference

Some hooks for Translate extension. More...

List of all members.

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.

Detailed Description

Some hooks for Translate extension.

Definition at line 14 of file TranslateHooks.php.


Member Function Documentation

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.

Here is the call graph for this function:

static TranslateHooks::hideDiscouragedFromStats ( id,
code 
) [static]

Hook: Translate:MessageGroupStats:isIncluded.

Definition at line 443 of file TranslateHooks.php.

Here is the call graph for this function:

static TranslateHooks::hideRestrictedFromStats ( id,
code 
) [static]

Hook: Translate:MessageGroupStats:isIncluded.

Definition at line 449 of file TranslateHooks.php.

Here is the call graph for this function:

static TranslateHooks::onPageContentLanguage ( Title $  title,
&$  pageLang 
) [static]

Set the correct page content language for translation units.

Hook: PageContentLanguage

Parameters:
$title Title
$pageLang 
Returns:
bool

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.

Parameters:
$updater DatabaseUpdater
Returns:
bool

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.

Parameters:
$list array
Returns:
bool

Definition at line 20 of file TranslateHooks.php.

static TranslateHooks::setupParserHooks ( parser  )  [static]

Hook: ParserFirstCallInit Registers <languages> tag with the parser.

Parameters:
$parser Parser
Returns:
bool

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

Todo:
Register our css, is there a better place for this?

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.


The documentation for this class was generated from the following file:
Generated on Tue Oct 29 00:00:55 2013 for MediaWiki Translate Extension by  doxygen 1.6.3