Problem with Norwegian language pack (1.4.4)

arquebus

Joined: 2004-08-11
Posts: 9
Posted: Wed, 2004-08-11 06:57

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.

 
arquebus

Joined: 2004-08-11
Posts: 9
Posted: Wed, 2004-08-11 20:46

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.

 
whoisuncle

Joined: 2004-07-05
Posts: 10
Posted: Thu, 2004-08-12 07:53

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.

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Thu, 2004-08-12 09:44

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

 
arquebus

Joined: 2004-08-11
Posts: 9
Posted: Fri, 2004-08-13 05:44

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.

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Fri, 2004-08-13 09:52

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

 
arquebus

Joined: 2004-08-11
Posts: 9
Posted: Fri, 2004-08-13 10:31
Tim_j wrote:
Are you really sure you downloaded the latest no_NO langpack for 1.4.4 and copied ALL files over the existing files ?

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

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Fri, 2004-08-13 13:15

Hmm, so it works on NEW albums in your Gallery 1.4.4 ?
But not on already existing albums ?

 
arquebus

Joined: 2004-08-11
Posts: 9
Posted: Fri, 2004-08-13 13:51
Tim_j wrote:
Hmm, so it works on NEW albums in your Gallery 1.4.4 ?
But not on already existing albums ?

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

 
arquebus

Joined: 2004-08-11
Posts: 9
Posted: Sun, 2004-08-15 20:13

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

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Sun, 2004-08-15 21:25

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

 
arquebus

Joined: 2004-08-11
Posts: 9
Posted: Sun, 2004-08-15 22:29
Tim_j wrote:
Your solution leads me to the assumption that this is not a Gallery problem, but a System thing.

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.

 
arquebus

Joined: 2004-08-11
Posts: 9
Posted: Mon, 2004-08-16 18:25

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..

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Mon, 2004-08-16 20:29

Do you have Shell Access ?

can you make a

locale -a | grep no_NO

and post the output here.

Jens

 
arquebus

Joined: 2004-08-11
Posts: 9
Posted: Mon, 2004-08-16 22:22
Tim_j wrote:
can you make a

locale -a | grep no_NO

and post the output here.

Jens

no_NO
no_NO.iso88591
no_NO.utf8

It's the same on both computers I have tested on.

Svein