ty0716 Posted July 21, 2015 Report Share Posted July 21, 2015 for example, I want to use language\en_us\client_services.php in "http://domain.com/client/plugin/support_managerpro/client_tickets/reply/2/" How to do this? Quote Link to comment Share on other sites More sharing options...
0 Michael Posted July 21, 2015 Report Share Posted July 21, 2015 You can't mix and match, unless you edit the whole folder and put the english version in the language folder. Quote Link to comment Share on other sites More sharing options...
0 ty0716 Posted July 21, 2015 Author Report Share Posted July 21, 2015 You can't mix and match, unless you edit the whole folder and put the english version in the language folder. Can't be used services or accounts language array in the plugins ? Can only be added separately? Quote Link to comment Share on other sites More sharing options...
0 Michael Posted July 21, 2015 Report Share Posted July 21, 2015 Can't be used services or accounts language array in the plugins ? Can only be added separately? It uses the language you've selected you can't enable a language per section or if you want to display something in english you'll need to add the english version to the folder. Quote Link to comment Share on other sites More sharing options...
0 Tyson Posted July 21, 2015 Report Share Posted July 21, 2015 If you want to make additional language available to a template from a different area of the system, you will need to load it yourself. This requires that you update the controller(s) that you want to use it, and load the language file. e.g. Open the /plugins/support_managerpro/controllers/client_tickets.php controller Find: public function reply() { Below that line add: Language::loadLang("client_services"); Save the file, then use language definitions from that language file in /plugins/support_managerpro/views/default/client_tickets_reply.pdt Michael 1 Quote Link to comment Share on other sites More sharing options...
Question
ty0716
for example, I want to use language\en_us\client_services.php in "http://domain.com/client/plugin/support_managerpro/client_tickets/reply/2/"
How to do this?
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.