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?
Posts: 6818
Hello,
please upload that tmp.po here. so we can have a look.
Jens
--
Last Gallery v1 Developer and v1 translation manager.
Posts: 32509
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
Posts: 15
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!
Posts: 8601
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 \")
Posts: 15
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
Posts: 8601
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.
Posts: 15
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?
Posts: 8601
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.
Posts: 15
2.2 is better and 2.2.2 is now the official release.