Dutch language?

boneless
boneless's picture

Joined: 2004-05-11
Posts: 32
Posted: Tue, 2004-05-11 15:17

Hi all,

I've just installed the gallery to my website and now I am wondering if there maybe is a dutch version of the gallery available? Or, if there is a patch that will give the gallery the dutch language. If so, where to find it and how to install it?

Thanks a lot (and I really mean a lot!)

Boneless

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2004-05-11 15:26
 
boneless
boneless's picture

Joined: 2004-05-11
Posts: 32
Posted: Tue, 2004-05-11 15:36

Thanks, but how to install them? I dont see any words about that in the forum.

Thnx!

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2004-05-11 15:57

Download the pack.
Extract the tar file to the locale directory
So in the locale directory you will have:
en_US (if you have this pack)
en_UK (if you have this pack)
nl_NL (your new pack)

Under the nl_NL directory you will have the .po files and flagimage directory etc.

re-run the config wizard.
On page #2 you will have settings to change for "Languages and locales"
select the languages you want (default) and if you want a pull-down for the language or flags etc and time settings etc.

Save and re-secure your setup directory and .htaccess and config.php files

I looked for directions as well and am surprised not to find them. :roll:
Dave

 
boneless
boneless's picture

Joined: 2004-05-11
Posts: 32
Posted: Tue, 2004-05-11 16:17
floridave wrote:
Download the pack.

Under the nl_NL directory you will have the .po files and flagimage directory etc.

Thanks for explaining, but there is another problem.
Mu hosting provider installed gallery (I only had to click the button) but it seems to be an older version. How can I update, without losing settings and albums?

Thanks, again!

Boneless

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2004-05-11 16:24

When you upgrade you will not loose any settings.
http://gallery.menalto.com/modules.php?op=modload&name=GalleryDocs&file=index&page=gallery1-install.upgrade.php

Just make a copy of your albums directory.
Also make sure that your ftp client overwrites ALL files. So chmod your setup directory so that it will have the contents overwritten.

Dave

 
boneless
boneless's picture

Joined: 2004-05-11
Posts: 32
Posted: Tue, 2004-05-11 17:15

Just make a copy of your albums directory.
Also make sure that your ftp client overwrites ALL files. So chmod your setup directory so that it will have the contents overwritten.

Dave

Tried it, still didnt get it to work.
I now will delete the complete installation and start all over again. Hopefully it will work after that.

Thanks for helping out so far!

Boneless

 
boneless
boneless's picture

Joined: 2004-05-11
Posts: 32
Posted: Tue, 2004-05-11 17:57

I now will delete the complete installation and start all over again. Hopefully it will work after that.

Boneless

So I did, I deleted everything, reinstalled the galley, updated it taking every step you said and as explained on the gallery.menalto.com site. After that, I ran the configuration wizard. It all went well, I changed the attribs again to secure mode and then I clicked on go to the gallery.

This is what I get, please, please help!!! :

Warning: putenv(): Safe Mode warning: Cannot set environment variable 'LANG' - it's not in the allowed list in /home/virtual/site115/fst/var/www/html/foto-album/lib/lang.php on line 307

Warning: putenv(): Safe Mode warning: Cannot set environment variable 'LANGUAGE' - it's not in the allowed list in /home/virtual/site115/fst/var/www/html/foto-album/lib/lang.php on line 309

Warning: Cannot modify header information - headers already sent by (output started at /home/virtual/site115/fst/var/www/html/foto-album/lib/lang.php:307) in /home/virtual/site115/fst/var/www/html/foto-album/lib/lang.php on line 319

Upgrading Users

The user database in your gallery was created with an older version of the software and is out of date. Dit is geen probleem! We will upgrade it. This may take some time. Your data will not be harmed in any way by this process. Rest assured, that if this process takes a long time now, it's going to make your gallery run more efficiently in the future.
If you get an error, and only some users are upgraded, try refreshing the page to upgrade remaining users.

Een moment geduld...

Checking user 1 of 5 . . . .
Warning: rename(/home/virtual/site115/fst/var/www/html/foto-album/albums/.users/1084296695:102522264,/home/virtual/site115/fst/var/www/html/foto-album/albums/.users/1084296695_102522264): Toegang geweigerd in /home/virtual/site115/fst/var/www/html/foto-album/platform/fs_unix.php on line 75

Warning: rename(/home/virtual/site115/fst/var/www/html/foto-album/albums/.users/1084296695:102522264.lock,/home/virtual/site115/fst/var/www/html/foto-album/albums/.users/1084296695_102522264.lock): Toegang geweigerd in /home/virtual/site115/fst/var/www/html/foto-album/platform/fs_unix.php on line 75

Warning: fopen(/home/virtual/site115/fst/var/www/html/foto-album/albums/.users/1084296695_102522264.lock): failed to open stream: Toegang geweigerd in /home/virtual/site115/fst/var/www/html/foto-album/platform/fs_unix.php on line 55
Fout Kon bestand niet openen (/home/virtual/site115/fst/var/www/html/foto-album/albums/.users/1084296695_102522264.lock)!failed
Checking user 2 of 5 . . . .
Warning: fopen(/home/virtual/site115/fst/var/www/html/foto-album/albums/.users/1084297975_1959420829.lock): failed to open stream: Toegang geweigerd in /home/virtual/site115/fst/var/www/html/foto-album/platform/fs_unix.php on line 55
Fout Kon bestand niet openen (/home/virtual/site115/fst/var/www/html/foto-album/albums/.users/1084297975_1959420829.lock)!failed
Checking user 3 of 5 . . . . skipped
Checking user 4 of 5 . . . . skipped
Checking user 5 of 5 . . . . skipped

