Language selection

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
niclas
Posts: 2
Joined: Sat Dec 15, 2007 9:03 pm
Contact:

Language selection

Post by niclas »

How do I remove the language drop down menu? My FAQ is entirely in English so the drop down seems unnecessary. Couldn't find anywhere in configuration to change this.

/Niclas
Thorsten
Posts: 15739
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

just remove the block in index.tpl.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
niclas
Posts: 2
Joined: Sat Dec 15, 2007 9:03 pm
Contact:

Post by niclas »

Great thanks. Worked like a charm

/Niclas
pedro
Posts: 1
Joined: Fri Feb 29, 2008 2:20 am

Post by pedro »

I worked for me too, the language menu is gone! But I still have a little problem. My FAQ site is in spanish only. When I view the FAQ site from a computer with english language settings the FAQ website shows in english, therefore empty.

How can I have the FQA shown always in spanish regardless the default language setting of the user's computer.

Note: the language file is set to spanish in the admin.

BTW, this open source is great. Many thanks,
Thorsten
Posts: 15739
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

just disable the automatic language detection in the configuration.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
wolf
Posts: 22
Joined: Tue Jan 11, 2005 10:44 am
Location: Denmark
Contact:

Post by wolf »

Thorsten wrote:just disable the automatic language detection in the configuration.
I suddenly got the same problem as the Spanish poster after upgrading from 2.0.1 to 2.0.6.

My FAQ is entirely in Danish, but after the upgrade only the English version (with no FAQ contents) is displayed. When I select the Danish language from the language drop-down box, the FAQ contents are displayed correctly.

Unfortunately, it doesn't help to disable automatic language detection in the configuration. (In the past I've had to briefly enable it, save the configuration, and then re-disable it and save the configuration.)

I'm afraid it looks like a bug.

Update: Pedro said something about a language setting in the admin section. I can't find that setting; where is it?

Update: I looked at the MySQL database. Whenever I write the configuration, the setting "main.language" is set to false. When I manually change it to da (for Danish) in the MySQL database, the FAQ is displayed correctly. It really looks like there's some kind of bug in the admin interface that causes the default language selection to be omitted.

- wolf -
Thorsten
Posts: 15739
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

I'll take a löok at it.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
wolf
Posts: 22
Joined: Tue Jan 11, 2005 10:44 am
Location: Denmark
Contact:

Post by wolf »

Thorsten wrote:I'll take a löok at it.
It looks like it's still present in 2.0.7. Are you deferring it to 2.5?
katandr
Posts: 1
Joined: Mon Mar 30, 2009 9:53 am

Re: Language selection

Post by katandr »

Hi, it is still not possible to set for only English FAQs to be displayed regardless of the browser default language.
The version is 2.0.11,
any tricks that you can suggest?
Thorsten
Posts: 15739
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Language selection

Post by Thorsten »

Hi,

you can disable the browser's language detection in the configuration.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply