00001 /*-----------------------------------------------------------------------------------*/ 00002 /* INRIA 2006 */ 00003 /* HUANG Xu */ 00004 /* Allan CORNET */ 00005 /*-----------------------------------------------------------------------------------*/ 00006 #ifndef __LOCALIZATION_H__ 00007 #define __LOCALIZATION_H__ 00008 /*-----------------------------------------------------------------------------------*/ 00009 #include "hashtable_localization.h" 00010 /*-----------------------------------------------------------------------------------*/ 00011 #ifdef _MSC_VER 00012 #ifdef EXPORT_LOCALIZATION_DLL 00013 #define IMPORT_EXPORT_LOCALIZATION_DLL __declspec(dllexport) 00014 #else 00015 #define IMPORT_EXPORT_LOCALIZATION_DLL __declspec(dllimport) 00016 #endif 00017 #else 00018 #define IMPORT_EXPORT_LOCALIZATION_DLL extern 00019 #endif 00020 /*-----------------------------------------------------------------------------------*/ 00021 IMPORT_EXPORT_LOCALIZATION_DLL char *QueryStringError(char *Tag); 00022 IMPORT_EXPORT_LOCALIZATION_DLL char *QueryStringMessage(char *Tag); 00023 IMPORT_EXPORT_LOCALIZATION_DLL char *QueryStringMenu(char *Tag); 00024 /*-----------------------------------------------------------------------------------*/ 00025 struct hashtable *GetHashTableScilabErrors(void); 00026 struct hashtable *GetHashTableScilabMessages(void); 00027 struct hashtable *GetHashTableScilabMenus(void); 00028 /*-----------------------------------------------------------------------------------*/ 00029 BOOL InitializeHashTableScilabErrors(void); 00030 BOOL InitializeHashTableScilabMessages(void); 00031 BOOL InitializeHashTableScilabMenus(void); 00032 /*-----------------------------------------------------------------------------------*/ 00033 int DisposeHashTableScilabErrors(void); 00034 int DisposeHashTableScilabMessages(void); 00035 int DisposeHashTableScilabMenus(void); 00036 /*-----------------------------------------------------------------------------------*/ 00037 BOOL AppendHashTableLocalization(struct hashtable *Table,char *Tag,char* MsgStr); 00038 /*-----------------------------------------------------------------------------------*/ 00039 #endif /* __LOCALIZATION_H__ */ 00040 /*-----------------------------------------------------------------------------------*/
1.5.1