MindTouch can be configured as a polyglot wiki which allows for multiple languages within a single MindTouch instance that can be used for multi-national content. To get started we need to configure MindTouch to use the languages that you want to support at your site. To do this go to the Control Panel -> System Settings -> Configuration. We want to add to Polyglot languages:

The configuration value is going to be a comma separated list of language abbreviations. Here is a table of languages that are supported in MindTouch along with their associated abbreviation. Note that you can specify a dialog for languages, so choose carefully
| Culture/Language Name | Culture |
| zh-cn | Chinese (PRC) |
| cs-cz | Czech (Czech Republic) |
| nl-nl | Dutch (Netherlands) |
| en-us | English (United States) |
| fr-be | French (Belgium) |
| fr-fr | French (France) |
| fr-lu | French (Luxembourg) |
| fr-ch | French (Switzerland) |
| gl-es | Galician (Spain) |
| de-at | German (Austria) |
| de-de | German (Germany) |
| de-lu | German (Luxembourg) |
| de-ch | German (Switzerland) |
| it-it | Italian (Italy) |
| it-ch | Italian (Switzerland) |
| ja-jp | Japanese (Japan) |
| nb-no | Norwegian (Bokmål, Norway) |
| pl-pl | Polish (Poland) |
| pt-br | Portuguese (Brazil) |
| pt-pt | Portuguese (Portugal) |
| ru-ru | Russian (Russia) |
| es-ar | Spanish (Argentina) |
| es-es | Spanish (Spain) |
| sv-se | Swedish (Sweden) |
For this example I want to add Spanish, French, and Japanese. I would then add the following abbreviations into the configuration value: fr-fr, es-es, ja-jp Which would look like this:

Then click Save Changes. This will then show those languages in the Set Page Properties. Once you have configured a page to use a specific language by setting the Page Properties then you can relate multiple pages together so that each page with referenced the localized version of itself. To do this you use the wiki.language DekiScript function.
Example:
I have a page called Test that is in English, Test Spanish that is the same content in Spanish, and Test French which is the same content in French. I want to make sure that each page is aware of the translated pages so that if a user navigates to the English version, they are aware that it is available in Spanish or French. To do so add the following DekiScript example into your page:
{{wiki.languages({ 'language1': 'path1', 'language2': 'path2', ... })}}
For the test example, here is how it would look like on the English page:
{{wiki.languages({ 'es': '/Test_Spanish', 'fr': '/Test_French' })}}
The pages path I have shows them in the main hierarchy, but they can be located anywhere in MindTouch.
This code would need to be put on all pages that you would want to reference back to the other localized versions ex: you would have to put the wiki.language on the Spanish page referencing the English and the French.
Once you add this code to the page it will show In other languages: at the bottom of the page and list the languages it is in as follows:
| File | Version | Size | Modified | |
|---|---|---|---|---|
| ||||
| ||||
| ||||
| ||||
| ||||
| ||||
| ||||
| ||||
Copyright © 2011 MindTouch, Inc. Powered by