Gallery-site with only two languages-sidebar

parkiet

Joined: 2006-03-16
Posts: 22
Posted: Wed, 2007-05-23 10:24

Want only two languages: I have a website in two languages: Dutch and English. I have checked browser language preference in the admin page and set basic language to Dutch. When I set my browser language to a language other than Dutch or English, it uses the other language in the side bar, but the texts in on the album-pages stays Dutch. This also happens when I set the basic language in the admin to English. I have translated album titles in English (UK and US as well)in the album-settings. Possibly this is because I am using a Dutch version of Windows XP or something alike. I cannot control this myself. What I really want is to turn my gallery to English only if the browser language is not Dutch. Is this possible and how do I fix this?

My website is : http://www.fotomaritiem.nl

Kind regards,

BS
gallery - version : gallery-2.2.1-full
PHP Version 4.4.4
Apache/1.3.37 (Unix) mod_ssl/2.8.28 OpenSSL/0.9.7e-p1 PHP/4.4.4 FrontPage/5.0.2.2510

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2007-05-23 13:30

you'll need to edit a php file to accomplish this.
we plan to offer a nice GUI feature for G2.3 though.

edit modules/core/classes/GalleryTranslator.class

there's an array of all languages. you'll need to delete all entries but the dutch / english (US) ones.

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
parkiet

Joined: 2006-03-16
Posts: 22
Posted: Wed, 2007-05-23 14:33

Thank you, Valiant, for your quick response. I'll go and see if I can handle this.

BS

 
parkiet

Joined: 2006-03-16
Posts: 22
Posted: Wed, 2007-05-23 18:59

Tried en succeeded. So, this problem is solved.

Thanks for your help,

BS