The Joomla! Forum ™






Post new topic Reply to topic  [ 30 posts ] 
Author Message
PostPosted: Mon Dec 07, 2009 8:36 pm 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Tue Oct 11, 2005 5:43 pm
Posts: 310
Location: Latvia
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.

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


Top
 Profile  
 
PostPosted: Mon Dec 07, 2009 8:50 pm 
User avatar
Joomla! Master
Joomla! Master

Joined: Thu Aug 18, 2005 9:58 am
Posts: 10154
Location: Hillerød - Denmark
Thanks Leming :)

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

_________________
Ole Bang Ottosen
redCOMPONENT Community Manager http://redcomponent.com
Personligt site www.ot2sen.dk
Dansk Joomla! support websted - joomla.dk


Top
 Profile  
 
PostPosted: Sun Jan 23, 2011 9:20 am 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Tue Oct 11, 2005 5:43 pm
Posts: 310
Location: Latvia
Hello!

I have improved it a little bit, see this topic
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


Top
 Profile  
 
PostPosted: Sat May 14, 2011 12:24 pm 
User avatar
Joomla! Fledgling
Joomla! Fledgling

Joined: Mon May 02, 2011 8:37 am
Posts: 2
Location: Europe, Lux
lemings wrote:
Hello!
Image
Image
I have improved it a little bit, see this topic
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

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


Last edited by DamnedFreak on Sat May 14, 2011 7:40 pm, edited 2 times in total.

Top
 Profile  
 
PostPosted: Sat May 14, 2011 6:35 pm 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Tue Oct 11, 2005 5:43 pm
Posts: 310
Location: Latvia
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


Top
 Profile  
 
PostPosted: Wed Nov 02, 2011 3:36 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Wed Nov 02, 2011 3:26 pm
Posts: 3
Location: Dallas, Texas
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.

_________________
Forum Rules on Signature: http://forum.joomla.org/viewtopic.php?f=8&t=65


Top
 Profile  
 
PostPosted: Wed Nov 02, 2011 4:04 pm 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Tue Oct 11, 2005 5:43 pm
Posts: 310
Location: Latvia
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


Top
 Profile  
 
PostPosted: Sun Jan 15, 2012 9:19 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Dec 13, 2011 3:32 pm
Posts: 5
Location: Canada
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 :)


Top
 Profile  
 
PostPosted: Mon Mar 05, 2012 3:35 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Mar 05, 2012 3:21 pm
Posts: 11
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


Top
 Profile  
 
PostPosted: Mon Mar 05, 2012 4:19 pm 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Tue Oct 11, 2005 5:43 pm
Posts: 310
Location: Latvia
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


Top
 Profile  
 
PostPosted: Tue May 15, 2012 4:22 pm 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Tue Oct 11, 2005 5:43 pm
Posts: 310
Location: Latvia
Latest version of my build script

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

Updated according viewtopic.php?f=54&t=717851&p=2808424#p2808424

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


Top
 Profile  
 
PostPosted: Sat Nov 24, 2012 9:22 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Nov 20, 2012 11:47 am
Posts: 7
Location: London
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 http://www.motorhomefreedom.com at the moment, which gives me the opportunity to travel a lot.


Top
 Profile  
 
PostPosted: Sun Nov 25, 2012 1:23 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Nov 20, 2012 2:25 pm
Posts: 6
Location: Isle of Man
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/


Top
 Profile  
 
PostPosted: Wed Nov 28, 2012 10:12 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Nov 20, 2012 9:03 pm
Posts: 7
Location: Swindon, Wiltshire, UK
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


Top
 Profile  
 
PostPosted: Thu Nov 29, 2012 3:49 pm 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Tue Oct 11, 2005 5:43 pm
Posts: 310
Location: Latvia
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


Top
 Profile  
 
PostPosted: Thu Dec 06, 2012 4:16 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Thu Dec 06, 2012 4:08 pm
Posts: 3
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


Top
 Profile  
 
