Anyone else having problem with the norwegian 1.4.4 language pack?
In my case it does not display the correct number of images in each album or number of times each album is viewed. The number is always 1. Also the number of albums and total number of pictures on the first page is wrong. In English it says " 7 top-level albums (38 total), 1126 images" but in norwegian it says "1 album på topp-nivå (38 totalt), 1 bilde".
I have several other languages installed and they seem to work fine.
Posts: 9
I have been testing a bit more and it seems like the problem only occur for a gallery upgraded to 1.4.4. For a gallery created with 1.4.4 the norwegian language pack works fine.
Posts: 10
It's due to the incompletion of language pack translation. All those numbers are translated to "1" in many (or all?) incomplete language pack. There is nothing wrong with the gallery engine.
Posts: 6818
This is wrong.
Numbers are not translated.
This problem occurs if you use Gallery 1.4.4 with a langpack from 1.4.3 or earlier.
You need to install the correct langpack
Regards,
Jens
Posts: 9
I am using the correct version of the language pack. As I said I have several languages installed, and I have downloaded new (v. 1.4.4) packs for all of them. The problem occurs only when I select Norwegian - which unfortunately is the language I want to use as the default. As I also said it works fine when creating a new gallery with 1.4.4. The problem occurs after upgrading to 1.4.4. The environment should be ok, all the checks on the initial page in the config tool are marked with green.
The URL for the gallery is http://nancy.ath.cx/gallery/ if someone wants to take a look.
Posts: 6818
Hi,
the no_NO langpack for 1.4.4 is working fine:
http://www.jems.de/gallery-1.4.4/?newlang=no_NO
Are you really sure you downloaded the latest no_NO langpack for 1.4.4 and copied ALL files over the existing files ?
Regards,
Jens
Posts: 9
Hi,
Yup, 100% sure. I have also tried to regenerate the .mo files and even tried to create a language pack from scratch myself. Same thing.
I'm beginning to think that the problem is not in the language pack itself, but some other place. I can see that the language pack is working from the URL you gave me and also when I try to create a new gallery with 1.4.4.
Are there other files/settings on the machine that have influence on this? It's a linux RedHat 8.0 machine. I know it is old and outdated, but the other programs that gallery depends on should have the required version level.
Rgds,
Svein
Posts: 6818
Hmm, so it works on NEW albums in your Gallery 1.4.4 ?
But not on already existing albums ?
Posts: 9
Nah, it works on a complete new gallery greated with 1.4.4. (Test gallery at http://nancy.ath.cx/testg/gallery/).
The problem occurs on a gallery that is upgraded to 1.4.4. It is the same for albums inside this gallery either they are created with previous release and upgraded or if I create new albums in this upgraded gallery.
Going away for the weekend now, but I will look into this again when I get back. Have a nice weekend :D
Svein
Posts: 9
I have found a workaround for this problem now. I removed all files in the norwegian language pack, copied in the files from the german pack instead, renamed them, edited the nls file and ran the make_mo_files script. That gave me a working norwegian language pack but in german of course.
Then I tried to copy in the .po files from the original norwegian language pack and ran make_mo_files again, but that caused apache to coredump when I tried to view an album, so I but back the german .po files. I kept the header stuff from the german files but replaced all the rest of them with the corresponding stuff from the norwegian files. That seems to work fine. The numbers for no. of albums, no. of times viewed etc. are correct now and my gallery is able to speak norwegian. :D
Rgds,
Svein
Posts: 6818
This is totally weird.
And for me personally not a satisfying solution.
I am 100% sure that the no_NO will run without any modifiction like you did.
Your solution leads me to the assumption that this is not a Gallery problem, but a System thing.
Jens
Posts: 9
I agree with you - this does not make much sense. Like I said the web server is running an old RedHat 8.0 OS, so that might be the problem. I will try to test it on another machine to see how it behaves with a new and updated OS. I'll let you know it there is any difference. Thanks for your help anyway.
Posts: 9
Now I have tested this on another machine. This is what I did:
Got a new computer with an updated version of Fedora Core 2 OS.
This should be pretty much up to date with apache 2.0.50 and php 4.3.8.
Copied over the last backup I took just before upgrading to 1.4.4
(This was version 1.4.3-pl2, which I used to create the gallery initially)
Did some editing on the config.php file to get it up and running on the new machine.
Everything works fine running this 1.4.3-pl2 version on the new computer.
Did the upgrade to 1.4.4 using the files gallery-1.4.4.tar.gz and no_NO-1.4.4.tar.gz
And guess what? The problem is exactly the same on this machine as well.
I'm beginning to run out of ideas of thigs to try now, but I can manage with the workaround I did. I just don't feel happy when I know there is problem somewhere..
Posts: 6818
Do you have Shell Access ?
can you make a
locale -a | grep no_NO
and post the output here.
Jens
Posts: 9
no_NO
no_NO.iso88591
no_NO.utf8
It's the same on both computers I have tested on.
Svein