Stay updated with all the latest happenings at Techjoomla. From news about the developments in your favourite extensions to Tips & Tricks about the Joomla CMS, Framework & Development.
We've been using transifex for more than a year now, and quite happy with the way crowd sourcing can help enrich the reach of your extensions. However updating all the resources for all the extensions was a painful task and something everyone wanted to avoid. The tx-client eases some pain by allowing easy pushes & pulls of source files & translations. However the tx-client relies on a 'config' file to be updated with all the resource slugs. With so many extensions and also with so many plugin language files getting added regularly, its a tough task to keep on updating the config file.
At Techjoomla we had almost 10 major extensions using transifex, each with 5-10 resources. To speed up things, here's a shell script that I wrote up. The script automates updation of your transifex config file. That way, everytime you need to add more resources, just pull them from your source control and run the joomlatx.sh script and your config will be updated with all the resources.
Here's a step by step tutorial on how to set up and use the script
$ cd /home/ashwin/SVN $ tx init
In this case, you should only put the path till the /lang folder. The script will automatically pick up the default language files based on the setting in joomlatx.sh
Note: If you have already set up resources in Transifex, then you will need to update the resource slugs in transifex according to the relevant slug names that have been created in the config file by the script. If you dont do this, you will end up with duplicate language files on Transifex.
$ tx push -s $ tx pull