Dokuwiki notes and tricks

Latest update 2020-08-04.

  • Installed languages: en, fi
  • The content is divided to two language sections so that all pages url's start with en or fi

Add to conf/local.php:

@include(DOKU_CONF.'local.protected.php');

In conf/local.protected.php:

<?php
$conf['lang'] = 'en';
$detected_lang = preg_replace('/^(..).*/i','$1',$_REQUEST['id']);
if (strcmp($detected_lang, 'fi') == 0) { $conf['lang'] = 'fi'; }
?>