//----------------------------------------------------------------------------------------
//-- Some Global Vars for this file ------------------------------------------------------
//----------------------------------------------------------------------------------------
-MainFrame *frame = NULL; // The one and only MainFrame
-//----------------------------------------------------------------------------------------
BEGIN_EVENT_TABLE(MainFrame, wxFrame)
EVT_MENU(QUIT, MainFrame::OnQuit) // Program End
EVT_MENU(ABOUT, MainFrame::OnAbout) // Program Discription
else
{ // Read in Foreign language's text for GetAppName() and Help
m_locale.AddCatalog(GetAppName().c_str());
- m_locale.AddCatalog("Help");
+ m_locale.AddCatalog("help");
}
} // Support the following languages (std = english)
else
p_ProgramCfg->Write("/Local/language",s_Language);
p_ProgramCfg->Write("/Local/langid",s_LangId);
s_LangHelp.Printf("help.%s/%s.hhp",s_LangId.c_str(),GetAppName().c_str()); // "help.std/Garantie.hhp";
+ s_LangHelp = s_LangHelp.Lower(); // A must for Linux
//---------------------------------------------------------------------------------------
Temp0 = "NONE"; // I don't remember why I did this
p_ProgramCfg->Write("/NONE",Temp0); // I don't remember why I did this
// Licence: wxWindows license
// RCS-ID: $Id$
//----------------------------------------------------------------------------------------
-// Define a new application type
-//----------------------------------------------------------------------------------------
-class MainApp: public wxApp
-{
- public:
- bool OnInit(void); // Programmstart
- wxLocale m_locale; // locale we'll be using and language support - MUST be here !
-};
-//----------------------------------------------------------------------------------------
// Define a new frame type
//----------------------------------------------------------------------------------------
class MainFrame: public wxFrame
DECLARE_EVENT_TABLE()
};
//----------------------------------------------------------------------------------------
+// Define a new application type
+//----------------------------------------------------------------------------------------
+class MainApp: public wxApp
+{
+ public:
+ MainFrame *frame; // The one and only MainFrame
+ bool OnInit(void); // Programmstart
+ wxLocale m_locale; // locale we'll be using and language support - MUST be here !
+};
+//----------------------------------------------------------------------------------------
// ID for the menu quit command
//----------------------------------------------------------------------------------------
#define QUIT 777