Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
TranslatePreferences Class Reference

Class to add Translate specific preference settings. More...

Static Public Member Functions

static translationAssistLanguages (User $user, &$preferences)
 Add 'translate-editlangs' preference.
 

Static Protected Member Functions

static languageSelector ()
 JavsScript selector for language codes.
 

Detailed Description

Class to add Translate specific preference settings.

Definition at line 19 of file TranslatePreferences.php.

Member Function Documentation

◆ languageSelector()

static TranslatePreferences::languageSelector ( )
staticprotected

JavsScript selector for language codes.

Returns
JsSelectToInput

Definition at line 54 of file TranslatePreferences.php.

◆ translationAssistLanguages()

static TranslatePreferences::translationAssistLanguages ( User $user,
& $preferences )
static

Add 'translate-editlangs' preference.

These are the languages also shown when translating.

Parameters
User$user
array&$preferences
Returns
bool true

Definition at line 28 of file TranslatePreferences.php.


The documentation for this class was generated from the following file: