Translation randomly switches between Dutch and English?!?

polar

Joined: 2005-01-20
Posts: 7
Posted: Thu, 2005-01-20 08:45

I'm running a Gallery 1.4.4 on my website http//www.muziekvereniging-voorwaarts.nl (click on the 'fotoarchief' button) and I have the Dutch language pack installed. Everything is configured correctly as far as I can see, but the strange thing is that when I access the gallery, half of the time it displays in English and half of the time in Dutch (also for the same texts!). When I click around in my website it sometimes switches between the two, seemingly at random.

This doesn't seem like a configuration issue to me, as the Dutch language does work correctly when it is displayed. But why do I still get English prompts then? Is this a server issue?

For what it's worth My website is running on an Apache server (on Debian Unix), with PHP 4.3.10, gettext enabled (see http//nl01.pcextreme.nl/phpinfo.php to check for yourself).

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Thu, 2005-01-20 09:16

Hello,

we have reports for this when a user is on a shared server where other users have also a Gallery.

Try changing the session var name in config.

Jens

 
acharabia

Joined: 2005-01-09
Posts: 38
Posted: Thu, 2005-01-20 09:30

First of all, pick-up your avatar
at the gallery in this phpBB board.

Hmmm... Welcome into gallery as a foerign user~ 8)
I saw your website and your gallery but no problem!!!
Running so cool~ on my PC. Are you in orchesta?!?! Ohho~ lol
What is your problem on the gallery? Sometime showing English?
Where? In fact, this langpak in gallery not 100% usefull to everybody!!!
Only some little help to admin when he deal to "config wizarrd" so layout
(=showing everyone as front page) is not so much need this langpak.

Me too!!! You can go here and click your national flag there
and checking all over... You can just read only below.

Quote:
*Es sind Kommentare vorhanden.
6 Hauptalben (8 insgesamt), 90 Bilder auf 2 Seiten
Letzte Änderung am Jan-16-2005. Dieses Album enthält 5 Elemente.
Dieses Album wurde 43 Mal angeschaut seit dem Jan-13-2005.

So very few part of gallery using this langpak.
(=this langpak adapt for only admin not guest)
Don't expect so much from this langpak~ :P
But log-in user(=after regist at your gallery) a little bit differet...
Because your log-in user never know in English?!?! So they will be
confusing what button click for their want to fonction on each config
board... Because all menu showing in English to them. But you don't
use "regist"(=that's mean they can create their own album at your
gallery) now, do you? So conclution is that is just little problem on
you gallery. Just ignored your gallery langpak problem~

That's the answer~ lol

-----------------------
Tim_j,
Anyway I'm happy to succeed to install this gallery
in the beginning of this year~ Critics no need about gallery~
In fact, my all of questions about the gallery how to running
on PC. is finished. Language?!?! I've already check it all of my
country language but... You know? Sometime make me more crumzy
to translate to native speakers. That's mean... Just using in English!!!
Why need so much my country language like that?!?! From time to time,
I don't understand insted of my country languages when I see any
translate on any program. e.g. I'm so much confusing when
I install "attach MOD" at my phpBB... Rather in English origin is
better understaning to me... But almost native speaker doesn't
think like this!!! They are very strictly to need their language.

Computer is very simple!!! Using just "0" or "1"
So they adapted one time about a certain program,
no more need any country languages in the system...
If you more and more changing and touching the system?!?!
You will be able to falling down like below... [img]http://www.copythat.pe.kr/ssu_darkhorse/images/smiles/biggrin_razz_01.gif[/img]

[img]http://www.copythat.pe.kr/images/heading_man.gif[/img]

 
polar

Joined: 2005-01-20
Posts: 7
Posted: Thu, 2005-01-20 09:33

I am indeed on a shared server. I just set the session_var to a different name in config.php, but it doesn't seem to make much difference :( ....
Any other ideas?

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Thu, 2005-01-20 09:59

polar:

hmm, i am not able to reproduce it.

Lets summarize what i understood.

1.)
You choose dutch as language -> Gallery in dutch
You go again to your gallery (not reload) and its in english ?

