Difference between revisions of "Features/Enhanced Gettext/Testing"

From Sugar Labs
Jump to navigation Jump to search
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
* Test Case 1 - Sim doesn't requires Pin/Puk configuration:
+
=== Testing without language packs ===
  
# Go to control panel, Modem Configuration
+
This is mostly regression testing, in order to ensure that we do not break existing stuff with the new patch.
# Set username, password, number, and apn
 
# Save changes and restart
 
# Connect the device and wait until the device icon appears
 
# Click on connect item
 
# Check that connection information is ok.
 
# Click on disconnect item
 
  
# Test Case 2 - Sim  requires Pin/Puk configuration
+
* Set the locale to something other than en_US.UTF-8 (by editing ~/.i18n). As an example, it can be de_DE.UTF-8 or es_PE.UTF-8
 +
* Restart Sugar or sugar-emulator
 +
* Start random activity
 +
* Ensure that the translated strings come up properly
  
1. Go to control panel, Modem Configuration
+
=== Testing with language packs ===
2. Set username, password, number, apn and a wrong Pin/Puk configuration
+
 
3. Save changes and restart
+
This tests support for language packs (which are essentially translation files which can be installed separately from the activities later on by deployments)
4. Connect the device and wait until the device icon appears
+
 
5. Click on connect item- The system shows "Authentication Error" "Sim requires Pin/Puk configuration"
+
* Set the locale to es_PE.UTF-8 by editing ~/.i18n (it should read LANG=es_PE.UTF-8)
6. Click over the message "Sim requires Pin/Puk configuration"
+
* Restart Sugar or sugar-emulator
7. Go to control panel, Modem Configuration and set a valid Pin/Puk configuration.
+
* Set the GConf key ''/desktop/sugar/i18n/langpackdir'' to some random directory (say ''/foo'')
8. Save changes and restart
+
** The best way to do this would be to start Terminal and use the command ''gconftool-2 --set -t string /desktop/sugar/i18n/langpackdir /foo'' (this will create the key if it does not exist as well)
9. Click on connect item- The system shown the connection information
+
* Make directory ''/foo'' (with the command mkdir -p /foo)
10. Click on disconnect item
+
* Make directory /foo/es_PE/LC_MESSAGES
 +
* Download http://people.sugarlabs.org/~sayamindu/org.laptop.sugar.ReadActivity.mo into /foo/es_PE/LC_MESSAGES
 +
* Start Read Activity and confirm if the translation string for the Fullscreen button comes up as "FooBar"
 +
* Remove the file org.laptop.sugar.ReadActivity.mo
 +
* Restart Read Activity
 +
* Confirm if the translation string for the Fullscreen button comes up as Pantalla completa

Latest revision as of 05:23, 13 February 2010

Testing without language packs

This is mostly regression testing, in order to ensure that we do not break existing stuff with the new patch.

  • Set the locale to something other than en_US.UTF-8 (by editing ~/.i18n). As an example, it can be de_DE.UTF-8 or es_PE.UTF-8
  • Restart Sugar or sugar-emulator
  • Start random activity
  • Ensure that the translated strings come up properly

Testing with language packs

This tests support for language packs (which are essentially translation files which can be installed separately from the activities later on by deployments)

  • Set the locale to es_PE.UTF-8 by editing ~/.i18n (it should read LANG=es_PE.UTF-8)
  • Restart Sugar or sugar-emulator
  • Set the GConf key /desktop/sugar/i18n/langpackdir to some random directory (say /foo)
    • The best way to do this would be to start Terminal and use the command gconftool-2 --set -t string /desktop/sugar/i18n/langpackdir /foo (this will create the key if it does not exist as well)
  • Make directory /foo (with the command mkdir -p /foo)
  • Make directory /foo/es_PE/LC_MESSAGES
  • Download http://people.sugarlabs.org/~sayamindu/org.laptop.sugar.ReadActivity.mo into /foo/es_PE/LC_MESSAGES
  • Start Read Activity and confirm if the translation string for the Fullscreen button comes up as "FooBar"
  • Remove the file org.laptop.sugar.ReadActivity.mo
  • Restart Read Activity
  • Confirm if the translation string for the Fullscreen button comes up as Pantalla completa