version 1.27, 2006/08/09 21:12:42
|
version 1.28, 2006/10/31 19:35:00
|
|
|
// | // |
//============================================================================== | //============================================================================== |
// | // |
// Author: Humberto Rivero (hurivero@us.ibm.com) |
|
// |
|
// Modified By: Aruran, IBM (ashanmug@in.ibm.com) for Bug# 3697, 3698, 3699, 3700 |
|
// Aruran, IBM (ashanmug@in.ibm.com) for Bug# 3701, 3702, 3703, 3704 |
|
// Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com) |
|
// |
|
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
#include <Pegasus/Common/LanguageParser.h> | #include <Pegasus/Common/LanguageParser.h> |
|
|
"Common.LanguageParser.INVALID_LANGUAGE_TAG", | "Common.LanguageParser.INVALID_LANGUAGE_TAG", |
"Invalid language tag \"$0\".", languageTagString); | "Invalid language tag \"$0\".", languageTagString); |
PEG_METHOD_EXIT(); | PEG_METHOD_EXIT(); |
throw Exception(MessageLoader::getMessage(parms)); |
// do not localize message, requires a language tag for this |
|
// localization can cause recursion here |
|
throw Exception(parms.toString()); |
} | } |
| |
if (subtags.size() == 1) | if (subtags.size() == 1) |
|
|
"Common.LanguageParser.INVALID_LANGUAGE_TAG", | "Common.LanguageParser.INVALID_LANGUAGE_TAG", |
"Invalid language tag \"$0\".", languageTagString); | "Invalid language tag \"$0\".", languageTagString); |
PEG_METHOD_EXIT(); | PEG_METHOD_EXIT(); |
throw Exception(MessageLoader::getMessage(parms)); |
// do not localize message, requires a language tag for this |
|
// localization can cause recursion here |
|
throw Exception(parms.toString()); |
} | } |
| |
if (isStandardFormat) | if (isStandardFormat) |
|
|
"Common.LanguageParser.MALFORMED_LANGUAGE_TAG", | "Common.LanguageParser.MALFORMED_LANGUAGE_TAG", |
"Malformed language tag \"$0\".", languageTagString); | "Malformed language tag \"$0\".", languageTagString); |
PEG_METHOD_EXIT(); | PEG_METHOD_EXIT(); |
throw Exception(MessageLoader::getMessage(parms)); |
// do not localize message, requires a language tag for this |
|
// localization can cause recursion here |
|
throw Exception(parms.toString()); |
} | } |
} | } |
| |