DokuWiki: How to use Google Translate to translate your wiki

In the file ‘’\dokuwiki\lib\tpl\dokuwiki\tpl.header.php''

Add the following code before the closing lines of the DIV and HEADER tags:

<div id="google_translate_element"></div><script type="text/javascript">
      function googleTranslateElementInit() {
        new google.translate.TranslateElement({
          pageLanguage: 'pl', // Sets Polish as the "default" in the dropdown
          includedLanguages: 'en,fr,de,es,it,nl,pt,sv,fi,da,cs,sk,hu,ro,el,bg,hr,lt,lv,et,sl',
          layout: google.translate.TranslateElement.InlineLayout.SIMPLE
        }, 'google_translate_element');
      }
</script>
 
<script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
 
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Tangerine">
<style>
      .wf-tangerine { font-family: Tangerine, serif; }
</style>