summaryrefslogtreecommitdiff
path: root/include/m_langpack.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-07-26 09:20:25 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-07-26 09:20:25 +0000
commit6e53dfca72b932c4bdcd7aa02ca62bf8b2630eac (patch)
tree2e8bb660c908b54914abd562af8aafa4a486c846 /include/m_langpack.h
parenta61c8728b379057fe7f0a0d86fe0b037598229dd (diff)
less TCHARs:
- TCHAR is replaced with wchar_t everywhere; - LPGENT replaced with either LPGENW or LPGEN; - fixes for ANSI plugins that improperly used _t functions; - TCHAR *t removed from MAllStrings; - ptszGroup, ptszTitle & ptszTab in OPTIONSDIALOGPAGE replaced with pwsz* git-svn-id: http://svn.miranda-ng.org/main/trunk@17133 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include/m_langpack.h')
-rw-r--r--include/m_langpack.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/include/m_langpack.h b/include/m_langpack.h
index 25cd934944..c158bc89ea 100644
--- a/include/m_langpack.h
+++ b/include/m_langpack.h
@@ -51,14 +51,13 @@ EXTERN_C MIR_CORE_DLL(void) TranslateDialog_LP(HWND hDlg, int hLang);
#define Translate(s) TranslateA_LP(s, hLangpack)
#define TranslateW(s) TranslateW_LP(s, hLangpack)
+#define TranslateT(s) TranslateW_LP(_A2W(s), hLangpack)
#define TranslateDialogDefault(h) TranslateDialog_LP(h,hLangpack)
#ifdef _UNICODE
- #define TranslateT(s) TranslateW_LP(_T(s),hLangpack)
#define TranslateTS(s) TranslateW_LP(s,hLangpack)
#define TranslateTH(l,s) TranslateW_LP(s,l)
#else
- #define TranslateT(s) TranslateA_LP(s,hLangpack)
#define TranslateTS(s) TranslateA_LP(s,hLangpack)
#define TranslateTH(l,s) TranslateA_LP(s,l)
#endif
@@ -70,11 +69,7 @@ EXTERN_C MIR_CORE_DLL(void) TranslateDialog_LP(HWND hDlg, int hLang);
#define LPGEN(s) s
#define LPGENW(s) L ## s
-#ifdef _UNICODE
- #define LPGENT(s) _T(s)
-#else
- #define LPGENT(s) s
-#endif
+
//Those macros do NOTHING. They are just markers for lpgen.pl.
/////////////////////////////////////////////////////////////////////////////////////////