mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-07 11:14:58 -06:00
4.53 beta
This commit is contained in:
committed by
Kornel Lesiński
parent
33ccab7e72
commit
051769bbc5
41
CPP/7zip/UI/FileManager/LangUtils.h
Executable file
41
CPP/7zip/UI/FileManager/LangUtils.h
Executable file
@@ -0,0 +1,41 @@
|
||||
// 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
|
||||
Reference in New Issue
Block a user