public static function load()
    {
        if (is_null(self::$loader)) {
            // Create loader object
            self::$loader = new \PhpMyAdmin\MoTranslator\Loader();

            // Set locale
            self::$loader->setlocale(
                self::$loader->detectlocale()
            );

            // Set default text domain
            self::$loader->textdomain('sqlparser');

            // Set path where to look for a domain
            self::$loader->bindtextdomain('sqlparser', __DIR__ . '/../locale/');
        }

        if (is_null(self::$translator)) {
            // Get translator
            self::$translator = self::$loader->getTranslator();
        }
    }
public static function load()
    {
        if (is_null(self::$loader)) {
            // Create loader object
            self::$loader = new \PhpMyAdmin\MoTranslator\Loader();

            // Set locale
            self::$loader->setlocale(
                self::$loader->detectlocale()
            );

            // Set default text domain
            self::$loader->textdomain('sqlparser');

            // Set path where to look for a domain
            self::$loader->bindtextdomain('sqlparser', __DIR__ . '/../locale/');
        }

        if (is_null(self::$translator)) {
            // Get translator
            self::$translator = self::$loader->getTranslator();
        }
    }
public static function load ( ) { if ( is_null ( self :: $ loader ) ) { // Create loader object self :: $ loader = new \ PhpMyAdmin \ MoTranslator \ Loader ( ) ; // Set locale self :: $ loader -> setlocale ( self :: $ loader -> detectlocale ( ) ) ; // Set default text domain self :: $ loader -> textdomain ( 'sqlparser' ) ; // Set path where to look for a domain self :: $ loader -> bindtextdomain ( 'sqlparser' , __DIR__ . '/../locale/' ) ; } if ( is_null ( self :: $ translator ) ) { // Get translator self :: $ translator = self :: $ loader -> getTranslator ( ) ; } }
Loads transator.
Loads transator .