forked from rizonesoft/Notepad3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_non_mui_ver.txt
39 lines (30 loc) · 1.9 KB
/
build_non_mui_ver.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
====================================================================================================
== How to build a NON MUI Notepad3 version for desired Language (Mono-language) - 15/04/2021 ==
====================================================================================================
Important: Make all modifications with a text editor (not the Resource-Editor), e.g.: Notepad3
I. Edit: .\src\resource.h
.\minipath\src\resource.h
- Comment-Out the following line
#define HAVE_DYN_LOAD_LIBS_MUI_LNGS 1 => //#define HAVE_DYN_LOAD_LIBS_MUI_LNGS 1
- Uncomment one of the following lines according to the desired Language
E.g.: for German:
//#define MUI_BASE_LNG_DE_DE 1 => #define MUI_BASE_LNG_DE_DE 1
(Keep all other Base Languages #define in comments)
II. Check: .\src\Notepad3.rc
.\minipath\src\minipath.rc
- Make sure that the desired Base Language exists in the list of Language resources.
E.g.: for German: At the begin of the ".rc" files (the real include section)
#elif defined(MUI_BASE_LNG_DE_DE)
"#include ""../language/np3_de_de/np3_de_de.rc""\r\n"
E.g.: for German: At the end of the ".rc" files
#elif defined(MUI_BASE_LNG_DE_DE)
#include "../language/np3_de_de/np3_de_de.rc"
III. Check: ".\language\common_res.h"
".\minipath\language\common_res.h"
- Make sure that the desired Base Language exists in the list of Language resources.
E.g.: for German:
#elif defined(MUI_BASE_LNG_DE_DE)
#define MUI_BASE_LNG_ID L"de-DE"
IV. (Re-)Compile the Notepad3 project
The resulting Notepad3.exe and Minipath.exe are Mono-language (if as #define above: German only).
---------------------------------------------------------------------------------------------------