Don't duplicate language files! (code available)
Posted: 29 Jun 2013, 20:12
Is it possible to not duplicate language files (admin/site)
True this can be done by installer
But its not required and will be easier to all not to manage double files, specially when doing local updates or online translations.
There is an example on how to implement this:
compojoom.com/forum/ctransifex/17455-identical-files-for-site-and-admin#19126
Please implement this on All Phoca extensions!
Keep Calm and Translate Joomla - sites.google.com/site/transjoomla
True this can be done by installer
But its not required and will be easier to all not to manage double files, specially when doing local updates or online translations.
There is an example on how to implement this:
Code: Select all
You should not need to copy the same file in the frontend. All you need is the joomla API :)
In your componentname.php file in the frontend you could do (example from hotspots):
With those 3 lines you can use the same admin language file in the frontend and you don't need to copy files around. 1 location = less things to maintain and less thinks can brake.
Please implement this on All Phoca extensions!
Keep Calm and Translate Joomla - sites.google.com/site/transjoomla