Fout There was a problem upgrading users. Please check messages above, and try again

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2004-05-11 18:15

boneless,
Did you see a safe mode warning when you ran the config wizard?
FAQ Gallery:c.5

the other error looks like
FAQ Gallery:c.15 "Toegang geweigerd "

Dave

 
boneless
boneless's picture

Joined: 2004-05-11
Posts: 32
Posted: Tue, 2004-05-11 18:34
floridave wrote:
boneless,
Did you see a safe mode warning when you ran the config wizard?
FAQ Gallery:c.5

Dave

Ok, one step further. The users are upgraded, see www.boneless.nl/foto-album

But I do get the safe mode warnings. But my hosting provider supports gallery, they even promote it. Thats why I, after being logged in to my adminsite of the domain, I only had to click the 'install gallery' button. When I don't upgrade to the newer (and with Dutch lang) version manually, it works fine. earlier today I created an album and added photos without problems. The problems start after upgrading to the newer version of gallery. As far as I know all the chmods are ok. Have any ideas left?

Thanks!!!

Boneless

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Tue, 2004-05-11 18:37

Moving to correct forum

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Tue, 2004-05-11 18:47

Boneless,

Just remove those two lines.

[safe mode is lots of things. The bits your host has chosen allows gallery to work, but not the putenv]

 
boneless
boneless's picture

Joined: 2004-05-11
Posts: 32
Posted: Tue, 2004-05-11 18:49
joan wrote:
Boneless,

Just remove those two lines.

[safe mode is lots of things. The bits your host has chosen allows gallery to work, but not the putenv]

And where are these lines to be found?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2004-05-11 20:00

In lib/lang.php search for

	if (getOS() != OS_SUNOS) {
		putenv("LANG=". $gallery->language);
	}
	putenv("LANGUAGE=". $gallery->language);

	// Set Locale

And comment out the two lines like:

	if (getOS() != OS_SUNOS) {
		// putenv("LANG=". $gallery->language);
	}
	// putenv("LANGUAGE=". $gallery->language);

	// Set Locale

It seems your host does not allow you to set the LANG and LANGUAGE environments.

Dave

 
boneless
boneless's picture

Joined: 2004-05-11
Posts: 32
Posted: Tue, 2004-05-11 20:24
floridave wrote:
In lib/lang.php search for

// putenv("LANGUAGE=". $gallery->language);

// Set Locale[/code]

It seems your host does not allow you to set the LANG and LANGUAGE environments.

Dave

Thanks, problem solved.
But...new problem.
Now when I click an new album, I get the following error:

Warning: fopen(): SAFE MODE Restriction in effect. The script whose uid is 638 is not allowed to access /home/virtual/site115/fst/var/www/html/foto-album/albums/album01 owned by uid 48 in /home/virtual/site115/fst/var/www/html/foto-album/platform/fs_unix.php on line 55

Warning: fopen(/home/virtual/site115/fst/var/www/html/foto-album/albums/album01/photos.dat.lock): failed to open stream: Onbekend bestand of map in /home/virtual/site115/fst/var/www/html/foto-album/platform/fs_unix.php on line 55
Fout Kon bestand niet openen (/home/virtual/site115/fst/var/www/html/foto-album/albums/album01/photos.dat.lock)!
Warning: Cannot modify header information - headers already sent by (output started at /home/virtual/site115/fst/var/www/html/foto-album/platform/fs_unix.php:55) in /home/virtual/site115/fst/var/www/html/foto-album/do_command.php on line 130

What more to change to get it to work?

Thanks again and thanks even more...

Boneless

 
boneless
boneless's picture

Joined: 2004-05-11
Posts: 32
Posted: Tue, 2004-05-11 20:28
boneless wrote:
Thanks, problem solved.
But...new problem.

And another one... (I though installing it would be easy).

When i try to register a new user, the popupwindow gives this message (after filling in the fields and clicking on 'add'):

Warning: fopen(/home/virtual/site115/fst/var/www/html/foto-album/albums/.users/userdb.dat.0): failed to open stream: Toegang geweigerd in /home/virtual/site115/fst/var/www/html/foto-album/platform/fs_unix.php on line 55

Warning: fopen(/home/virtual/site115/fst/var/www/html/foto-album/albums/.users/1084307148_155869617.lock): failed to open stream: Toegang geweigerd in /home/virtual/site115/fst/var/www/html/foto-album/platform/fs_unix.php on line 55
Fout Kon bestand niet openen (/home/virtual/site115/fst/var/www/html/foto-album/albums/.users/1084307148_155869617.lock)!

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2004-05-11 21:00

boneless,
Have you asked your host about Safemode?

Try to put your albums directory where you had it working before. Perhaps your host has set up that directory for reads and writes by the webserver. You will have to rerun the config wizard to tell it the new location.

Dave

 
boneless
boneless's picture

Joined: 2004-05-11
Posts: 32
Posted: Tue, 2004-05-11 21:23
floridave wrote:
boneless,
Have you asked your host about Safemode?

Yes I have e-mailed them about it, but no answer yet.

floridave wrote:
Try to put your albums directory where you had it working before. Perhaps your host has set up that directory for reads and writes by the webserver. You will have to rerun the config wizard to tell it the new location.

Dave

OK, I will try that tomorrow. First time round I had it in a dir called gallery, in the new installations I placed it in foto-album. You really think that can make a difference, even when I entered this dir-name in the tool (on the adminpart of my domain) that installs the gallery?