InitializeLocalization.c

Go to the documentation of this file.
00001 /*-----------------------------------------------------------------------------------*/
00002 /* INRIA 2007 */
00003 /* Allan CORNET */
00004 /*-----------------------------------------------------------------------------------*/ 
00005 #include "InitializeLocalization.h"
00006 #include "localization.h"
00007 #include "loadsavelanguage.h"
00008 #include "loadhashtableslocalization.h"
00009 #include "tableslanguages.h"
00010 #include "setgetSCIpath.h"
00011 #include "MALLOC.h"
00012 /*-----------------------------------------------------------------------------------*/ 
00013 BOOL InitializeLocalization(void)
00014 {
00015         BOOL bOK=FALSE;
00016 
00017         if ( InitializeHashTableScilabErrors() && InitializeHashTableScilabMessages() && InitializeHashTableScilabMenus() )
00018         {
00019                 LoadHashTablesLocalization(SCILABDEFAULTLANGUAGE);
00020                 loadlanguagepref();
00021         }
00022         else
00023         {
00024                 #ifdef _MSC_VER
00025                 MessageBox(NULL,"Problem(s) in Localization module.\nScilab doesn't work.","Error", MB_ICONSTOP | MB_OK); 
00026                 #else
00027                 printf("\nError : Problem(s) in Localization module.\nScilab doesn't work.\n");
00028                 #endif
00029                 exit(1);
00030         }
00031 
00032         bOK=TRUE;
00033         return bOK;
00034 }
00035 /*-----------------------------------------------------------------------------------*/ 
00036 

Generated on Sun Mar 4 15:03:58 2007 for Scilab [trunk] by  doxygen 1.5.1