Class to add Translate specific preference settings. More...
Static Public Member Functions | |
static | onGetPreferences ($user, &$preferences) |
Add 'translate-pref-nonewsletter' preference. | |
static | translationAssistLanguages (User $user, &$preferences) |
Add 'translate-editlangs' preference. | |
static | translationJsedit (User $user, &$preferences) |
Add 'translate-jsedit' preference. | |
Static Protected Member Functions | |
static | languageSelector () |
JavsScript selector for language codes. |
Class to add Translate specific preference settings.
Definition at line 15 of file UserToggles.php.
static TranslatePreferences::languageSelector | ( | ) | [static, protected] |
JavsScript selector for language codes.
Definition at line 105 of file UserToggles.php.
Referenced by translationAssistLanguages().
static TranslatePreferences::onGetPreferences | ( | $ | user, | |
&$ | preferences | |||
) | [static] |
Add 'translate-pref-nonewsletter' preference.
This is most probably specific to translatewiki.net. Can be enabled with $wgTranslateNewsletterPreference.
$user | User | |
$preferences | array |
Definition at line 25 of file UserToggles.php.
static TranslatePreferences::translationAssistLanguages | ( | User $ | user, | |
&$ | preferences | |||
) | [static] |
Add 'translate-editlangs' preference.
These are the languages also shown when translating.
User | $user | |
array | $preferences |
Definition at line 62 of file UserToggles.php.
static TranslatePreferences::translationJsedit | ( | User $ | user, | |
&$ | preferences | |||
) | [static] |
Add 'translate-jsedit' preference.
An option to disable the javascript edit interface.
User | $user | |
array | $preferences |
Definition at line 91 of file UserToggles.php.