Phing build.xml file for creating translation packages
Moderator: wendhausen
- lemings
- Joomla! Explorer
- Posts: 317
- Joined: Tue Oct 11, 2005 5:43 pm
- Location: Latvia
- Contact:
Phing build.xml file for creating translation packages
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
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.
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
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.
You do not have the required permissions to view the files attached to this post.
Member of the Latvian Joomla Translation Team
Latvian project in JoomlaCode- http://joomlacode.org/gf/project/joomla_latvian/
Latvian Joomla! team - http://www.joomlalv.org
Latvian project in JoomlaCode- http://joomlacode.org/gf/project/joomla_latvian/
Latvian Joomla! team - http://www.joomlalv.org
- ot2sen
- Joomla! Master
- Posts: 10381
- Joined: Thu Aug 18, 2005 9:58 am
- Location: Hillerød - Denmark
- Contact:
Re: Phing build.xml file for creating translation packages
Thanks Leming
A great contribution to help other TTs using phing for automated builds.
Thumbs up!
A great contribution to help other TTs using phing for automated builds.
Thumbs up!
Ole Bang Ottosen
Dansk frivillig Joomla! support websted - joomla.dk
OpenTranslators Core Team opentranslators.org
Dansk frivillig Joomla! support websted - joomla.dk
OpenTranslators Core Team opentranslators.org
- lemings
- Joomla! Explorer
- Posts: 317
- Joined: Tue Oct 11, 2005 5:43 pm
- Location: Latvia
- Contact:
Re: Phing build.xml file for creating translation packages
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.
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.
Member of the Latvian Joomla Translation Team
Latvian project in JoomlaCode- http://joomlacode.org/gf/project/joomla_latvian/
Latvian Joomla! team - http://www.joomlalv.org
Latvian project in JoomlaCode- http://joomlacode.org/gf/project/joomla_latvian/
Latvian Joomla! team - http://www.joomlalv.org
- DamnedFreak
- Joomla! Fledgling
- Posts: 2
- Joined: Mon May 02, 2011 8:37 am
- Location: Europe, Lux
Re: Phing build.xml file for creating translation packages
Thanks for your effort, lemings! This is exactly what I have been looking for since ages now. Glad I found this thread.lemings wrote: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.
Best Regards & all the Best,
Steve
Last edited by DamnedFreak on Sat May 14, 2011 7:40 pm, edited 2 times in total.
"Give a man a fish and he won't starve for a day. Teach a man how to fish and he won't starve for his entire life."
Regrettably, the origin of this quote is unknown.
Regrettably, the origin of this quote is unknown.
- lemings
- Joomla! Explorer
- Posts: 317
- Joined: Tue Oct 11, 2005 5:43 pm
- Location: Latvia
- Contact:
Re: Phing build.xml file for creating translation packages
I am glad, that it was usefull for somebody else
Member of the Latvian Joomla Translation Team
Latvian project in JoomlaCode- http://joomlacode.org/gf/project/joomla_latvian/
Latvian Joomla! team - http://www.joomlalv.org
Latvian project in JoomlaCode- http://joomlacode.org/gf/project/joomla_latvian/
Latvian Joomla! team - http://www.joomlalv.org
-
- Joomla! Fledgling
- Posts: 3
- Joined: Wed Nov 02, 2011 3:26 pm
- Location: Dallas, Texas
- Contact:
Re: Phing build.xml file for creating translation packages
Thanks Lemings. We are launching a new site for foreign clients and this was quite a handy resource for them.lemings wrote:I am glad, that it was usefull for somebody else
Forum Rules on Signature: http://forum.joomla.org/viewtopic.php?f=8&t=65
- lemings
- Joomla! Explorer
- Posts: 317
- Joined: Tue Oct 11, 2005 5:43 pm
- Location: Latvia
- Contact:
Re: Phing build.xml file for creating translation packages
If somebody is using this script, I can post updates for 1.7.2.
Member of the Latvian Joomla Translation Team
Latvian project in JoomlaCode- http://joomlacode.org/gf/project/joomla_latvian/
Latvian Joomla! team - http://www.joomlalv.org
Latvian project in JoomlaCode- http://joomlacode.org/gf/project/joomla_latvian/
Latvian Joomla! team - http://www.joomlalv.org
-
- Joomla! Apprentice
- Posts: 5
- Joined: Tue Dec 13, 2011 3:32 pm
- Location: Canada
- Contact:
-
- Joomla! Apprentice
- Posts: 11
- Joined: Mon Mar 05, 2012 3:21 pm
Re: Phing build.xml file for creating translation packages
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!lemings wrote:If somebody is using this script, I can post updates for 1.7.2.
Thanks in advance,
Jason
- lemings
- Joomla! Explorer
- Posts: 317
- Joined: Tue Oct 11, 2005 5:43 pm
- Location: Latvia
- Contact:
Re: Phing build.xml file for creating translation packages
Here you are!
All one needs to do is adjust properties in J_build.xml and copy template files to your language directories.
All one needs to do is adjust properties in J_build.xml and copy template files to your language directories.
You do not have the required permissions to view the files attached to this post.
Member of the Latvian Joomla Translation Team
Latvian project in JoomlaCode- http://joomlacode.org/gf/project/joomla_latvian/
Latvian Joomla! team - http://www.joomlalv.org
Latvian project in JoomlaCode- http://joomlacode.org/gf/project/joomla_latvian/
Latvian Joomla! team - http://www.joomlalv.org
- lemings
- Joomla! Explorer
- Posts: 317
- Joined: Tue Oct 11, 2005 5:43 pm
- Location: Latvia
- Contact:
Re: Phing build.xml file for creating translation packages
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
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
You do not have the required permissions to view the files attached to this post.
Member of the Latvian Joomla Translation Team
Latvian project in JoomlaCode- http://joomlacode.org/gf/project/joomla_latvian/
Latvian Joomla! team - http://www.joomlalv.org
Latvian project in JoomlaCode- http://joomlacode.org/gf/project/joomla_latvian/
Latvian Joomla! team - http://www.joomlalv.org
- Krishna16
- Joomla! Apprentice
- Posts: 7
- Joined: Tue Nov 20, 2012 11:47 am
- Location: London
- Contact:
Re: Phing build.xml file for creating translation packages
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.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.
I'm writing for https://www.motorhomefreedom.com at the moment, which gives me the opportunity to travel a lot.
- Luke4Douglas
- Joomla! Apprentice
- Posts: 6
- Joined: Tue Nov 20, 2012 2:25 pm
- Location: Isle of Man
- Contact:
Re: Phing build.xml file for creating translation packages
Hey Lemings. Your zip file phing-translation-build-script.zip is very neatly put together, thank you for spending the time to do that.
Hopefully I'll learn enough here to write Joomla advice at http://sentwithalovingkiss.co.uk/
- HannahCornwall
- Joomla! Apprentice
- Posts: 7
- Joined: Tue Nov 20, 2012 9:03 pm
- Location: Swindon, Wiltshire, UK
Re: Phing build.xml file for creating translation packages
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?
Moving http://www.flowercard.co.uk/ from DNN to Joomla 3
- lemings
- Joomla! Explorer
- Posts: 317
- Joined: Tue Oct 11, 2005 5:43 pm
- Location: Latvia
- Contact:
Re: Phing build.xml file for creating translation packages
No need to do that, take package from here http://joomlacode.org/gf/project/jtrans ... ge_id=6415HannahCornwall 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?
Member of the Latvian Joomla Translation Team
Latvian project in JoomlaCode- http://joomlacode.org/gf/project/joomla_latvian/
Latvian Joomla! team - http://www.joomlalv.org
Latvian project in JoomlaCode- http://joomlacode.org/gf/project/joomla_latvian/
Latvian Joomla! team - http://www.joomlalv.org
-
- Joomla! Fledgling
- Posts: 3
- Joined: Thu Dec 06, 2012 4:08 pm
Re: Phing build.xml file for creating translation packages
Thanks lemings i doubt i would have ever come across this either, i can see this being a big help in my new projectlemings wrote:
No need to do that, take package from here http://joomlacode.org/gf/project/jtrans ... ge_id=6415
Sarah
- pishro
- Joomla! Explorer
- Posts: 301
- Joined: Tue Oct 09, 2012 7:22 am
Re: Phing build.xml file for creating translation packages
@lemings
Hello my good friend
It was very good and the pain suffered attachments
Thank you
Hello my good friend
It was very good and the pain suffered attachments
Thank you
-
- I've been banned!
- Posts: 33
- Joined: Tue Jan 15, 2013 7:06 am
Re: Phing build.xml file for creating translation packages
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
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
- infograf768
- Joomla! Master
- Posts: 19133
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: Phing build.xml file for creating translation packages
3.0.2v2 is the correct zip for 3.0.2 . Always install last version of a lang pack for a said Joomla version.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
-
- Joomla! Fledgling
- Posts: 4
- Joined: Tue Jan 04, 2011 11:04 pm
- Contact:
Re: Phing build.xml file for creating translation packages
so it is working with the latest version?
thanks
thanks
Deine Seite braucht Backlinks? schau mal hier: Blackhatlinks.com
Wir beantworten gerne alle deine Fragen. Einfach per Kontaktformular.
Wir beantworten gerne alle deine Fragen. Einfach per Kontaktformular.
- lemings
- Joomla! Explorer
- Posts: 317
- Joined: Tue Oct 11, 2005 5:43 pm
- Location: Latvia
- Contact:
Re: Phing build.xml file for creating translation packages
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.
I am not sure, version present here is latest, but if something I can upload it one more time.
Member of the Latvian Joomla Translation Team
Latvian project in JoomlaCode- http://joomlacode.org/gf/project/joomla_latvian/
Latvian Joomla! team - http://www.joomlalv.org
Latvian project in JoomlaCode- http://joomlacode.org/gf/project/joomla_latvian/
Latvian Joomla! team - http://www.joomlalv.org
-
- Joomla! Fledgling
- Posts: 1
- Joined: Thu Sep 12, 2013 1:53 am
- Contact:
Re: Phing build.xml file for creating translation packages
Thankyou very much . I am new to joomla . This pack is very usefull
-
- Joomla! Apprentice
- Posts: 10
- Joined: Sat Jan 25, 2014 3:28 pm
- Contact:
Re: Phing build.xml file for creating translation packages
Thank you. I thinks this is what I looking for one update - translate project.
Personal passion project http://overbidme.com
-
- Joomla! Apprentice
- Posts: 8
- Joined: Fri Jun 27, 2014 6:23 pm
- Contact:
Re: Phing build.xml file for creating translation packages
hmm nice , so so it is working with the latest version?
thanks that's what I was looking for , hope you the best
thanks that's what I was looking for , hope you the best
- infograf768
- Joomla! Master
- Posts: 19133
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: Phing build.xml file for creating translation packages
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
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
-
- Joomla! Intern
- Posts: 71
- Joined: Fri Jun 06, 2014 10:57 am
- Location: sweden
Re: Phing build.xml file for creating translation packages
hi infograf768
when it will be ready for download?
when it will be ready for download?
- infograf768
- Joomla! Master
- Posts: 19133
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: Phing build.xml file for creating translation packages
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.
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.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
-
- I've been banned!
- Posts: 27
- Joined: Sat Apr 13, 2013 5:49 am
Re: Phing build.xml file for creating translation packages
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?
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?
-
- Joomla! Apprentice
- Posts: 30
- Joined: Mon Jul 29, 2013 5:46 am
Re: Phing build.xml file for creating translation packages
@rutin
You can see how it works on the base of this joomla plugin:
The build.xml file is here:
and the task is here:
You can see how it works on the base of this joomla plugin:
Code: Select all
https://github.com/compojoom/CUpdater
Code: Select all
https://github.com/compojoom/CUpdater/blob/master/builds/plugin.xml
Code: Select all
https://github.com/compojoom/CUpdater/blob/master/builds/phingext/listjpackagefilestask.php
-
- Joomla! Apprentice
- Posts: 10
- Joined: Fri Mar 06, 2015 2:16 pm
- Contact:
Re: Phing build.xml file for creating translation packages
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?