MediaWiki master
EnConverter Class Reference

English specific converter routines. More...

Inherits LanguageConverter.

Collaboration diagram for EnConverter:

Public Member Functions

 getLanguageVariants ()
 
 getMainCode ()
 
 getVariantsFallbacks ()
 
 translate ( $text, $toVariant)
 Translates text into Pig Latin.
 

Protected Member Functions

 loadDefaultTables ()
 

Detailed Description

English specific converter routines.

Definition at line 26 of file EnConverter.php.

Member Function Documentation

◆ getLanguageVariants()

EnConverter::getLanguageVariants ( )

Definition at line 32 of file EnConverter.php.

◆ getMainCode()

EnConverter::getMainCode ( )

Definition at line 28 of file EnConverter.php.

◆ getVariantsFallbacks()

EnConverter::getVariantsFallbacks ( )

Definition at line 36 of file EnConverter.php.

◆ loadDefaultTables()

EnConverter::loadDefaultTables ( )
protected

Definition at line 40 of file EnConverter.php.

◆ translate()

EnConverter::translate ( $text,
$toVariant )

Translates text into Pig Latin.

This allows developers to test the language variants functionality and user interface without having to switch wiki language away from default. This method also processes custom conversion rules to allow testing these parts of the language converter as well.

Parameters
string$text
string$toVariant
Returns
string

Definition at line 57 of file EnConverter.php.

References $matches.


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