SnefIT Posted November 17, 2019 Share Posted November 17, 2019 Hi Trying to create a module with the new way of translating. In my main module file I have some thing like: $this->name = $this->trans('SnefIT Test Module, [], 'Modules.Snefittest.Snefittest'); // Also tried // $this->name = $this->trans('SnefIT Test Module, [], 'Modules.Snefittest.Snefittest.php'); But it is not seen as in the backoffice as an translation (=> translations -> module -> ....). Am I missing somehting? Link to comment Share on other sites More sharing options...
_tech Posted November 18, 2019 Share Posted November 18, 2019 Hello, Did you try : public function isUsingNewTranslationSystem() { return true; } (read this to get an example of a very simple module with new translation system and here for Prestashop's doc about that) 1 Link to comment Share on other sites More sharing options...
joomleader Posted November 20, 2019 Share Posted November 20, 2019 your code is wrong, should be $this->name = $this->trans('SnefIT Test Module', [], 'Modules.Snefittest.Snefittest'); Link to comment Share on other sites More sharing options...
SnefIT Posted November 22, 2019 Author Share Posted November 22, 2019 (edited) @joomleader: that was a typo in this post 😉 Else it wouldn't work at all because of the missing ' I will try the isUsingNewTranslationSystem() in the next few days... isUsingNewTranslationSystem() was the missing link! Thanx! Edited November 22, 2019 by SnefIT (see edit history) Link to comment Share on other sites More sharing options...
Lieme Posted November 23, 2019 Share Posted November 23, 2019 why should you try a new way to translate? are you doing this only for training with creating moduls? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now