Fullscreen
[Show/Hide Right Column]

If you want multilingual forms, you have 3 options

  1. Make the labels bilingual
  2. Make a tracker per language
  3. Have the labels be translated (which is what is described below)

Multilingual trackers

Trackers can handle multilingual labels

  1. The labels should be in English and you add the translations to lang/xx/language.php
  2. It works for drop-down menus as well.
  3. Some field types can be identified as multilingual (to gather multilingual content)

Example

We want to create a Tracker that can support English and French users. We want our tracker to be translated in both languages and we want to make sure that all data is consolidated into the same tracker. In other words we don't want to have to create an English and French tracker.

In the following example, we will show you how to create a multilingual tracker. Lets see how we would create a multilingual Drop Down list inside of a Tracker where the user is required to select from a list of Continents.

Step 1: Create your tracker and create a new Field of Type (Drop Down

Image
Click on image to see example


Step 2: Translate your Tracker Field and Drop Down Items.

In the example we are creating, we have the following items to translate.

Tracker Field
EnglishFrench
Which Continent Do You Live In? Quel continent habitez-vous?


Drop Down List
EnglishFrench
AfricaAfrique
AsiaAsie
AustralasiaAustralasie
AntarticaAntartique
Europe Europe
North America Amerique du Nord
South America Amerique du Sud


Step 3: Move your translation to the proper Custom.php file
Go where you Tiki is installed and insert a file named "custom.php" inside the proper language folder.

Simply go to: (tiki_is_installed)/lang/(your_translated_language)/custom.php

Here is the sample code for our example
<?php
$lang_custom = array(
"Which Continent Do You Live In?"=>"Quel continent habitez-vous?",
"Africa"=>"Afrique",
"Asia"=>"Asie",
"Australasia"=>"Australasie",
"Antartica"=>"Antartique",
"Europe"=>"Europe",
"North America"=>"Amerique du Nord",
"South America"=>"Amerique du Sud",
);
$lang = $lang + $lang_custom;


Step 4: Congrats! You now have a multilingual tracker

Image
Screenshot of English Tracker


Image
Screenshot of translated French Tracker



alias

Contributors to this page: luciash d' being2153 points  , Marc Laporte8178 очков  and pascalstjean547 points  .
Page last modified on Friday 14 January, 2011 23:51:28 UTC by luciash d' being2153 points .
The content on this page is licensed under the terms of the Creative Commons Attribution-ShareAlike License.

Site Language

Reference Guide

Keywords

These keywords serve as "hubs" for navigation within the Tiki documentation. They correspond to development keywords (bug reports and feature requests):



Tiki Newsletter

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other news!
Contribute to Tiki