public function load_translation()
    {
        $translator = new \Gettext\Translator();
        $i18n_path = realpath(__DIR__ . '/../../i18n/' . Config::$locale . '.po');

        if (file_exists($i18n_path)) {
            $translations = \Gettext\Translations::fromPoFile($i18n_path);
            $translator->loadTranslations($translations);
        }

        Translator::initGettextFunctions($translator);
    }
public function load_translation()
    {
        $translator = new \Gettext\Translator();
        $i18n_path = realpath(__DIR__ . '/../../i18n/' . Config::$locale . '.po');

        if (file_exists($i18n_path)) {
            $translations = \Gettext\Translations::fromPoFile($i18n_path);
            $translator->loadTranslations($translations);
        }

        Translator::initGettextFunctions($translator);
    }
public function load_translation ( ) { $ translator = new \ Gettext \ Translator ( ) ; $ i18n_path = realpath ( __DIR__ . '/../../i18n/' . Config :: $ locale . '.po' ) ; if ( file_exists ( $ i18n_path ) ) { $ translations = \ Gettext \ Translations :: fromPoFile ( $ i18n_path ) ; $ translator -> loadTranslations ( $ translations ) ; } Translator :: initGettextFunctions ( $ translator ) ; }
Load the i12n translation file.
Load the i12n translation file .