SKIP LANGUAGE
From TMM Wiki
Jump to navigationJump to search
You can set surfer's browser languages to skip and load the default language instead
- Both config settings use ISO 639-1 two letter language codes ( https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes )
- By default, BROWSER_LANGUAGE_DEFAULT is set to en (English)
- Located in the Configuration Admin -> 'Display' -> 'Language'
Example use case:
Display the default language, 'English', to surfers who's browser language is any of the following 3 languages: 'Russian', 'Japanese', & 'Spanish',
$config['BROWSER_LANGUAGE_DEFAULT'] = 'en'; $config['SKIP_LANGUAGE'] = Array('ru','ja','es');
All 3 skipped languages would then use the default language, 'en'.