woothemes/woocommerce — pull request #604 by GeertDD (2012-02-09 09:10:14+00:00)
Title: Fixed the default selected reports tab

The hardcoded string "sales" didn't exist as key in the `$charts` array if using a translation.

This fix works but using translated strings for array keys feels quite dirty to me. Translated strings can contain anything. The `ucfirst()` on the key on line 73 makes it only worse. A separate array, or a subarray, with translations should be a lot cleaner.