Enables most multilingual wiki and assign the translation module.
Configuration code
YAML
preferences:
feature_multilingual: y
feature_translation: y
featur_urgent_translation: y
feature_multilingual_structures: y
feature_best_language: y
feature_detect_language: y
quantify_changes: y
freetags_multilingual: y
wiki_page_regex: full
# Support insertion of translated string in wiki markup
wikiplugin_tr: y
lang_use_db: y
objects:
-
type: module
data:
position: right
order: 20
name: switch_lang
groups: [ Anonymous, Registered ]
-
type: module
data:
position: right
order: 10
name: translation
groups: [ Anonymous, Registered ]
After this profile is activated, you will notice a "translate" button on wiki pages. Once you translate wiki pages, you will start seeing (when relevant), the "translation" module which provides you information about the state of translation. You can see this in action over at:
www.wiki-translation.com
Test plan
Below is a list of scenarios that needs to be tested for this profile. Eventually, they should be implemented as automated tests using Selenium.
Note: This test plan is still highly incomplete!
Last tested
- Date: 2009-12-04
- By who: Alain Désilets
- Branch/Revision number: Tiki 4.x/r23661
Setting up the site for testing
- Reinstall the DB, using Barebones profile
- Install the Multilingual_Wiki profile
- Set the default site languages as English. Set French and Spanish as alternative languages
- Admin > i18n
- Default Language: English
- Click on the Restrict support languages checkbox.
- A list of languages opens up. Holding down the Ctrl key, click on English, French and Spanish.
- Change preferences button.
Switching between languages
Need to provide more details for the various scenarios
- Go to a unilingual page
- Make sure that the language picklist does not mention other languges
- Go to a bilingual page (en and fr)
- Use the language picklist to move between the two languages
- Go to a trilingual page (en, fr, es)
- Use the language picklist to move between the three languages
Language guessing
- Login as test_user and set langauges preferences:
- Set French as the first language, and English is the second language
- Login as admin and set the site's default languges to English
- Still as admin, make sure that the langauge guessing feature is enabled
- Go to a page that is available in En and Fr
- Make sure that by default, the page is displayed in Fr, even though the site's default language is En.
Testing custom translated strings
- Create a custom translated string for FR
- Admin > i18n > Customized String Translation tab
- French > Edit
- Replace the following line:
"will be translated automatically"=>"sera traduit automatiquement",
- NOTE: This may not be necessary??? English > Edit
- Replace the following line:
"will be translated automatically"=>"will be translated automatically",
- Create a French page with that custom string in it
- Create a page Page Francaise.
- Enter following in it:
{TR()}will be translated automatically{TR}
- Make sure it is a French page
- Translate button, then
- In Change language for this page section, choose French and then click on Change language button.
- Go back to page Page Francaise, and verify that the English string is actually displayed in French, i.e. "sera traduit automatiquement".