Can't change language...

martijn17

Joined: 2003-11-10
Posts: 6
Posted: Mon, 2003-11-10 22:53

Just installed Gallery 1.4.1-RC2. All works fine, but i can't get the language changed. In the Configuration Wizard are three languages available, English, Dutch and French. But whatever mode i use, 1,2 or 3, everything stays in english. Can Anyone tell me what i'm doing wrong?
----
Give us your Gallery/webserver information to get a faster answer.
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful): http://www.durkstra.nl/~hit/gallery/index.php
Gallery version: 1.4.1-RC2
Apache version: PHP Version 4.3.2
PHP version (don't just say PHP 4, please): PHP v4.3.2
Graphics Toolkit: NetPBM 10.18.2
Operating system: Windows XP
Web browser/version (if applicable): MS IE 6.0

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Mon, 2003-11-10 23:50

What mode is your Gallery. Look for this in config.php:

$gallery->app->ML_mode = "3";

[Moving to Translation forum]

 
martijn17

Joined: 2003-11-10
Posts: 6
Posted: Mon, 2003-11-10 23:57

It was in mode 2, i've set it to 3 now, but no difference.

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Tue, 2003-11-11 00:02

Yup, there's a problem.

Jens???

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Tue, 2003-11-11 00:11

Hi,

can you give me an URL to a phpinfo ?

Jens

 
martijn17

Joined: 2003-11-10
Posts: 6
Posted: Tue, 2003-11-11 00:16
 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Tue, 2003-11-11 00:25

Thanks,

it seems something strange is going on with your gettext.
i am also a little confused about '--enable-safe-mode'.

Is this your server ?

Jens

 
martijn17

Joined: 2003-11-10
Posts: 6
Posted: Tue, 2003-11-11 00:30

Its an virtual hosted server. The domain is mine. I made an temporary user under the domain called '~hit'.

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Tue, 2003-11-11 11:56

Hi,

we made a fix for RC3, which will be out today (evening ?)
Hopefully this fixes the problem.

Jens

 
martijn17

Joined: 2003-11-10
Posts: 6
Posted: Tue, 2003-11-11 12:02

I hope so, I can't wait!!!! ;-)

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Tue, 2003-11-11 13:34

Hi Martijn,

its me again.
I think i was wrong :(

The RC3 fixes other problems.
I tried to reproduce the behaviour of your server, but i had no luck.
Is it possible, that i can get access to your server ?

SSh were good, FTP is okay.

Jens

 
martijn17

Joined: 2003-11-10
Posts: 6
Posted: Tue, 2003-11-11 14:10

i've sent you a PM, about this...

 
compa
compa's picture

Joined: 2003-08-31
Posts: 14
Posted: Wed, 2003-11-12 11:07

sorry, already commented on the release of rc3, but looking through the code and playing with nls.php got me somewhere, the 'gallery' still is in english (prefered lang is dutch) but the code can't more languages

my system is on freebsd (so no locale -> also no locale -a) but it will find /usr/share/locale with the xx_XX.ISO* files there, but i think it breaks before that on the check what gallery_languages() (util.php) returns, which get's it's data from nls.php

adding below english a line with nl_NL and Nederlands gives me choises (and no more warnings in the first configure screen) and also detects nl_BE and all ISO* standards for nl_NL and nl_BE

does this provide any pointers for someone?

Gallery URL (optional but very useful): http://mail.wilhelmina.org/gallery/
Gallery version: 1.4.1-RC3
Apache version: 2.0.48
PHP Version 4.3.4 RC4
Operating system: FreeBSD 4.9 stable

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Wed, 2003-11-12 12:41

Hi compa,

is there a way i access your gallery in config mode ?

Jens

 
compa
compa's picture

Joined: 2003-08-31
Posts: 14
Posted: Wed, 2003-11-12 12:58

i just pm'ed you copies of the output and my changes to nls.php

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Wed, 2003-11-12 13:46

Thanks,

your installation looks fine.
the change in main nls.php is not needed.

Are all files in locale folder readable for the webserver ?
Is this your server ? if yes, can you restart Apache ?

Jens

 
compa
compa's picture

Joined: 2003-08-31
Posts: 14
Posted: Wed, 2003-11-12 14:39

sorry, my mistake, went through the whole procedure again .. but the nl_NL pack tgz file unpacked with errors,

corrected it and now it seems to work ....

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Wed, 2003-11-12 14:43

ah :))

great to hear this.
I hope you like 1.4.1

If you are interested in updating nederlands translation file ... feel free.

Jens

 
setagllib

Joined: 2003-06-21
Posts: 18
Posted: Wed, 2003-11-12 20:12

I got the same problem here. I upgraded to RC3 and the config wizard says:

"Check to see what languages are available. Warning

It seems you didn't download any additional languages. This is not a problem! Gallery will appear just in English. Note: If this is not true, check that all files in locale folder are readable for the webserver, or contact the Gallery Team."

There are plenty of languages supplied with this release so why doesnt it see them?

 
virshu
virshu's picture

Joined: 2003-09-13
Posts: 314
Posted: Wed, 2003-11-12 20:52

I think I am missing something... the zip file for 1.4.1 RC3 (as well as RC2) doesn't have almost anything under locale/subdirectory. When I ran config wizard it told me that I don't have other languages installed, although I had all the directories from 1.4 installation - apparently it senses that these are old directories?

As result, the gallery comes with English only,

$gallery->app->ML_mode = "0";
$gallery->app->available_lang[] = "en_US";

If I force it to use other languages (like I had in 1.4) -

$gallery->app->ML_mode = "3";
$gallery->app->available_lang[] = "en_US";
$gallery->app->available_lang[] = "ru_RU";

the language comes up, but the only value in the menu is English.
Any suggestions?
Felix

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Wed, 2003-11-12 21:00
 
virshu
virshu's picture

Joined: 2003-09-13
Posts: 314
Posted: Wed, 2003-11-12 23:09

thanks, I felt I was missing something obvious... However, I downloaded two of the packs, from two mirrors, tried with two gzips - and every time I get

Quote:
gzip: it_IT-pack.tar.gz: unexpected end of file

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Wed, 2003-11-12 23:34

virshu,

Seems to be a problem there. we'll have to wait for Jens, but it's after midnight where he is, so it might be a while.

 
compa
compa's picture

Joined: 2003-08-31
Posts: 14
Posted: Thu, 2003-11-13 05:35

the unpacking gave me the same (as explained above) but it works anyway with NL .... strange !!!

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Thu, 2003-11-13 09:37

Hi,

maybe the files are broken ?

I will update the Sourceforge File when RC4 comes.
Till then you can find them at:

http://jems.de/archive/1.4.1

Jens

 
mikgus

Joined: 2002-12-01
Posts: 13
Posted: Thu, 2003-11-13 19:46

I have problem with alt 2 (let the browser decide). I can't get it to work properly! But with alt 3 i works fine!

/ mikgus

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Thu, 2003-11-13 19:49

hey, the rocking swedish team :))

- Can you set your Gallery in Mode 2 and give me the URL to it ?

- And with which browser did you test ?

Jens

 
mikgus

Joined: 2002-12-01
Posts: 13
Posted: Thu, 2003-11-13 19:55

OK, I PM you the data!

/ mikgus

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Thu, 2003-11-13 20:11

Hi,

thanks for the links.
Tested on WinXP with NS7.1 and IE6.
Both works fine.

Jens

 
mikgus

Joined: 2002-12-01
Posts: 13
Posted: Thu, 2003-11-13 20:20

Ok, thanx for testing. I still have problems on both my laptops. I will try on other computers tomorrow at work!

/ mikgus