version 1.32, 2008/01/08 20:15:10
|
version 1.33, 2008/03/05 21:35:12
|
|
|
{ | { |
// Except for "i" and "x", primary tags must be 2 or 3 characters, | // Except for "i" and "x", primary tags must be 2 or 3 characters, |
// according to RFC 3066. | // according to RFC 3066. |
MessageLoaderParms parms( |
|
"Common.LanguageParser.INVALID_LANGUAGE_TAG", |
// Do not localize this message; it could cause recursion. |
"Invalid language tag \"$0\".", languageTagString); |
|
PEG_METHOD_EXIT(); | PEG_METHOD_EXIT(); |
// throw Exception(MessageLoader::getMessage(parms)); |
throw Exception(Formatter::format( |
// do not localize message, requires a language tag for this |
"Invalid language tag \"$0\".", |
// localization can cause recursion here |
languageTagString)); |
throw Exception(parms.toString()); |
|
} | } |
| |
if (subtags.size() == 1) | if (subtags.size() == 1) |
|
|
{ | { |
// The second subtag may not be a single character according to | // The second subtag may not be a single character according to |
// RFC 3066. | // RFC 3066. |
MessageLoaderParms parms( |
|
"Common.LanguageParser.INVALID_LANGUAGE_TAG", |
// Do not localize this message; it could cause recursion. |
"Invalid language tag \"$0\".", languageTagString); |
|
PEG_METHOD_EXIT(); | PEG_METHOD_EXIT(); |
// throw Exception(MessageLoader::getMessage(parms)); |
throw Exception(Formatter::format( |
// do not localize message, requires a language tag for this |
"Invalid language tag \"$0\".", |
// localization can cause recursion here |
languageTagString)); |
throw Exception(parms.toString()); |
|
} | } |
| |
if (isStandardFormat) | if (isStandardFormat) |