I make a custom sitemap generator engine in Joomla 3.6. And I want all translations in this sitemap. I've got 8 differents active lang.
When I generate my sitemap from www.mysite.com/en
, with JText::_('A_KEY');
, I get only the english translation. But I need all of others.
Is it possible to specify the language to JText? A bit like JText::_('A_KEY',$lang_code);
. Or instance a custom JText for each other languages ?
Thank you!