t() function in /tools folder isn't working
Permalink 1 user found helpful
We have a PHP file in the / tools folder. This file is called with Ajax.
We have noticed that no translation are generated with t () in this file.
Does anyone know why?
Here's another post with the same problem:
https://www.concrete5.org/marketplace/addons/internationalization/su...
We have noticed that no translation are generated with t () in this file.
Does anyone know why?
Here's another post with the same problem:
https://www.concrete5.org/marketplace/addons/internationalization/su...
The problem is that the active language is not set in the php file but I don't know why?
Which concrete5 version are you using?
The latest (v. 8.4.4) ;-)
I guess the problem is that the translation doesn't work in the tools directory because when i switch to EN on the website the function $lang = Localization::activeLanguage(); has still the core language DE.
Is the "Always track user locale" flag of the "/dashboard/system/multilingual/setup" page checked?
No, but I've already tried both states ;-)