OR
2.)
You choose dutch as language -> Gallery in dutch
You go again to your gallery (not reload) and some parts (!!!) that were in dutch before (!!!!!!!) are now in english. and some parts still dutch ?

Jens

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Thu, 2005-01-20 10:05

Note to acharabia:

I dont exactly know what you are trying to say. _i_ think your posting is not helpful.
I also do not agree that everybody needs an avatar in this Forum.

You might think that polars Problem is HIS problem, but maybe it isnt and we can fix it with some tricky Gallery code.

Its true that the most langpacks are not completely finished.
Everybody can help making it better with sending me updated files.
So the language files are definitely not only for admins. Its for the complete Gallery.
Every visual text in Gallery is translateable.

with best Regards,

Jens

 
polar

Joined: 2005-01-20
Posts: 7
Posted: Thu, 2005-01-20 11:10
Tim_j wrote:
polar:

hmm, i am not able to reproduce it.

Lets summarize what i understood.

1.)
You choose dutch as language -> Gallery in dutch
You go again to your gallery (not reload) and its in english ?

OR
2.)
You choose dutch as language -> Gallery in dutch
You go again to your gallery (not reload) and some parts (!!!) that were in dutch before (!!!!!!!) are now in english. and some parts still dutch ?

Jens

Thanks for you trying to help me Jens.

For Clarity: I have selected Dutch as only allowed language in Gallery, so all native Gallery texts are expected to appear in Dutch. I don't expect any English texts. I do NOT have a problem with half my texts appear in Dutch and the other half in English. It is actually the SAME texts that appear sometimes in Dutch, sometimes in English, during the same session.

The behaviour is difficult to reproduce, it seems to happen quite randomly, but let me describe what I tried just now:
I started my browser, cleared the cache (to be sure its not loading anything from its cache), went to the gallery on my website, and it starts with all translatable texts in Dutch, just like I require.
Then I clicked the browser reload button, and it reloads the page, but now all texts are in English!

This is just an example, it also happens when I just click around on my website. Sometimes it works ok for some time, and then all of a sudden it's wrong again.

I begin to feel it's some sort of bug, but where to start looking for it......
Your remark on the session variable seemed to me to be in the right direction, but changing it to a more unique value doesn't seem to help.

Only thing I can think of right now is that maybe I should test it at home. Right now I'm at work and maybe they have a proxy server that is screwing things up with caching?

 
polar

Joined: 2005-01-20
Posts: 7
Posted: Mon, 2005-01-24 08:32

I have done some more testing. The problem still persists.
The random switching between EN and NL language only seems to happen when I access the main page (index.php) of Gallery. When loading this page repeatedly, the page loads either with EN or NL language while it should be NL. The first time it
seems to load ok with NL language, but after that the behaviour becomes random.
When accessing albums and viewing photo's the language doesn't switch and stays what is was at the main page.

Anyone any idea how to solve this?

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Tue, 2005-01-25 09:19

This is totally strange to me.

ALL Pages use the same mechanism.

So i have NO idea.

I'm sorry to say this.

Jens

 
jakob_w

Joined: 2005-02-02
Posts: 2
Posted: Wed, 2005-02-02 22:37

Hi
I have the same problem with danish and english. I have install danish as the only option, but gallery prefers english. Sometimes it is in danish on radom pages sometimes mixed. I'm pullig my hair out. I tried everything including reinstalling locals on virtual server.
Any luck with our dutch problem?
Is there anyway to by the locales detection?
Or should I just replace all english text with danish.

 
jakob_w

Joined: 2005-02-02
Posts: 2
Posted: Wed, 2005-02-02 22:40

I forgot my site http://www.fotopaaudstilling.dk It is under heavy work at the moment!

 
polar

Joined: 2005-01-20
Posts: 7
Posted: Thu, 2005-02-03 07:54
jakob_w wrote:
Hi
I have the same problem with danish and english. I have install danish as the only option, but gallery prefers english. Sometimes it is in danish on radom pages sometimes mixed. I'm pullig my hair out. I tried everything including reinstalling locals on virtual server.
Any luck with our dutch problem?
Is there anyway to by the locales detection?
Or should I just replace all english text with danish.

Hi Jakob,

