History: Multilingual_Wiki

Preview of version: 23

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.

Managing translation of updates

  • Go to an English page that has a French translation where the two are considered to be 100% up to date.
  • Change a few words in the English page, and save.
  • Make sure that the translation assistant (on the right column):
    • Says that the French page needs updating.
    • Says that the English page is still 100% up to date
  • Switch to the French page, and check that:
    • It says that it needs to be updated from English.
    • It is less than 100% up to date.
  • Click on the Update from icon.
  • Make sure that:
    • You see a diff of the changes you made on the English page.
    • You get an edit area with the current content of the French page.
    • Reproduce part of the English change in the French, and click on Partial Translation button.
    • Make sure that French page is still listed as needing to be updated, and as being less than 100% up to date.
  • Click again on the Update from icon, and finish translating the English change.
    • This time, click on Complete Translation button.
  • Make sure that the French page is now listed as being 100% up to date, and that it does not have an _update from__ icon anymore.

Testing custom translated strings

  • Create a custom translated string for FR
    • Admin > i18n > Customized String Translation tab
    • French > Edit
      • Replace the following line:
//"Hello"=>"My Hello",

      • With this
"will be translated automatically"=>"sera traduit automatiquement",

      • Save button.
    • NOTE: This may not be necessary??? English > Edit
      • Replace the following line:
//"Hello"=>"My Hello",

      • With this
"will be translated automatically"=>"will be translated automatically",

      • Save button.
  • 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".

Simultaneous updates in two languages at once

  • Go to a page that has En and Fr, and where both are considered to be 100% up to date.
  • Make a change to the En page.
  • Make a change to the Fr page.
  • Check that En page:
    • Is shown as less than 100% up to date.
    • Has an icon for updating FROM fr
    • Has an icon for updating TO fr
  • Check that Fr page:
    • Is shown as less than 100% up to date.
    • Has an icon for updating FROM en
    • Has an icon for updating TO en
  • From the Fr page, click on the upddate from icon, translate the update, then click on Complete Translation.
  • Make sure that the Fr version:
    • is now considered as 100% up to date,
    • Does not have an update from En icon.
    • But still has an update to En icon.
  • Make sure that the En version:
    • is still considered to be less than 100% up to date,
    • Still has an update from Fr icon.
    • Does not have an update to Fr icon.
  • Still on the En page, click on the update from fr icon, translate the change, and click on Complete Translation.
  • Make sure that En page:
    • Is now shown to be 100% up to date.
    • Does not have either an update to fr, nor update from fr icon.
  • Make sure that Fr page:
    • Is now shown to be 100% up to date.
    • Does not have either an update to en, nor update from en icon.

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.

Assing existing page as a translation

  • Create a french page Bonjour le monde, and type "Bonjour" in it.
  • Create an english page Hello world, and type "Hello" in it.
  • On Hello world page, click on Translate button.
  • Assign page Bonjour le monde as a translation.
  • NEED TO FINISH DESCRIBING THIS SCENARIO.

History

Information Version
Tue 14 of Sep, 2010 01:33 GMT-0000 Marc Laporte Cleaner 39
Wed 04 of Aug, 2010 18:59 GMT-0000 Marc Laporte 38
Fri 29 of Jan, 2010 15:17 GMT-0000 alain_desilets 37
Fri 29 of Jan, 2010 14:49 GMT-0000 alain_desilets 36
Fri 29 of Jan, 2010 14:41 GMT-0000 alain_desilets 35
Wed 27 of Jan, 2010 20:22 GMT-0000 alain_desilets 34
Wed 27 of Jan, 2010 20:06 GMT-0000 alain_desilets 33
Tue 19 of Jan, 2010 23:51 GMT-0000 alain_desilets 32
Sat 16 of Jan, 2010 11:11 GMT-0000 alain_desilets 31
Sat 16 of Jan, 2010 11:08 GMT-0000 alain_desilets 30
Wed 06 of Jan, 2010 19:50 GMT-0000 alain_desilets 29
Wed 06 of Jan, 2010 19:45 GMT-0000 alain_desilets 28
Tue 05 of Jan, 2010 15:44 GMT-0000 alain_desilets 27
Tue 22 of Dec, 2009 13:21 GMT-0000 alain_desilets 26
Tue 22 of Dec, 2009 13:08 GMT-0000 alain_desilets 25
Fri 18 of Dec, 2009 20:20 GMT-0000 alain_desilets 24
Mon 07 of Dec, 2009 20:32 GMT-0000 alain_desilets 23
Fri 04 of Dec, 2009 21:00 GMT-0000 alain_desilets 21
Fri 04 of Dec, 2009 20:06 GMT-0000 alain_desilets 20
Fri 04 of Dec, 2009 20:00 GMT-0000 alain_desilets 19
Fri 04 of Dec, 2009 19:55 GMT-0000 alain_desilets 18
Fri 04 of Dec, 2009 19:51 GMT-0000 alain_desilets 17
Fri 04 of Dec, 2009 14:18 GMT-0000 alain_desilets 16
Fri 04 of Dec, 2009 14:14 GMT-0000 alain_desilets 15
Fri 04 of Dec, 2009 14:08 GMT-0000 alain_desilets 14
  • «
  • 1 (current)
  • 2