00001 /* 00002 Free Download Manager Copyright (c) 2003-2007 FreeDownloadManager.ORG 00003 Open Download Manager Copyright (c) 2008-2010 OpenDownloadManager.ORG 00004 */ 00005 00006 #if !defined(AFX_FSLANGMGR_H__24624383_B5E1_4CAA_8F76_0F435FBAFE45__INCLUDED_) 00007 #define AFX_FSLANGMGR_H__24624383_B5E1_4CAA_8F76_0F435FBAFE45__INCLUDED_ 00008 00009 #if _MSC_VER > 1000 00010 #pragma once 00011 #endif 00012 00013 #include <windows.h> 00014 #include "list.h" 00015 #include <string> 00016 00017 struct fsLngFileInfo 00018 { 00019 std::string strFileName; 00020 std::string strLngName; 00021 }; 00022 00023 class fsLangMgr 00024 { 00025 public: 00026 00027 BOOL Initialize (LPCSTR pszFolder); 00028 00029 int GetLngCount(); 00030 00031 LPCSTR GetLngName (int iIndex); 00032 00033 int FindLngByName (LPCSTR pszName); 00034 00035 BOOL LoadLng (int iIndex); 00036 00037 int GetStringCount(); 00038 00039 int GetCurLng(); 00040 00041 LPCSTR GetString (int iIndex); 00042 00043 00044 fsLangMgr(); 00045 virtual ~fsLangMgr(); 00046 00047 protected: 00048 void PreprocessLanguageString (std::string &str); 00049 00050 void LoadEngFileStrings(); 00051 00052 void AddLngFileInfo (fsLngFileInfo& info); 00053 int m_iCurLng; 00054 std::string m_strFolder; 00055 fs::list <fsLngFileInfo> m_vLngFiles; 00056 fs::list <std::string> m_vStrings; 00057 fs::list <std::string> m_vEngStrings; 00058 }; 00059 00060 #endif
1.5.6