hi elias,
just to be clear, what you are quoting below is the format for an XML
lang, not a locale. the format of a locale code is:
<lang>_<country>_<variant>
lang is always lower case. country is always upper case. variant can be
either ... which means it is case sensitive.
sorry, i don't know the context of this comment. maybe you really meant
XML lang, not locale, which makes this irrelevant.
Elias Torres wrote:
I found this interesting website on language codes:
http://www.w3.org/International/articles/language-tags/Overview.en.php
Format:
language-script-region-variant-extension-privateuse
Examples:
* en-GB (British English)
* es-005 (South American Spanish)
* zh-Hant-HK (Traditional Chinese as used in Hong Kong)
Important: Although the codes are case insensitive, they are commonly
written lowercased, but this is merely a convention.
So there you have it. We must treat them as case insensitive. Allen gut
of doing it just because he could turned out to be the correct way of
doing it according to the "w3c". Please remind me I need to solve the
"ilike" issue on the getWeblogEntries using the HQL instead of the
Criteria API.
-Elias