Phing build.xml file for creating translation packages

A place to discuss Joomla! translation matters.

Moderator: wendhausen

User avatar
lemings
Joomla! Explorer
Joomla! Explorer
Posts: 317
Joined: Tue Oct 11, 2005 5:43 pm
Location: Latvia
Contact:

Phing build.xml file for creating translation packages

Post by lemings » Mon Dec 07, 2009 8:36 pm

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
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

User avatar
ot2sen
Joomla! Master
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

Post by ot2sen » Mon Dec 07, 2009 8:50 pm

Thanks Leming :)

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

User avatar
lemings
Joomla! Explorer
Joomla! Explorer
Posts: 317
Joined: Tue Oct 11, 2005 5:43 pm
Location: Latvia
Contact:

Re: Phing build.xml file for creating translation packages

Post by lemings » Sun Jan 23, 2011 9:20 am

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.
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

User avatar
DamnedFreak
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Mon May 02, 2011 8:37 am
Location: Europe, Lux

Re: Phing build.xml file for creating translation packages

Post by DamnedFreak » Sat May 14, 2011 12:24 pm

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
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.

User avatar
lemings
Joomla! Explorer
Joomla! Explorer
Posts: 317
Joined: Tue Oct 11, 2005 5:43 pm
Location: Latvia
Contact:

Re: Phing build.xml file for creating translation packages

Post by lemings » Sat May 14, 2011 6:35 pm

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

drjdallas
Joomla! Fledgling
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

Post by drjdallas » Wed Nov 02, 2011 3:36 pm

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.

User avatar
lemings
Joomla! Explorer
Joomla! Explorer
Posts: 317
Joined: Tue Oct 11, 2005 5:43 pm
Location: Latvia
Contact:

Re: Phing build.xml file for creating translation packages

Post by lemings » Wed Nov 02, 2011 4:04 pm

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

sh4n0n
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Tue Dec 13, 2011 3:32 pm
Location: Canada
Contact:

Re: Phing build.xml file for creating translation packages

Post by sh4n0n » Sun Jan 15, 2012 9:19 pm

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 :)

Jasontuck
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Mon Mar 05, 2012 3:21 pm

Re: Phing build.xml file for creating translation packages

Post by Jasontuck » Mon Mar 05, 2012 3:35 pm

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

User avatar
lemings
Joomla! Explorer
Joomla! Explorer
Posts: 317
Joined: Tue Oct 11, 2005 5:43 pm
Location: Latvia
Contact:

Re: Phing build.xml file for creating translation packages

Post by lemings » Mon Mar 05, 2012 4:19 pm

Here you are!

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

User avatar
lemings
Joomla! Explorer
Joomla! Explorer
Posts: 317
Joined: Tue Oct 11, 2005 5:43 pm
Location: Latvia
Contact:

Re: Phing build.xml file for creating translation packages

Post by lemings » Tue May 15, 2012 4:22 pm

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
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

User avatar
Krishna16
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Tue Nov 20, 2012 11:47 am
Location: London
Contact:

Re: Phing build.xml file for creating translation packages

Post by Krishna16 » Sat Nov 24, 2012 9:22 pm

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.
I'm writing for https://www.motorhomefreedom.com at the moment, which gives me the opportunity to travel a lot.

User avatar
Luke4Douglas
Joomla! Apprentice
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

Post by Luke4Douglas » Sun Nov 25, 2012 1:23 pm

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/

User avatar
HannahCornwall
Joomla! Apprentice
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

Post by HannahCornwall » Wed Nov 28, 2012 10:12 pm

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

User avatar
lemings
Joomla! Explorer
Joomla! Explorer
Posts: 317
Joined: Tue Oct 11, 2005 5:43 pm
Location: Latvia
Contact:

Re: Phing build.xml file for creating translation packages

Post by lemings » Thu Nov 29, 2012 3:49 pm

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
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

sarah2117
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Thu Dec 06, 2012 4:08 pm

Re: Phing build.xml file for creating translation packages

Post by sarah2117 » Thu Dec 06, 2012 4:16 pm

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

User avatar
pishro
Joomla! Explorer
Joomla! Explorer
Posts: 301
Joined: Tue Oct 09, 2012 7:22 am

Re: Phing build.xml file for creating translation packages

Post by pishro » Tue Dec 11, 2012 9:03 am

@lemings
Hello my good friend
It was very good and the pain suffered attachments
Thank you

Pariya
I've been banned!
Posts: 33
Joined: Tue Jan 15, 2013 7:06 am

Re: Phing build.xml file for creating translation packages

Post by Pariya » Thu Jan 24, 2013 10:05 am

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

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Phing build.xml file for creating translation packages

Post by infograf768 » Thu Jan 24, 2013 10:22 am

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

Benno_M_1984
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Tue Jan 04, 2011 11:04 pm
Contact:

Re: Phing build.xml file for creating translation packages

Post by Benno_M_1984 » Sun Feb 17, 2013 10:58 pm

so it is working with the latest version?
thanks
Deine Seite braucht Backlinks? schau mal hier: Blackhatlinks.com
Wir beantworten gerne alle deine Fragen. Einfach per Kontaktformular.

User avatar
lemings
Joomla! Explorer
Joomla! Explorer
Posts: 317
Joined: Tue Oct 11, 2005 5:43 pm
Location: Latvia
Contact:

Re: Phing build.xml file for creating translation packages

Post by lemings » Mon Feb 18, 2013 4:10 pm

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.
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

madeye32
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Thu Sep 12, 2013 1:53 am
Contact:

Re: Phing build.xml file for creating translation packages

Post by madeye32 » Thu Sep 12, 2013 2:00 am

Thankyou very much . I am new to joomla . This pack is very usefull :D

nwellyer
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Sat Jan 25, 2014 3:28 pm
Contact:

Re: Phing build.xml file for creating translation packages

Post by nwellyer » Mon Jan 27, 2014 11:59 am

Thank you. I thinks this is what I looking for one update - translate project.
Personal passion project http://overbidme.com

jean_pierre
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Fri Jun 27, 2014 6:23 pm
Contact:

Re: Phing build.xml file for creating translation packages

Post by jean_pierre » Fri Jun 27, 2014 6:36 pm

hmm nice , so so it is working with the latest version?
thanks that's what I was looking for , hope you the best

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Phing build.xml file for creating translation packages

Post by infograf768 » Sat Jun 28, 2014 4:53 am

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

monlike
Joomla! Intern
Joomla! Intern
Posts: 71
Joined: Fri Jun 06, 2014 10:57 am
Location: sweden

Re: Phing build.xml file for creating translation packages

Post by monlike » Sat Jun 28, 2014 9:32 pm

hi infograf768
when it will be ready for download?

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Phing build.xml file for creating translation packages

Post by infograf768 » Sun Aug 24, 2014 5:10 pm

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.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

rutin
I've been banned!
Posts: 27
Joined: Sat Apr 13, 2013 5:49 am

Re: Phing build.xml file for creating translation packages

Post by rutin » Sun Aug 24, 2014 9:01 pm

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?

dorsa
Joomla! Apprentice
Joomla! Apprentice
Posts: 30
Joined: Mon Jul 29, 2013 5:46 am

Re: Phing build.xml file for creating translation packages

Post by dorsa » Sun Aug 24, 2014 9:35 pm

@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

ygorreisfox
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Fri Mar 06, 2015 2:16 pm
Contact:

Re: Phing build.xml file for creating translation packages

Post by ygorreisfox » Fri Mar 06, 2015 2:20 pm

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?


Locked

Return to “Translations”