00001 /*---------------------------------------------------------------------------* 00002 * ESR_Locale.h * 00003 * * 00004 * Copyright 2007 Nuance Communciations, Inc. * 00005 * * 00006 * Licensed under the Apache License, Version 2.0 (the 'License'); * 00007 * you may not use this file except in compliance with the License. * 00008 * * 00009 * You may obtain a copy of the License at * 00010 * http://www.apache.org/licenses/LICENSE-2.0 * 00011 * * 00012 * Unless required by applicable law or agreed to in writing, software * 00013 * distributed under the License is distributed on an 'AS IS' BASIS, * 00014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * 00015 * See the License for the specific language governing permissions and * 00016 * limitations under the License. * 00017 * * 00018 *---------------------------------------------------------------------------*/ 00019 00020 #ifndef __ESR_LOCALE_H 00021 #define __ESR_LOCALE_H 00022 00023 00024 00025 #include "ESR_SharedPrefix.h" 00026 #include "ptypes.h" 00027 00038 typedef enum 00039 { 00043 ESR_LOCALE_EN_US, 00044 00048 ESR_LOCALE_FR_FR, 00049 00053 ESR_LOCALE_DE_DE, 00054 00058 ESR_LOCALE_EN_GB, 00059 00060 /* others */ 00061 ESR_LOCALE_IT_IT, 00062 ESR_LOCALE_NL_NL, 00063 ESR_LOCALE_PT_PT, 00064 ESR_LOCALE_ES_ES, 00065 ESR_LOCALE_JA_JP 00066 00067 } ESR_Locale; 00068 00075 ESR_SHARED_API LCHAR* ESR_locale2str(const ESR_Locale locale); 00076 00084 ESR_SHARED_API ESR_ReturnCode ESR_str2locale(const LCHAR* str, ESR_Locale* locale); 00085 00090 #endif /* __ESR_LOCALE_H */