cant execute perl script update-all-translations.pl??

trupti

Joined: 2006-02-15
Posts: 9
Posted: Thu, 2006-02-16 18:43

I was trying to run the perl script "update-all-translations.pl" located in the /lib/tools/po dir to reflect the text changes that I made and it throws the following exceptions-----

*****************************************************************************
modules/colorpack/po: The system cannot find the path specified.
FAIL!
themes/hybrid/po: The system cannot find the path specified.
FAIL!
modules/randomhighlight/po: The system cannot find the path specified.
FAIL!
modules/publishxp/po: The system cannot find the path specified.
......................
......................
.............................. n so on and so forth for all po directories.

******************************************************************************
I specified a log file to output make errors which just says" gmake: Command not found." Guess its using make , I hope thats not a problem. I am using cygwin to run the script on a windows machine. I am not very familiar with perl and I am not quite understanding why its giving this exception?? Do I need to supply command line options for the script for the GetOptions function. If yes what should these be??

 
ckdake
ckdake's picture

Joined: 2004-02-18
Posts: 2258
Posted: Fri, 2006-02-17 00:05

Do you have the full developer package or a copy from CVS?

 
trupti

Joined: 2006-02-15
Posts: 9
Posted: Fri, 2006-02-17 15:30

I have the full developer package which is gallery-2.0.2-developer version.

 
trupti

Joined: 2006-02-15
Posts: 9
Posted: Fri, 2006-02-17 16:43

Just to be on the safe side, I again downloaded the latest developer version of G2 (the same one which I am using currently) and reinstalled it and ran the script again. The only change that I made is on line 20, I changed the ouptut path to /dev , instead of /dev/null.
It still gives the same errors??? :(

 
ckdake
ckdake's picture

Joined: 2004-02-18
Posts: 2258
Posted: Sat, 2006-02-18 04:49

Works fine for me here on Linux, probably won't work too well on windows. Try upgrading to the latest nightly. Why would you change the output from /dev/null to dev?

 
trupti

Joined: 2006-02-15
Posts: 9
Posted: Sat, 2006-02-18 18:55

I didnt get what you meant by "try upgrading to the latest NIGHTLY??" . It was throwing an exception for the path /dev/null as dev didnt exist , I created a /dev directory and then it threw the other errors I listed above. Are you saying, that the software is going to continue to give other errors as well on Windows?? If thats so, I guess I should check something else then??

 
ckdake
ckdake's picture

Joined: 2004-02-18
Posts: 2258
Posted: Sun, 2006-02-19 00:35

/dev/ is a Linux thing. Just about everyone on the Gallery team does their development on Linux so some development specific things such as that particular perl file may not work on Windows. Are you updating a translation? It doesn't sound like you are and thats the only possible reason you might need to run this scrip.

Upgrading to the latest nightly means using a very recent version of G2 that we have not released. See http://gallery.menalto.com/wiki/Download for more information.

 
trupti

Joined: 2006-02-15
Posts: 9
Posted: Mon, 2006-02-20 00:25

I am trying to update some static text like the one on the main page "This is the main page of your Gallery", which you can see on the home page of your Gallery. Dont I need to run this script for that? I have not yet started developing my own module...but very soon would be doing that...I also have to customize some of the existing modules, like add some more fields for the "New User Registration" and make some of the existing fields like "email" optional instead of required. I hope developing on a Windows platform wont cause more problems. I will try updating to the latest nightly and see if the errors resolve.

 
ckdake
ckdake's picture

Joined: 2004-02-18
Posts: 2258
Posted: Mon, 2006-02-20 01:46

Just go to edit item to edit that text. It's not static, just default for the top level album.

 
trupti

Joined: 2006-02-15
Posts: 9
Posted: Mon, 2006-02-20 16:24

I cannot find this "edit item" link that you are talking about. I found the edit photo and the edit album link, however nothing like "edit item". Is it some module that I need to install for this to show up??

 
ckdake
ckdake's picture

Joined: 2004-02-18
Posts: 2258
Posted: Mon, 2006-02-20 19:36

edit item is "edit album" for albums

 
trupti

Joined: 2006-02-15
Posts: 9
Posted: Tue, 2006-02-21 17:06

I guess I had to check the root level album..i,e Gallery to edit that text. :) I was checking the caption for the album created for the administrator. Thanks for guiding me.