class \mpf\translators\ArrayFile

class \mpf\translators\ArrayFile

-no description found-

Attributes
private static \mpf\translators\ArrayFile[] $instance

-no description found-

protected mixed $translations = []

-no description found-

public string $fileName = "config/translations/{language}.php"

Path to translation file. If it starts with / or {letter}:\ it will use it as full path, if not it will use this as relative to app folder. {language} can be used and it will be replaced by the actual selected language.

Methods

public static \mpf\translators\TranslatorInterface get (array $config = [])

  • $config

    -no description found-

-no description found-

public mixed setLanguage (mixed $language)

  • $language

    -no description found-

-no description found-

public mixed t (mixed $text, mixed $class = null)

  • $text

    -no description found-

  • $class

    -no description found-

-no description found-