PDA

View Full Version : Miscellaneous Hacks - Language Detection


ForumsMods
12-27-2010, 10:00 PM
Language Detection

Description:
This modification detects the visitor's browsing language preference and automatically sets the forum language by language code. The detection can be overridden by selecting a different language from the dropdown selector.

Installation:

Import "product-language_detection.xml" as a product, overwrite if it's already installedLanguages:
- English

History:
28-12-10: v4.0 First Release

This hack is created for your use free of charge. No payment is requested. However, if you would like to donate money for the work I put in to this hack, a donation would show your appreciation.

dandanch
01-16-2011, 03:50 AM
Thanks for the mod,but where is the functions at in the acp?if any;)

ForumsMods
01-16-2011, 05:59 AM
Thanks for the mod,but where is the functions at in the acp?if any;)
There are not settings.
When someone visits your site, this hack gets the browser language and searchs in the database if there is a language with the same "language code".

You can modify "language code" editing a language.

dariyos
07-25-2016, 05:58 AM
the forum prefers the browser language, not the language settings in my profile.

Is that correct?

e.g.:

In my profile I set "german" as default language. In my browser I set "english" as first language.
now it prefers always english - doesn't matter what I set in my profile...