Difference between revisions of "QA:Release Testing:l10n"

From Camino Wiki
Jump to navigation Jump to search
(commit draft so I don't lose it all again)
 
(→‎Bare Minimum: add two things I keep forgetting)
 
(30 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
To test, always run Camino under a fresh profile; an application like http://pimpmycamino.com/parts/troubleshoot-camino can facilitate this.
 
To test, always run Camino under a fresh profile; an application like http://pimpmycamino.com/parts/troubleshoot-camino can facilitate this.
  
 +
===Changing the active localization from the command-line===
 +
 +
To launch a given Camino using a given language default (without changing the language via Get Info or System Preferences) from the command line, use the following syntax
 +
 +
<code>/path/to/Camino.app/Contents/MacOS/Camino -AppleLanguages '(de)'</code>
 +
 +
where '' '(de)' '' is a string of language(s) similar to the output of <code>defaults read -g AppleLanguages</code>.  (Hat tip to [http://www.macosxhints.com/comment.php?mode=view&cid=80605 Marc Liyanage].)  To use a fresh (or other arbitrary) profile, append a <code>-profile /full/path/to/desired/location</code> argument.
 +
 +
Note, however, that some language- and locale-specific features (or bugs) only appear when the “OS” and Finder have been launched into a language at login.
 +
 +
The in-Xcode version of this tip is not useful for l10n release testing, but is included here for completeness. Define an argument in the executable info pane:
 +
 +
<code>-AppleLanguages "(en, es)"</code>
 +
 +
where '' "(en, es)" '' is once again a string of language(s) similar to the output of <code>defaults read -g AppleLanguages</code>.  (Hat tip to [https://wincent.com/wiki/Testing_localizations_from_within_Xcode Wincent Colaiuta].)
 +
 +
==QAing a Camino ML Release==
 +
 +
===Bare Minimum===
 +
 +
Based on the errors we've seen in the past, the following are the minimum steps that should be performed to QA the Camino ML build before release.
 +
 +
* Install the Camino ML using a default (admin) user
 +
* Run Camino ML using another, non-admin user
 +
* For each of the supported languages in Camino ML, set that language as topmost in the list in International prefPane of System Prefs (some languages will need to be added using the "Add…" button) and run Camino ML (again as the non-admin user who did not install Camino ML)
 +
** Spot-check the preferences and menus
 +
*** Make sure Cmd-l/r arrow are not set in the menu as the shortcuts for forward/backward
 +
** Spot-check sheets/dialogs (secure-to-insecure sheet, Reset Camino or Empty Cache, etc.)
 +
** '''NEW''' for 2.0: check both safebrowsing error pages to ensure there are no XML parsing errors - ([http://caminobrowser.org/documentation/security/safebrowsing/])
 +
** '''NEW''' for 2.0: check about:crashes to ensure there are no XML parsing errors
 +
** '''NEW''' for 2.0 (upgrades only): make sure tabs are 24px tall and not cut off (broken BrowserWindow.nib)
 +
** '''NEW''' for 2.0 (upgrades only): make sure blocking popups does not crash Camino (broken PopUpBlockView.nib) - [http://popuptest.com/popuptest12.html]
 +
**:
 +
** '''NEW''' for 2.1 (upgrades only): make sure that CookieText in Localizable.strings uses %@ and not %s - [http://简体中文.idn.icann.org/首页]
 +
** '''NEW''' for 2.1 (upgrades only): make sure that print UI strings are present in Localizable.strings
 +
** '''NEW''' for 2.1: make sure certificate error pages have no XML parsing errors - [https://cacert.org/], [https://www.ardisson.org/]
 +
** '''NEW''' for 2.1: make sure about:config is localized
 +
** '''NEW''' for 2.1: make sure FAYT strings are localized
 +
** '''NEW''' for 2.1: make sure network error pages are fully localized - [http://bob.caminobrowser.org]
 +
** '''NEW''' for 2.1: make sure offline mode menu item and error pages are localized
 +
** '''NEW''' for 2.1: make sure XML pretty-print strings are localized - [http://www.w3schools.com/xml/note.xml]
 +
** '''NEW''' for 2.1: make sure missing/disabled/blocked plug-in strings are localized - [http://www.adobe.com/software/flash/about/], [http://flightpass.higherplaneproductions.com/g2data/albums/FreeAll/popup.php?src=/g2data/albums/FreeAll/freewmv/JoeNall10_3DH-_W.wmv], [http://www.computerhope.com/issues/ch000591.htm#4]
 +
** '''NEW''' for 2.1 (upgrades only): Verify that MacUpdate has replaced VersionTracker in the default bookmarks
 +
** '''NEW''' for 2.1 (upgrades only): Verify that the URL for the BBC News has been updated in the default bookmarks
 +
** '''NEW''' for 2.1 (upgrades only): Verify that WebSearchEngines.plist has been updated properly
 +
** Make sure Page Info's titles are translated
 +
** Make sure the Downloads window and its views are translated
 +
<!-- not since 2.0.x
 +
* Check the About box and Finder's Get Info to make sure they display correctly (Int) in all the languages (Info.plist and InfoPlist.strings). Watch for wacky stuff in the cvs tag, too.
 +
-->
 +
 +
===Expanded (Specific Items)===
 +
 +
* Verify that all included localizations appear to "work", i.e. by setting each one as the preferred language in the System Prefs in turn and performing the subsequent steps.
 
* Set the default browser to other-than-Camino and launch
 
* Set the default browser to other-than-Camino and launch
*
 
 
* Ensure the Bookmarks menu works properly and is validated
 
* Ensure the Bookmarks menu works properly and is validated
 
** Bookmark Current Page… (enabled for any non-blank, non-special-protocol page)
 
** Bookmark Current Page… (enabled for any non-blank, non-special-protocol page)
 
** Bookmark Current Pages as Tab Group… (enabled for any 2 or more non-blank, non-special-protocol pages)
 
** Bookmark Current Pages as Tab Group… (enabled for any 2 or more non-blank, non-special-protocol pages)
** Check that the alternates (hold down shift) work
+
** Check that the alternates (hold down shift) work for these items
* Loc stings
+
* Check to <code>Localizable.strings</code> files to ensure all strings are translated
* spelling cm
+
* Check the Spelling context menu to ensure No Guesses Found, Learn Word, and Ignore Word are translated.
* button widths
+
* Check button widths in all new or modified nibs
* changed nibs
+
** Ensure the leftmost button in the pop-up blocker nib is clickable for its entire width and not covered by the text field.
 +
* Verify all search engines and default bookmarks work (note that some default Camino bookmarks referring to Camino itself are redirects; this is by design)
 +
* Make sure the software update window appears and all the buttons are visible/functional ('''N.B.''' This requires temporarily moving aside the <code>org.mozilla.camino.plist</code> file, since any changes to window sizes or positions you have made personally are stored in that file and will override any potentially broken dimensions in nibs)
 +
* ProgressView.nib: make sure none of the "time remaining" strings are cut off (the view needs to be resized by localizer in order to fit the longest string; see {{bug|485146}} comment 10-12)
 +
* '''NEW''' for 2.0: check the Breakpad client UI; it's entirely strings-based with layout all done via code, so there ''shouldn't'' be any problems ({{bug|403997}} to crash)
 +
* '''NEW''' for 2.0: check the Appearance preference pane and make sure each tab resizes properly
 +
* '''NEW''' for 2.0: check the cert override UI ([https://cacert.org cacert.org] to test)
 +
* '''NEW''' for 2.0: check the Flashblock context menu ([http://adobe.com adobe])
 +
 
 +
==Camino 1.5.1 ML verification smoketesting==
 +
 
 +
*{{bug|383431}} - [l10n] the word "como" is misspelled when i ctrl-click in certain pages (Spanish)
 +
*{{bug|383319}} - [l10n] Text not translated in Keychain.nib, elsewhere, in German localization
 +
*{{bug|387065}} - Portugese localization non-functional due to incorrectly-named .lproj
 +
* Ensure Norwegian l10n functions when language is set to Norwegian (Norsk; 10.3) and Norwegian Bokmål (10.4)
 +
* Spelling CM as above
 +
* Default browser buttons as above
 +
* Rightmost popup blocker button as above
 +
* Multilingual dmg changes (ensure nothing looks weird in fr, es, de, it)

Latest revision as of 23:04, 4 February 2012

Marcello has a QA test plan for localizations at http://cl10n.rwx.it/how-to/l10n-qa; however, based on experiences with Camino 1.5, we need to expand this.

To test, always run Camino under a fresh profile; an application like http://pimpmycamino.com/parts/troubleshoot-camino can facilitate this.

Changing the active localization from the command-line

To launch a given Camino using a given language default (without changing the language via Get Info or System Preferences) from the command line, use the following syntax

/path/to/Camino.app/Contents/MacOS/Camino -AppleLanguages '(de)'

where '(de)' is a string of language(s) similar to the output of defaults read -g AppleLanguages. (Hat tip to Marc Liyanage.) To use a fresh (or other arbitrary) profile, append a -profile /full/path/to/desired/location argument.

Note, however, that some language- and locale-specific features (or bugs) only appear when the “OS” and Finder have been launched into a language at login.

The in-Xcode version of this tip is not useful for l10n release testing, but is included here for completeness. Define an argument in the executable info pane:

-AppleLanguages "(en, es)"

where "(en, es)" is once again a string of language(s) similar to the output of defaults read -g AppleLanguages. (Hat tip to Wincent Colaiuta.)

QAing a Camino ML Release

Bare Minimum

Based on the errors we've seen in the past, the following are the minimum steps that should be performed to QA the Camino ML build before release.

  • Install the Camino ML using a default (admin) user
  • Run Camino ML using another, non-admin user
  • For each of the supported languages in Camino ML, set that language as topmost in the list in International prefPane of System Prefs (some languages will need to be added using the "Add…" button) and run Camino ML (again as the non-admin user who did not install Camino ML)
    • Spot-check the preferences and menus
      • Make sure Cmd-l/r arrow are not set in the menu as the shortcuts for forward/backward
    • Spot-check sheets/dialogs (secure-to-insecure sheet, Reset Camino or Empty Cache, etc.)
    • NEW for 2.0: check both safebrowsing error pages to ensure there are no XML parsing errors - ([1])
    • NEW for 2.0: check about:crashes to ensure there are no XML parsing errors
    • NEW for 2.0 (upgrades only): make sure tabs are 24px tall and not cut off (broken BrowserWindow.nib)
    • NEW for 2.0 (upgrades only): make sure blocking popups does not crash Camino (broken PopUpBlockView.nib) - [2]
    • NEW for 2.1 (upgrades only): make sure that CookieText in Localizable.strings uses %@ and not %s - [3]
    • NEW for 2.1 (upgrades only): make sure that print UI strings are present in Localizable.strings
    • NEW for 2.1: make sure certificate error pages have no XML parsing errors - [4], [5]
    • NEW for 2.1: make sure about:config is localized
    • NEW for 2.1: make sure FAYT strings are localized
    • NEW for 2.1: make sure network error pages are fully localized - [6]
    • NEW for 2.1: make sure offline mode menu item and error pages are localized
    • NEW for 2.1: make sure XML pretty-print strings are localized - [7]
    • NEW for 2.1: make sure missing/disabled/blocked plug-in strings are localized - [8], [9], [10]
    • NEW for 2.1 (upgrades only): Verify that MacUpdate has replaced VersionTracker in the default bookmarks
    • NEW for 2.1 (upgrades only): Verify that the URL for the BBC News has been updated in the default bookmarks
    • NEW for 2.1 (upgrades only): Verify that WebSearchEngines.plist has been updated properly
    • Make sure Page Info's titles are translated
    • Make sure the Downloads window and its views are translated

Expanded (Specific Items)

  • Verify that all included localizations appear to "work", i.e. by setting each one as the preferred language in the System Prefs in turn and performing the subsequent steps.
  • Set the default browser to other-than-Camino and launch
  • Ensure the Bookmarks menu works properly and is validated
    • Bookmark Current Page… (enabled for any non-blank, non-special-protocol page)
    • Bookmark Current Pages as Tab Group… (enabled for any 2 or more non-blank, non-special-protocol pages)
    • Check that the alternates (hold down shift) work for these items
  • Check to Localizable.strings files to ensure all strings are translated
  • Check the Spelling context menu to ensure No Guesses Found, Learn Word, and Ignore Word are translated.
  • Check button widths in all new or modified nibs
    • Ensure the leftmost button in the pop-up blocker nib is clickable for its entire width and not covered by the text field.
  • Verify all search engines and default bookmarks work (note that some default Camino bookmarks referring to Camino itself are redirects; this is by design)
  • Make sure the software update window appears and all the buttons are visible/functional (N.B. This requires temporarily moving aside the org.mozilla.camino.plist file, since any changes to window sizes or positions you have made personally are stored in that file and will override any potentially broken dimensions in nibs)
  • ProgressView.nib: make sure none of the "time remaining" strings are cut off (the view needs to be resized by localizer in order to fit the longest string; see Bug 485146 comment 10-12)
  • NEW for 2.0: check the Breakpad client UI; it's entirely strings-based with layout all done via code, so there shouldn't be any problems (Bug 403997 to crash)
  • NEW for 2.0: check the Appearance preference pane and make sure each tab resizes properly
  • NEW for 2.0: check the cert override UI (cacert.org to test)
  • NEW for 2.0: check the Flashblock context menu (adobe)

Camino 1.5.1 ML verification smoketesting

  • Bug 383431 - [l10n] the word "como" is misspelled when i ctrl-click in certain pages (Spanish)
  • Bug 383319 - [l10n] Text not translated in Keychain.nib, elsewhere, in German localization
  • Bug 387065 - Portugese localization non-functional due to incorrectly-named .lproj
  • Ensure Norwegian l10n functions when language is set to Norwegian (Norsk; 10.3) and Norwegian Bokmål (10.4)
  • Spelling CM as above
  • Default browser buttons as above
  • Rightmost popup blocker button as above
  • Multilingual dmg changes (ensure nothing looks weird in fr, es, de, it)