Page 1 of 2

Phing build.xml file for creating translation packages

Posted: Mon Dec 07, 2009 8:36 pm
by lemings
Hi Folks

I played around little bit with eclipse and phing and wrote build.xml file for creating translation packages.
I tried making script as universal as I could with my poor knowlidge :D

Idea is that You have some dev projec in eclipse to maintain translation files and one for preparing packages.

So phing is copying site and admin files prom dev project to storage project and prepares packages.

On my test server all Joomla packages were working, but I had problem with tinyMCE, I belive there is something wrong with zip compresion, because if I zip files manualy package is working.

I hope it will help somebody :) Any improvements are welcome.
build.zip

Re: Phing build.xml file for creating translation packages

Posted: Mon Dec 07, 2009 8:50 pm
by ot2sen
Thanks Leming :)

A great contribution to help other TTs using phing for automated builds.
Thumbs up!

Re: Phing build.xml file for creating translation packages

Posted: Sun Jan 23, 2011 9:20 am
by lemings
Hello!

I have improved it a little bit, see this topic
http://forum.joomla.org/viewtopic.php?f=54&t=581934

There is way to make template xml files for all languages so only thing one needs to do is change lang property in build.xml. But it is not implemented yet.

Re: Phing build.xml file for creating translation packages

Posted: Sat May 14, 2011 12:24 pm
by DamnedFreak
lemings wrote:Hello!
Image
Image
I have improved it a little bit, see this topic
http://forum.joomla.org/viewtopic.php?f=54&t=581934
Image
There is way to make template xml files for all languages so only thing one needs to do is change lang property in build.xml. But it is not implemented yet.
Thanks for your effort, lemings! This is exactly what I have been looking for since ages now. Glad I found this thread.

Best Regards & all the Best,
Steve

Re: Phing build.xml file for creating translation packages

Posted: Sat May 14, 2011 6:35 pm
by lemings
I am glad, that it was usefull for somebody else ;)

Re: Phing build.xml file for creating translation packages

Posted: Wed Nov 02, 2011 3:36 pm
by drjdallas
lemings wrote:I am glad, that it was usefull for somebody else ;)
Thanks Lemings. We are launching a new site for foreign clients and this was quite a handy resource for them.

Re: Phing build.xml file for creating translation packages

Posted: Wed Nov 02, 2011 4:04 pm
by lemings
If somebody is using this script, I can post updates for 1.7.2.

Re: Phing build.xml file for creating translation packages

Posted: Sun Jan 15, 2012 9:19 pm
by sh4n0n
lemings wrote:If somebody is using this script, I can post updates for 1.7.2.
Image
yes, please!
would greatly appreciate if you could still handle that :)

Re: Phing build.xml file for creating translation packages

Posted: Mon Mar 05, 2012 3:35 pm
by Jasontuck
lemings wrote:If somebody is using this script, I can post updates for 1.7.2.
This is why I love this forum so much - I've been lurking here for quite some time and decided to finally register. I would be more than grateful if you could post updated version!

Thanks in advance,
Jason

Re: Phing build.xml file for creating translation packages

Posted: Mon Mar 05, 2012 4:19 pm
by lemings
Here you are!

All one needs to do is adjust properties in J_build.xml and copy template files to your language directories.

Re: Phing build.xml file for creating translation packages

Posted: Tue May 15, 2012 4:22 pm
by lemings
Latest version of my build script

Now no need to copy anywhere, template files must be in same folder as build script.

Updated according http://forum.joomla.org/viewtopic.php?f ... 4#p2808424
phing-translation-build-script.zip

Re: Phing build.xml file for creating translation packages

Posted: Sat Nov 24, 2012 9:22 pm
by Krishna16
lemings wrote:Here you are!
All one needs to do is adjust properties in J_build.xml and copy template files to your language directories.
Thanks very much for that lemings, I'll have a proper look at this when I wake up in the morning - looks like exactly what I need.

Re: Phing build.xml file for creating translation packages

Posted: Sun Nov 25, 2012 1:23 pm
by Luke4Douglas
Hey Lemings. Your zip file phing-translation-build-script.zip is very neatly put together, thank you for spending the time to do that.

Re: Phing build.xml file for creating translation packages

Posted: Wed Nov 28, 2012 10:12 pm
by HannahCornwall
So am right in thinking I can use this to build a translation pack for French/3.0? Or would it be better for me to contact the translation team and see if I can help there?

