Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 24. Nov 2024, 00:55

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: default language
PostPosted: 24. Mar 2008, 22:24 
Offline

Joined: 18. Mar 2008, 16:20
Posts: 45
HI!

I'm changing the $default_language (last line of my_config.php, and config.php) and it isn't being recognized by TWG. It always appears in english (although I set the values to "de", "es", etc...). What may be the problem here? It doesn't make any sense to me !

:?:

Thanks,


siran


Top
 Profile  
 
 Post subject: Re: default language
PostPosted: 24. Mar 2008, 22:50 
Offline

Joined: 18. Mar 2008, 16:20
Posts: 45
siran wrote:
I'm changing the $default_language (last line of my_config.php, and config.php) and it isn't being recognized by TWG. It always appears in english (although I set the values to "de", "es", etc...). What may be the problem here? It doesn't make any sense to me !


Well, in fact in fact I think the gallery is remembering the last choice of language from the combo box, although I refreshed the web page.

I think "kind of" the same thing was happening with the $default_big_navigation, because although I had set it to DHTML it was still working as normal HTML.

... I deleted all cookies from my computer so that's not it. I deleted the cache (image and sessions) with the Admin so that's not either.


Could you please help me ?

thanks,

siran


Top
 Profile  
 
 Post subject:
PostPosted: 25. Mar 2008, 11:01 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
The first coice of TWG is your default language you set in your browser!!!
only if TWG cannot detect this then it used the default language you set in the config.

The documentation at the default language tells you this: "The gallery is started with this language if no language from the browser can be read."

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 25. Mar 2008, 13:12 
Offline

Joined: 18. Mar 2008, 16:20
Posts: 45
TinyWebGallery wrote:
The first coice of TWG is your default language you set in your browser!!!
only if TWG cannot detect this then it used the default language you set in the config.

The documentation at the default language tells you this: "The gallery is started with this language if no language from the browser can be read."

/Michael


Can I force the use of an initial language ?


siran


Top
 Profile  
 
 Post subject:
PostPosted: 25. Mar 2008, 13:45 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
why do you want to overwrite the language of the user?

You don't know which language the user speaks best.

You can of course disable the auto detection. Simply remove the code that does this.

/Michael


Top
 Profile  
 
PostPosted: 26. Oct 2008, 19:12 
Offline

Joined: 21. Aug 2007, 22:58
Posts: 6
Hello Michael,

I have several clients that have english windows (XP x64 doesn't have portuguese version), but want to use portuguese in twg.

Can you tell me where is the autodetection code so I can remove it?

Thank you.

Jonathan

Ps: to solve (aka "juryrigging") the problem, I'm actually copying the content of the "br" files into the "en" files, and moving the rest of the languages to the "extra" folder.


Top
 Profile  
 
 Post subject:
PostPosted: 26. Oct 2008, 19:50 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
it's in the index.php - quite at the top.

But your user only would have to set their preferred language in the browser to Portuguese.

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 26. Oct 2008, 20:07 
Offline

Joined: 21. Aug 2007, 22:58
Posts: 6
Hello Michael,

Thank you for the prompt reply.

The browsers are in portuguese (firefox portuguese version).
So I can't understand where is the problem.
I thought that twg was reading windows's language, not the browser's.

Any ideas before I change the code?

Regards

Jonathan


Top
 Profile  
 
 Post subject:
PostPosted: 27. Oct 2008, 09:04 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
I'm checking HTTP_ACCEPT_LANGUAGE
If this is not set I use the default language.

Try to set

$default_language = 'en';
to your language. Maybe the browsers have not set any preferred language.

/Michael


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
powered by phpbb | Datenschutz/ Privacy policy