[Drupal] How to test multilingual site with translated content in a Drupal website

| | 2 min read

Suppose you have a Drupal website which supports multilingual sites with translated content and the user has the permission to choose the language. On selecting the language all the contents should be converted to the selected language. This article sheds light on how the testing of this feature comes to be. Read on to know how to test Drupal site with translatable content.

If the Drupal site supports multilingual site with translated content, the following modules will be enabled.

Core Modules

  • Locale
  • Content Translate

Custom Modules

  • i18n(Internalisation)
  • l10n(localization helper modules)
  • Entity Translation

Main features that should be tested are

  1. Test the data
    • Ensure that multi-lingual web sites store the data in the UTF-8 Unicode encoding format.
    • Ensure that the displayed by the web site should be correct even if the entered data is in the other language.

    You can test the character encoding for your website in

    • Mozilla: go to View -> Character Encoding.
    • IE: go to View -> Encoding.
  2. Test the cultural issues
    We should check the following informations while testing data as each language might be meant for users from a particular culture.
    • Ensure that colors displayed in the sites are correct.
    • Ensure that the text direction (this can be left to right, right to left or top to bottom) is correct.
    • Ensure that format of salutations and addresses are correct.
    • Ensure that measures are correct.
    • Ensure that currency symbol changed depends on the language.
    • Ensure that date format also changes correctly.
  3. Test the other controls in the site.
    • Ensure that the web site provides correct error messages in the other language.
    • Ensure that no junk characters are displayed while translating characters.
  4. Testing the labels.
    • Ensure that the translated labels doesn't expand.
    • Ensure that the labels are not truncated.
    • Ensure that the overlay on in all languages.
    • Ensure that there is not any incorrect word wrapping etc.

This article specify some of the cases which should be considered while testing multilingual site with translated content in Drupal 7. Procedure may depending on the drupal versions and requirement.

 

 

Zyxware is a leading Drupal development company with a team of high expertise in Drupal custom module development services since 2006.