Based on this tutorial, I tried to create a template specific language override, trying to be able to override any module or component. Basically, the idea is:
- Create a file called
Add this to the template
$language = JFactory::getLanguage(); $language->load('custom' , dirname(__FILE__), $language->getTag(), true);
This works, and the language file is loaded, BUT it seems to be loaded before any extension-specific language file, making it impossible to override e.g.
Is there any other way to do this, or some way to force the language file to be loaded last?