abstract class \mpf\interfaces\TranslatorInterface

abstract class \mpf\interfaces\TranslatorInterface

Inheritance -
Implements -
Uses -
Childs -
Available since version  0.1
Source Code https://github.com/mpf-soft/mpf/tree/master/interfaces/TranslatorInterface.php

-no description found-

Attributes
No attributes found for this class!
Methods

public abstract mixed __construct (mixed $config = [])

  • $config

    -no description found-

Basic __construct method from Object to make sure it's extended and it will load config;

public abstract mixed applyConfig (mixed $config)

  • $config

    -no description found-

Basic applyConfig method from Object to make sure it's extended and it will load config;

public abstract string t (string $text, string $class = null)

  • $text

    -no description found-

  • $class

    -no description found-

Translate a text; A class can be specified if different translations are needed

public abstract mixed setLanguage (string $language)

  • $language

    -no description found-

Set a specific language;

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

  • $config

    -no description found-

-no description found-