PostPosted: Tue Dec 11, 2012 9:03 am 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Tue Oct 09, 2012 7:22 am
Posts: 285
@lemings
Hello my good friend
It was very good and the pain suffered attachments
Thank you

_________________
http://www.cantral.ir
http://www.enimal.ir


Top
 Profile  
 
PostPosted: Thu Jan 24, 2013 10:05 am 
I've been banned!

Joined: Tue Jan 15, 2013 7:06 am
Posts: 33
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


Top
 Profile  
 
PostPosted: Thu Jan 24, 2013 10:22 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 17396
Location: **Translation Matters**
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 · http://www.info-graf.fr
Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf
---------------------------------
Joomla Translation Coordination Team • Joomla! Production Working Group


Top
 Profile  
 
PostPosted: Sun Feb 17, 2013 10:58 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Tue Jan 04, 2011 11:04 pm
Posts: 4
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.


Top
 Profile  
 
PostPosted: Mon Feb 18, 2013 4:10 pm 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Tue Oct 11, 2005 5:43 pm
Posts: 310
Location: Latvia
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


Top
 Profile  
 
PostPosted: Thu Sep 12, 2013 2:00 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Thu Sep 12, 2013 1:53 am
Posts: 1
Thankyou very much . I am new to joomla . This pack is very usefull :D


Top
 Profile  
 
PostPosted: Mon Jan 27, 2014 11:59 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Jan 25, 2014 3:28 pm
Posts: 10
Thank you. I thinks this is what I looking for one update - translate project.

_________________
Personal passion project http://overbidme.com


Top
 Profile  
 
PostPosted: Fri Jun 27, 2014 6:36 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Jun 27, 2014 6:23 pm
Posts: 8
hmm nice , so so it is working with the latest version?
thanks that's what I was looking for , hope you the best


Top
 Profile  
 
PostPosted: Sat Jun 28, 2014 4:53 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 17396
Location: **Translation Matters**
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 · http://www.info-graf.fr
Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf
---------------------------------
Joomla Translation Coordination Team • Joomla! Production Working Group


Top
 Profile  
 
PostPosted: Sat Jun 28, 2014 9:32 pm 
Joomla! Intern
Joomla! Intern

Joined: Fri Jun 06, 2014 10:57 am
Posts: 54
hi infograf768
when it will be ready for download?

_________________
http://sadracar.ir
http://padidehnews.com


Top
 Profile  
 
PostPosted: Sun Aug 24, 2014 9:34 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Mon May 14, 2012 1:22 pm
Posts: 2
Thanks lemings i doubt i would have ever come across this either, I thinks this is what I looking for one update - translate project.




***** Manual signatures are NOT allowed *****
http://hamptonbayonlinecompany.com Hampton bay website
http://hamptonbaylightingsolutions.com Another hampton bay website


Top
 Profile  
 
PostPosted: Sun Aug 24, 2014 5:10 pm 
User avatar
Joomla! Master
Joomla! Master

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 17396
Location: **Translation Matters**
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 · http://www.info-graf.fr
Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf
---------------------------------
Joomla Translation Coordination Team • Joomla! Production Working Group


Top
 Profile  
 
PostPosted: Sun Aug 24, 2014 9:01 pm 
I've been banned!

Joined: Sat Apr 13, 2013 5:49 am
Posts: 27
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?


Top
 Profile  
 
PostPosted: Sun Aug 24, 2014 9:35 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Jul 29, 2013 5:46 am
Posts: 25
@rutin
You can see how it works on the base of this joomla plugin:
Code:
https://github.com/compojoom/CUpdater

The build.xml file is here:
Code:
https://github.com/compojoom/CUpdater/blob/master/builds/plugin.xml

and the task is here:
Code:
https://github.com/compojoom/CUpdater/blob/master/builds/phingext/listjpackagefilestask.php

_________________
ccra.ir
water-purifier.ir


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 30 posts ] 



Who is online

Users browsing this forum: No registered users and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group