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: Never
- By who: N/A
- Branch/Revision number: N/A
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.
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",