Configuration

You'll need to hack your template a little to get it to show the plugin's flags.

Template

Without hacking your template too much, the cleanest way is to create a file in your template directory called /lib/tpl/_template_/show_languages.html

1 <?php 
2   $multi_lingual_plugin = &plugin_load('syntax','multilingual');
3   if ( $multi_lingual_plugin ) {
4     if ( !plugin_isdisabled($multi_lingual_plugin->getPluginName() ) ) {
5       print $multi_lingual_plugin->_showTranslations();
6     }
7   }
8 ?>

Note that the if conditions check first that the plugin both exists and is enabled - this allows your template to function, even if you do not currently have the plugin installed. Then add the following line somewhere in your template's main.php .

1   <?php @include(dirname(__FILE__).'/show_languages.html')?>

Configuration Manager

As admin, under the configuration settings page, there are some important configuration settings that are necessary to be configured before proceeding:

  • Enabled Languages - provide a comma separated list here (no default is assumed, so include all languages you wish to enable).
  • Use Flags - enables graphics for the language items.
  • Utilise Browser UI Preference - use the browser's language preference to set the language used by the wiki's UI
  • Start page redirection - when logging in, redirect the user to the start page corresponding to their language.

You can test the browser sniffing in Firefox by simply going to edit->preferences->advanced and choose a language other than your system language.

Also available in: HTML TXT