venditdevs Posted August 4, 2014 Share Posted August 4, 2014 Hi everyone, I'm sorry but i've searched high and low but i can't find it. I need to call $this->l() statically for translation purposes. Is there anybody who can help us ?Thanks in advance ! Link to comment Share on other sites More sharing options...
bellini13 Posted August 4, 2014 Share Posted August 4, 2014 And from where would you be doing this? Link to comment Share on other sites More sharing options...
venditdevs Posted August 4, 2014 Author Share Posted August 4, 2014 I'm doing this within an own made static function I just want to know if there is a static equivelant for $this->l() or how to fix it using another function. Link to comment Share on other sites More sharing options...
bellini13 Posted August 4, 2014 Share Posted August 4, 2014 and where does this own made static function exist? Link to comment Share on other sites More sharing options...
venditdevs Posted August 4, 2014 Author Share Posted August 4, 2014 The function exists in a class called VMSHandler I allready tried VMSHandler::l(); and self::l();. Link to comment Share on other sites More sharing options...
bellini13 Posted August 4, 2014 Share Posted August 4, 2014 You created a class called VMSHandler which extends ObjectModel? Classes have no translation function, because they are a data model, not intended to be translated for a UI. If you have a function inside a class object that is performing translation, then you should refactor it and move the translation to the view (template). If you can better describe what you are trying to accomplish, I might be able to provide better direction Link to comment Share on other sites More sharing options...
venditdevs Posted August 4, 2014 Author Share Posted August 4, 2014 Thanks for your answer. I'm going to do it in another way . If that does'n't work ik will reply here again with detailed informartion. Link to comment Share on other sites More sharing options...
Recommended Posts