I just checked your website and browsed around in your gallery. All texts are in Danish at this moment. Did you fix something already?

I'm still experiencing the same problem with Dutch & English. Haven't found an answer yet. It seems to happen totally at random. Maybe I should try to remove the English language files and see what happens :-?

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Fri, 2005-02-04 14:08

polar..

i got a post notify from the forum where you wrote that your problem is fixed.. But now i dont see it here ?

Jens

 
polar

Joined: 2005-01-20
Posts: 7
Posted: Fri, 2005-02-04 15:42
Tim_j wrote:
polar..

i got a post notify from the forum where you wrote that your problem is fixed.. But now i dont see it here ?

Jens

Correct. I thought I had solved the problem but I was mistaken.

My current theory is that the problem lies with my webhoster. They have 8 webservers with a loadbalancing system. If you look at the phpinfo of all of them, I think there are some differences with the locale settings (have a look at http://web01.pcextreme.nl to see for yourself, the other webservers are web02 - web08).

I know my website is located on a fileserver and I assume that any webserver can serve requests for it. The load balancer would determine which webserver is used for a request. If one of the webserver with the NL locale installed is serving requests, the Gallery language would be correct (in Dutch). If a webserver with only US locale installed is serving the request, Gallery would probably only display in English.

Does this sound like a logical theory to you?

I think it is something like this because yesterday I was having a look at the language configuration tab in the wizard, and after a reload of this wizard page I all of a sudden got some different messages at the bottom of the page (related to the locale aliases I think). I can only explain this due to a different webserver configuration due to the loadbalancer assigning a different webserver to my requests.

I have put a message in my webhoster's forum to ask about this and am currently awaiting their response. As soon as I know more I'll let you know.

 
vikzoli

Joined: 2005-03-06
Posts: 5
Posted: Sun, 2005-03-06 16:14

Hi, I have just read this thread searching for an answer to a similar problem. I have a website that is hosted on my own web server. It's not shared, and I have complete control over it. I run apache (2.0.40) and php version is 4.2.2. (http://www.gotzfamily.com/gallery). My gallery version is 1.5-RC1. (I had the same problem with earlier versions too).

I have 4 language options selectable by clicking on the flags. English (default), Hungarian, German and Dutch. I find that I have the same issue where I can click on the various flags and sometimes they will switch to that language, sometimes they won't. This appears most often with the Dutch language, but that could just be a coincidence. It does happen with all. The only reason I repeat this problem in this forum is because my setup is apparently different from polar's. If anyone has any ideas, I'm also all ears. I've been trying to figure this out for weeks.

Viktor

 
An

Joined: 2005-03-08
Posts: 1
Posted: Tue, 2005-03-15 09:56

Hi
I am having the same problem with dutch language. That's how I came here... looking for a solution :-)
Every time I open the gallery or reload a page the language switches randomly between dutch and english. I even have removed the en_US language folder from locale and rerun setup several times en set all options to dutch language only. But still the same problem. I am desperate, because I would like very much to have the gallery working correctly when uploading new lay-out for our site. I am using gallery version 1.5-RC1. I hope there is a solution somewhere.. somehow....
An

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Tue, 2005-03-15 11:08

Hello An,

the english text is the CODE, so removing the folder makes no sense :)
The translation works with a substitution on server side.
its like:

Is an other language wanted ?
yes -->
is the string available ?
yes --> use it
no --> show the original code (english)
no -> see above

But that the very simplest way.
At least i am not able to say what might be the problem in your case.
Might be Server cache, client cache, an optimizer engine, a shared server issue ... NO idea

i am sorry to say this,

Jens

 
polar

Joined: 2005-01-20
Posts: 7
Posted: Tue, 2005-03-15 19:09

Ok,

My problem seems solved now :) . Seems like my last hunch was right. My webhoster installed nl_NL locale on all its servers last week. At that time it didn't work rightaway, but since some days everything is in Dutch like it should be. They probably forgot to restart the webserver or something similar?
I also checked the LANG variable in phpinfo() on all the webservers and it's now set to nl_NL for all webservers (unlike before when there were different settings, such as nl_NL@euro, nl_NL and en_US).

Polar