public function __construct($availableLocales, $translationsPath, $textdomain) { $this->availableLocales = $availableLocales; bindtextdomain($textdomain, $translationsPath); textdomain($textdomain); $this->setLocale($this->defaultLocale); Translate::_setAppLocale($this->defaultLocale); }
public function settingsLoaded(SettingsLoadedEvent $event) { $internalLocale = $event->getSettingService()->getValueOf("agit.internal_locale"); Translate::_setAppLocale($internalLocale); }