Merge pull request #3597 from hpwamr/mui

+ Upd: Version files and Changes.txt
This commit is contained in:
Pairi Daiza 2021-08-22 19:46:38 +02:00 committed by GitHub
commit f6a5e7baa6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,19 +1,14 @@
====================================================================================================
== How to build a NON MUI Notepad3 version for desired Language (Mono-language) - 20/08/2021 ==
== 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
1. Comment-Out the following line if Language Menu is not wanted
- Comment-Out the following line
#define HAVE_DYN_LOAD_LIBS_MUI_LNGS 1 => //#define HAVE_DYN_LOAD_LIBS_MUI_LNGS 1
2. Uncomment one of the following lines according to
the desired Language (use en-US if undefined)
Hint: better use VS-Solution's
C/C++ _and_ Resources (compiler) Preprocessor Define
- 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)
@ -21,8 +16,7 @@ Important: Make all modifications with a text editor (not the Resource-Editor),
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
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"
@ -30,14 +24,14 @@ Important: Make all modifications with a text editor (not the Resource-Editor),
#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
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).