DokuWiki

It's better when it's simple

User Tools

Site Tools


tips:browserlanguagedetection

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tips:browserlanguagedetection [2018-04-22 03:41] Dr-Yukontips:browserlanguagedetection [2018-04-24 01:41] (current) Dr-Yukon
Line 1: Line 1:
 ====== Browser Language Detection ====== ====== Browser Language Detection ======
 +
 +:!: OBSOLETE
 +
 To have the Wiki language being select based on available languages set on user's browser, perform these actions: To have the Wiki language being select based on available languages set on user's browser, perform these actions:
  
Line 10: Line 13:
 with with
 <code php> <code php>
-// $conf['lang'       = 'en';              //your language+$conf['lang'       = 'en';              //your language
 $conf['lang_default'] = 'pt'; // default language $conf['lang_default'] = 'pt'; // default language
 $conf['lang_enabled'] = array('pt', 'es', 'de', 'en'); $conf['lang_enabled'] = array('pt', 'es', 'de', 'en');
Line 72: Line 75:
 // DWD Modify End. // DWD Modify End.
 require_once("lang/".$conf['lang']."/lang.php"); require_once("lang/".$conf['lang']."/lang.php");
 +</code>
 +----
 +Edit **conf/dokuwiki.php** again, and comment %%$conf['lang']%% line:
 +<code php>
 +// $conf['lang'       = 'en';              //your language
 </code> </code>
  
tips/browserlanguagedetection.1524361319.txt.gz · Last modified: 2018-04-22 03:41 by Dr-Yukon

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki