I18N (Internationalization)

This DokuWiki installation was extended to support content in multiple languages. By default, the wiki uses either the language of the visitor if possible or German if either the browser does not send an “Accept-Language” header or the browser's list of accepted languages does not contain any of the supported languages.

On the page Display of HTTP request headers you can check if your browser sends an “Accept-Language” header. The first language which is supported by the wiki will be used.

The idea is described in tips:multilingual_content. Generally i used the suggested changes as described in tips:multilingual_content:local.php. Additionally i extended a number of things:

  • The page names and the “You are here” header are displayed without the language as namespace
  • There are additional links in the header to change the language at any time
  • The search results and the sitemap show pages in the current language only
  • If neccessary, the wiki redirects to the language specific version of a requested page if it exists

Note: English is not my mother tongue – therefore not all pages are available in English and the existing translations may contain errors – but at least it should be understandable.