concrete5/concrete5 — pull request #582 by ahukkanen (2012-07-08 14:28:32+00:00)
Title: Some localization/i18n fixes

- Made sanitizable multibyte characters configurable
- Made Zend_Translate options configurable
- Made it possible to change back from different locale to en_US
- Fixed block/package install/update when different locale is used, the DB strings are now always kept in English
- Fixed the sprites image for the log out link for other languages than English where the actual text is longer than "Log Out"

***

This fixes a few issues with the localization. The sanitizable multibyte characters issue is one that is quite important in some circumstances, although it does not fix the whole issue of the url-slugs e.g. for Asian languages. But for example in Finnish we want characters like "ä" and "ö" to be replaced with "a" and "o", not with "ae" and "oe" because this is quite important for the people visiting the sites as well as for SEO.

There is also reason for the Zend_Translate to be made configurable and it's basically this bug:
http://www.concrete5.org/developers/bugs/5-5-2-1/loading-translations-does-not-work-if-directory-names-contain-a-/

Now when the Translate-object is configurable, this can be fixed in the config/site.php with one single line although that is a bug in the Zend libraries that does not appear to be still fixed in later official releases of the Zend framework libraries.

For changing the locale when updating/installing package/language there is a clear reason also explained in one reported bug and it's that if you've using some other locale than en_US, the database texts will be replaced with that language which should not happen because the database strings should always be in English for both block and package names+descriptions. Here is the bug thread:
http://www.concrete5.org/developers/bugs/5-5-2-1/fix-that-not-translated-tstrings-please-and-some-nagging/

The CSS/image update is for the sprites image for the log-out link going under the texts if some other language is used than English, there is reported bug for this as well:
http://www.concrete5.org/developers/bugs/5-5-1/translations-might-break-log-out-link/