TranslatePreferences Class Reference

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

List of all members.

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.

Detailed Description

Class to add Translate specific preference settings.

Definition at line 15 of file UserToggles.php.


Member Function Documentation

static TranslatePreferences::languageSelector (  )  [static, protected]

JavsScript selector for language codes.

Returns:
JsSelectToInput

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.

Parameters:
$user User
$preferences array
Returns:
bool true

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.

Parameters:
User $user
array $preferences
Returns:
bool true

Definition at line 62 of file UserToggles.php.

Here is the call graph for this function:

static TranslatePreferences::translationJsedit ( User $  user,
&$  preferences 
) [static]

Add 'translate-jsedit' preference.

An option to disable the javascript edit interface.

Parameters:
User $user
array $preferences
Returns:
bool true

Definition at line 91 of file UserToggles.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