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.
Create a new translation
- Login as test_user.
- Go to an English page that does not have a French translation yet.
- Click on the Translate button.
- Specify French as the languge of the new translation.
- Enter the name for the French translation.
- Click on the ???_ button.
- Make sure that the content of the original English page was pasted into the new French page.
- Make sure that a notice Traduction en cours was automatically inserted at the top of the page.
- Replace some of the English text by French text.
- Click on Partial Translation button.
- Go to the English page.
- Check that the picklist now mentions French.
- Click on the French version, and make sure it takes you to the new French page you created.
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".
Changing language of a page
- Go to an English page that's also available in French, but not in Spanish.
- Switch to the French page using the language picklist.
- Make sure that the language picklist has French as the language
- Change the page's language to Spanish
- Click on the Translate button
- In the bottom section, select Spanish as the language and click on the Change language button.
- Go back to the English version of the page
- Make sure that the language picklist does not mention French anymore, but that it mentions Spanish
- Switch to the Spanish page, and make sure that it is the French page whose language you changed to Spanish.
- Turn the language of that page back to French, for future tests.