Compile error

kenstad

Joined: 2006-11-30
Posts: 15
Posted: Mon, 2007-03-05 09:35

Dear all,
I'm trying to translate the checkout module into Norwegian. I use poEdit to do the translations, but when I try to compile the file I get the following errors:

Updating no
no
tmp.po:1:2: parse error
tmp.po:1: keyword "br" unknown
tmp.po:2: keyword "b" unknown
msgfmt: tmp.po: warning: PO file header missing or invalid
warning: charset conversion will not work
msgfmt: found 4 fatal errors
Fail: no
make: *** [install] Error 1

I use the latest stable version of Gallery2 2.1.2 (developer package, obviously). Has anyone got any idea what goes wrong here?

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Mon, 2007-03-05 11:10

Hello,

please upload that tmp.po here. so we can have a look.

Jens
--
Last Gallery v1 Developer and v1 translation manager.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2007-03-05 12:06

what are you using to compile?
linux, windows, cygwin, ...?
are you typing make in the po folder?
or do you do it another way?

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

 
kenstad

Joined: 2006-11-30
Posts: 15
Posted: Mon, 2007-03-05 19:08

I use linux (Fedora) and I type make in the po folder. By the way I have tried translating using emacs with po extension and poedit. emacs I ran on the linux box, but poedit was on a windows box. I got the same errors in both cases. I also get similar errors when I try to compile po files in other modules without doing any editing to them.

Where does the tmp.po end up? I can't seem to find it (I even ran 'find -name tmp.po' from the root folder).

Thanks for the quick response!

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Wed, 2007-03-07 15:53

Please try using 2.2-rc-2 developer version or a current nightly snapshot. If it still gets errors then you can comment out the line in lib/tools/po/GNUmakefile.inc that removes tmp.po so it isn't deleted and you can attach a sample here. (Add "#" in front of "$(RM) tmp.po \")

 
kenstad

Joined: 2006-11-30
Posts: 15
Posted: Thu, 2007-03-08 19:22

I have narrowed down the problem, I think, to my linux box. I dug out an old laptop with ubuntu and tried to compile on that (with 2.1.2), and everything worked on that one. So the problem is with the Fedora box. Let me know if you want to locate the error anyway. As I see it you shouldn't have to worry unless this is a recurring problem. Thanks for showing interest and sorry if I have wasted your time on this...

All the best

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2007-03-09 16:18

We'd like the scripts to be reliable.. if it's a standard fedora setup and you have some time to debug that would be good. If not, no problem.. glad you got it working.

 
kenstad

Joined: 2006-11-30
Posts: 15
Posted: Fri, 2007-03-09 19:27

Sure I'd be glad to help. It is a standard fedora setup with gettext and all the stuff that is necessary (although I don't know if gettext is necessary for compilation... anyway it has php, perl, bash). I did as you suggested and tried the 2.2-RC-2 package, copied a new GNUmakefile to the po folder in checkout (from the comment module as suggested in the howto), and everything compiled flawlessly. I even had a similar problem compiling class files for db tables, but even that worked fine with 2.2-rc-2 and the make files in that. Would you still like to trace the problem with the 2.1 version?

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sat, 2007-03-10 19:43

nono, that's the right test. some fixes were made between 2.1 and 2.2 to work better with php-cgi. thanks for the check.

 
kenstad

Joined: 2006-11-30
Posts: 15
Posted: Fri, 2007-07-20 07:11

2.2 is better and 2.2.2 is now the official release.