* @var array
*/
static public $languagesWithVariants = [
+ 'en',
'gan',
'iu',
'kk',
* @return string The converted text
*/
public function autoConvert( $text, $toVariant = false ) {
-
$this->loadTables();
if ( !$toVariant ) {
*
* @param string $text Text to be converted
* @param string $variant The target variant code
- * @param int $startPos
+ * @param int &$startPos
* @param int $depth Depth of recursion
*
* @throws MWException
/**
* Reload the conversion tables.
*
+ * Also used by test suites which need to reset the converter state.
+ *
* @private
*/
- function reloadTables() {
+ private function reloadTables() {
if ( $this->mTables ) {
unset( $this->mTables );
}