Re: Phing build.xml file for creating translation packages

Posted: Thu Nov 29, 2012 3:49 pm
by lemings
HannahCornwall wrote:So am right in thinking I can use this to build a translation pack for French/3.0? Or would it be better for me to contact the translation team and see if I can help there?
No need to do that, take package from here http://joomlacode.org/gf/project/jtrans ... ge_id=6415

Re: Phing build.xml file for creating translation packages

Posted: Thu Dec 06, 2012 4:16 pm
by sarah2117
lemings wrote:
No need to do that, take package from here http://joomlacode.org/gf/project/jtrans ... ge_id=6415
Thanks lemings i doubt i would have ever come across this either, i can see this being a big help in my new project :)

Sarah

Re: Phing build.xml file for creating translation packages

Posted: Tue Dec 11, 2012 9:03 am
by pishro
@lemings
Hello my good friend
It was very good and the pain suffered attachments
Thank you

Re: Phing build.xml file for creating translation packages

Posted: Thu Jan 24, 2013 10:05 am
by Pariya
hi lemings
i find this twofiles
fr-FR_joomla_lang_full_3.0.2v2.zip
fr-FR_joomla_lang_full_3.0.2v1.zip

whats the diffrent bitween there?
i install joomla 3.0.2

Re: Phing build.xml file for creating translation packages

Posted: Thu Jan 24, 2013 10:22 am
by infograf768
3.0.2v2 is the correct zip for 3.0.2 . Always install last version of a lang pack for a said Joomla version.

Re: Phing build.xml file for creating translation packages

Posted: Sun Feb 17, 2013 10:58 pm
by Benno_M_1984
so it is working with the latest version?
thanks

Re: Phing build.xml file for creating translation packages

Posted: Mon Feb 18, 2013 4:10 pm
by lemings
Yep, I am using it for my packages.

I am not sure, version present here is latest, but if something I can upload it one more time.

Re: Phing build.xml file for creating translation packages

Posted: Thu Sep 12, 2013 2:00 am
by madeye32
Thankyou very much . I am new to joomla . This pack is very usefull :D

Re: Phing build.xml file for creating translation packages

Posted: Mon Jan 27, 2014 11:59 am
by nwellyer
Thank you. I thinks this is what I looking for one update - translate project.

Re: Phing build.xml file for creating translation packages

Posted: Fri Jun 27, 2014 6:36 pm
by jean_pierre
hmm nice , so so it is working with the latest version?
thanks that's what I was looking for , hope you the best

Re: Phing build.xml file for creating translation packages

Posted: Sat Jun 28, 2014 4:53 am
by infograf768
We are now working on an improved version of com_localise which will let make core (or extensions) lang packages as simple as clicking on a Download button, all formatted as should

Re: Phing build.xml file for creating translation packages

Posted: Sat Jun 28, 2014 9:32 pm
by monlike
hi infograf768
when it will be ready for download?

Re: Phing build.xml file for creating translation packages

Posted: Sun Aug 24, 2014 5:10 pm
by infograf768
You can test com_localise last beta version here by downloading it from here Joomla 3.3.x and over only)
https://github.com/joomla-projects/com_ ... e/releases

version 4.0.4 dev will let you create a full registered core package ready to go.

Re: Phing build.xml file for creating translation packages

Posted: Sun Aug 24, 2014 9:01 pm
by rutin
I fail to figure out how to do merge all the files to a single variable so that I can then use replacetokens for example?

Any ideas about this? Should I build my own phing class that does this? Or is there an easy way to achieve this with what phing has to offer out of the box?

Re: Phing build.xml file for creating translation packages

Posted: Sun Aug 24, 2014 9:35 pm
by dorsa
@rutin
You can see how it works on the base of this joomla plugin:

Code: Select all

https://github.com/compojoom/CUpdater
The build.xml file is here:

Code: Select all

https://github.com/compojoom/CUpdater/blob/master/builds/plugin.xml
and the task is here:

Code: Select all

https://github.com/compojoom/CUpdater/blob/master/builds/phingext/listjpackagefilestask.php

Re: Phing build.xml file for creating translation packages

Posted: Fri Mar 06, 2015 2:20 pm
by ygorreisfox
I fail to figure out how to do merge all the files to a single variable so that I can then use replacetokens for example?