lavitzz
lavitzz
Can use __(); function in gettext v5?
Im trying to update version 4.6 to 5.5.1, in 4.6 i was using translations with the gettext extension
Ok thx, i try: ` $translator = Translator::createFromTranslations( $loader->loadFile('languages/file.mo')); TranslatorFunctions::register($translator); ` and __() working perfect :)
@jasomdotnet yes, i use this: ``` public function __construct( MoLoader $moLoader, ContainerInterface $container ) { $this->moLoader = $moLoader; $this->langPath = $container->get('LANG_PATH'); $this->languageRealURL = $container->get('LANGUAGE_REAL_URL'); } public function __invoke() { if...