Error compiling strings.raw : make: *** [messages.po] Error 255

jayhen

Joined: 2007-02-12
Posts: 159
Posted: Mon, 2007-07-09 08:22

Hi,

I'm trying to update the .po files for someone to translate the checkout modules.

I have problems with the files in checkoutpaypal, I'm working on the version in gallery-contrib. When I do a make in checkoutpaypal/po I get the error

make: *** [messages.po] Error 255

When I look in strings.raw.tmp the first line is :

Parse error: syntax error, unexpected ')' in /home/jay/workspace/gallery_os/gallery_os/lib/tools/po/extract.php(123) : eval()'d code on line 1
# $Id$

All works fine for the other modules. My gallery installation is the official 2.2.2.

Any help/tips appreciated.

Jay

make -v
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for x86_64-pc-linux-gnu

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2007-07-09 13:57

do you have problems with any official module too?
e.g.
cd modules/comment/po/
make de.po
make install PO=de

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
jayhen

Joined: 2007-02-12
Posts: 159
Posted: Mon, 2007-07-09 14:06

No, that works fine. Also, checkout and checkoutemail work, it's only checkoutpaypal where I have problems.

I'm assuming a typo in the code, but unsure how to trace it.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2007-07-10 15:38

The checkout modules recently have moved into gallery-contrib. The code there works for translations, so whatever problem seems to be resolved.

cd gallery2/modules
svn checkout https://gallery-contrib.svn.sourceforge.net/svnroot/gallery-contrib/trunk/gallery2/modules/checkoutpaypal
cd checkoutpaypal/po
make de.po
 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2007-07-10 15:51

just tried a fresh g2.2.2 with checkoutpaypal from svn and the po stuff worked fine.

i used cygwin, but there shouldn't be any difference when using a real linux/unix system.

test operations:
$ cd modules/checkoutpaypal/po/
$ make de.po
...edited some strings
$ make install PO=de

no errors.

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
jayhen

Joined: 2007-02-12
Posts: 159
Posted: Wed, 2007-07-11 10:06

Thanks, both.
I've tried reinstalling G2.2.2 but the problem persists (on Ubuntu). I'm also using the gallery-contrib version of the checkout modules.
Have also tried on a seperate system (Gentoo based), again using G2.2.2 and svn checkoutpaypal and get exactly the same error.
Both are 64 bit systems, will perhaps try on a 32 bit system, you never know.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Wed, 2007-07-11 14:33

you might also try current svn / nightly snapshot, as the extract.php script in 2.3 is largely rewritten.

 
jayhen

Joined: 2007-02-12
Posts: 159
Posted: Wed, 2007-07-11 15:23

Yes, that did it, I can now compile correctly using the nightly snapshot. Thanks a lot for the help.