reactos/base/setup/usetup/lang
Bișoc George 2bf4180c80 [USETUP] Implement resource ID text based strings for MUI (#2193)
CORE-12683

Supersedes PR #612.

* [USETUP] Implement the internal MUI routines for text manipulation based on its ID and implement text resource based IDs

USETUP (the 1st stage text mode setup module) bases upon MUI (Multilingual User Interface) sub-component of USETUP which is responsible for the ability into translating the MUI pages (each page having corresponding properties like X, Y coordinates, text flags and text string buffer) in various languages.
The only problem, as of now, is that whenever you want to modify a certain property of a page, such as removing a text from the said page in the screen, you've got to rely on using CONSOLE_* specific functions and calling with hardcoded parameters, namely the coordinates.

This can become a problem as not every localized (translated) MUI page has the same properties for each language and this could lead to various issues. Therefore, assigning each entry with an ID you can remove a text by only giving its ID (and the entry page number) without having the need to specify the coordinates
as the internal MUI routine, MUIGetEntry(), automatically retrieves the entry with respective data fields.

The following commit implements:

- MUIGetEntry()
- MUIClearText()
- MUIClearStyledText()
- MUISetText()
- MUISetStyledText()
- Now the X and Y coordinate members of MUI_ENTRY are of SHORT integer type, for the sake of the general code as most of the coordination values, even the COORD structure itself, has the coordination points as SHORTs and not BYTEs.

The following MUI functions will be used to manipulate text based resources depending on their ID from the corresponding MUI entry.

* [USETUP] Make CONSOLE_ClearTextXY function public so that we can use across other files.

* [USETUP] Implement the IDs for each text MUI entry in locale files.

This mechanism follows the same principle of resource IDs in Win32 applications. Static text is merely a resource that doesn't get changed programmatically for whole of its lifetime whereas dynamic resources can change during the lifetime of the program depending on the algorithm (for example, hide that piece of text and set another one, etc.).

* [USETUP] Remove the "Press ENTER to continue" message prompt when the partition formatting begins.
2020-01-19 17:58:13 +01:00
..
bg-BG.h [USETUP] Implement resource ID text based strings for MUI (#2193) 2020-01-19 17:58:13 +01:00
bn-BD.h [USETUP] Implement resource ID text based strings for MUI (#2193) 2020-01-19 17:58:13 +01:00
cs-CZ.h [USETUP] Implement resource ID text based strings for MUI (#2193) 2020-01-19 17:58:13 +01:00
da-DK.h [USETUP] Implement resource ID text based strings for MUI (#2193) 2020-01-19 17:58:13 +01:00
de-DE.h [USETUP] Implement resource ID text based strings for MUI (#2193) 2020-01-19 17:58:13 +01:00
el-GR.h [USETUP] Implement resource ID text based strings for MUI (#2193) 2020-01-19 17:58:13 +01:00
en-US.h [USETUP] Implement resource ID text based strings for MUI (#2193) 2020-01-19 17:58:13 +01:00
es-ES.h [USETUP] Implement resource ID text based strings for MUI (#2193) 2020-01-19 17:58:13 +01:00
et-EE.h [USETUP] Implement resource ID text based strings for MUI (#2193) 2020-01-19 17:58:13 +01:00
fr-FR.h [USETUP] Implement resource ID text based strings for MUI (#2193) 2020-01-19 17:58:13 +01:00
he-IL.h [USETUP] Implement resource ID text based strings for MUI (#2193) 2020-01-19 17:58:13 +01:00
hu-HU.h [USETUP] Implement resource ID text based strings for MUI (#2193) 2020-01-19 17:58:13 +01:00
it-IT.h [USETUP] Implement resource ID text based strings for MUI (#2193) 2020-01-19 17:58:13 +01:00
ja-JP.h [USETUP] Implement resource ID text based strings for MUI (#2193) 2020-01-19 17:58:13 +01:00
lt-LT.h [USETUP] Implement resource ID text based strings for MUI (#2193) 2020-01-19 17:58:13 +01:00
ms-MY.h [USETUP] Implement resource ID text based strings for MUI (#2193) 2020-01-19 17:58:13 +01:00
nl-NL.h [USETUP] Implement resource ID text based strings for MUI (#2193) 2020-01-19 17:58:13 +01:00
pl-PL.h [USETUP] Implement resource ID text based strings for MUI (#2193) 2020-01-19 17:58:13 +01:00
pt-BR.h [USETUP] Implement resource ID text based strings for MUI (#2193) 2020-01-19 17:58:13 +01:00
pt-PT.h [USETUP] Implement resource ID text based strings for MUI (#2193) 2020-01-19 17:58:13 +01:00
ReadMe.txt [USETUP] Improve lang/ReadMe.txt 2019-01-30 14:59:10 +09:00
ro-RO.h [USETUP] Implement resource ID text based strings for MUI (#2193) 2020-01-19 17:58:13 +01:00
ru-RU.h [USETUP] Implement resource ID text based strings for MUI (#2193) 2020-01-19 17:58:13 +01:00
sk-SK.h [USETUP] Implement resource ID text based strings for MUI (#2193) 2020-01-19 17:58:13 +01:00
sq-AL.h [USETUP] Implement resource ID text based strings for MUI (#2193) 2020-01-19 17:58:13 +01:00
sv-SE.h [USETUP] Implement resource ID text based strings for MUI (#2193) 2020-01-19 17:58:13 +01:00
tr-TR.h [USETUP] Implement resource ID text based strings for MUI (#2193) 2020-01-19 17:58:13 +01:00
uk-UA.h [USETUP] Implement resource ID text based strings for MUI (#2193) 2020-01-19 17:58:13 +01:00

Some source files here are converted by code7bit.

code7bit: https://github.com/katahiromz/code7bit

code7bit makes the string literals 8-bit clean.
If source contains any non-8-bit-clean strings,
non-Latin developer cannot build the project on MSVC.

8-bit clean
https://en.wikipedia.org/wiki/8-bit_clean

To edit a file converted by code7bit, you have to revert it at first.
To revert, please execute code7bit -r <file>.

After edit, to convert again, please execute code7bit -c <file>.