Version Joomla 3.4.2
In our current set-up we would like to able to add the language override folder to the current template folder and then we could achieve 3 things:
- We would be able to update the translations with the upload of the new template.
- We would be able to quickly batch edit the ini file via Template Manager / Customise template.
- We could version control the constant updates of translation overrides by keeping the override folder inside the template
I am aware there exist the possibility to manually edit the ini file via Language Manager, but the labels can only be modified one by one resulting in a very long update process when we have sometimes 800 labels coming from the translation agency.
Additionally our current implementation won't allow us to swap files in the server (production server) . We can only upload new templates and modify files within the templates (thanks to the admin template manager interface).
If I add the overrides folder inside the template all I would need to do is override the function __construct inside \libraries\joomla\language\language.php because that's where the path to the overrides is defined.
How could I override that class to change the location of the language overrides? Can you think of a better way of achieving this under the current restrictions?