mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-06 13:14:59 -06:00
42 lines
792 B
C
Executable File
42 lines
792 B
C
Executable File
// LangUtils.h
|
|
|
|
#ifndef __LANGUTILS_H
|
|
#define __LANGUTILS_H
|
|
|
|
#include "Common/Lang.h"
|
|
#include "Windows/ResourceString.h"
|
|
|
|
extern UString g_LangID;
|
|
|
|
struct CIDLangPair
|
|
{
|
|
int ControlID;
|
|
UInt32 LangID;
|
|
};
|
|
|
|
void ReloadLang();
|
|
void LoadLangOneTime();
|
|
void ReloadLangSmart();
|
|
|
|
struct CLangEx
|
|
{
|
|
CLang Lang;
|
|
UString ShortName;
|
|
};
|
|
|
|
void LoadLangs(CObjectVector<CLangEx> &langs);
|
|
|
|
void LangSetDlgItemsText(HWND dialogWindow, CIDLangPair *idLangPairs, int numItems);
|
|
void LangSetWindowText(HWND window, UInt32 langID);
|
|
|
|
UString LangString(UInt32 langID);
|
|
UString LangString(UINT resourceID, UInt32 langID);
|
|
|
|
#ifdef LANG
|
|
#define LangStringSpec(resourceID, langID) LangString(resourceID, langID)
|
|
#else
|
|
#define LangStringSpec(resourceID, langID) NWindows::MyLoadStringW(resourceID)
|
|
#endif
|
|
|
|
#endif
|