From c7023e0ee98a1b91bee5d8126497805ba7ccc7cd Mon Sep 17 00:00:00 2001 From: Konstantin Aladyshev Date: Tue, 9 Nov 2021 16:47:23 +0300 Subject: Corrections for lesson 54 Signed-off-by: Konstantin Aladyshev --- Lessons/Lesson_54/README.md | 6 ++++++ Lessons/Lesson_54/Translations4.png | Bin 0 -> 8754 bytes Lessons/Lesson_54/translations4.png | Bin 8754 -> 0 bytes README.md | 2 +- 4 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 Lessons/Lesson_54/Translations4.png delete mode 100644 Lessons/Lesson_54/translations4.png diff --git a/Lessons/Lesson_54/README.md b/Lessons/Lesson_54/README.md index 9a46155..0be4a74 100644 --- a/Lessons/Lesson_54/README.md +++ b/Lessons/Lesson_54/README.md @@ -18,8 +18,11 @@ For example we have a `PlatformDxe` which has strings only for the English langu This means that even if we change our language preference to French in the BIOS menu, these strings still would be printed in English. You can verify it. With a help of a `Select Language` option change language to `Francais` + ![Translations1](Translations1.png?raw=true "Translations1") + Then look at the `Device Manager->OVMF Platform Configuration`: + ![Translations2](Translations2.png?raw=true "Translations2") As you remember one string package has translation strings only for one language. If HII element supports multiple languages it would have multiple STRING packages in its package list. As for the `PlatformDxe` it has only one string package in its package list: @@ -313,7 +316,10 @@ FS0:\> After that perform `exit` to go to the BIOS menu. Use `Select Language` option to change language to `Francais`. Then got to the `DeviceManager->OVMF Platform Configuration`. You can already see that translation are in place: + ![Translations4](Translations4.png?raw=true "Translations4") + If you exit the menu and then go to it again you could even see that even the string in the `Device manager` is changed to "Configuration de la OVMF plateforme": + ![Translations3](Translations3.png?raw=true "Translations3") diff --git a/Lessons/Lesson_54/Translations4.png b/Lessons/Lesson_54/Translations4.png new file mode 100644 index 0000000..401cdfe Binary files /dev/null and b/Lessons/Lesson_54/Translations4.png differ diff --git a/Lessons/Lesson_54/translations4.png b/Lessons/Lesson_54/translations4.png deleted file mode 100644 index 401cdfe..0000000 Binary files a/Lessons/Lesson_54/translations4.png and /dev/null differ diff --git a/README.md b/README.md index 1ca24c0..81df75b 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ These series of lessons are intendend to get you started with UEFI programming i - [Lesson 51](Lessons/Lesson_51): Add manual to UEFI application. How `-?` and `help` work in shell. `EFI_SHELL_GET_HELP_TEXT` function from the `EFI_SHELL_PROTOCOL` - [Lesson 52](Lessons/Lesson_52): Add Russian font - Part 1: investigate `EFI_NARROW_GLYPH`/`EFI_WIDE_GLYPH` format, construct glyph array from the *.woff font file - [Lesson 53](Lessons/Lesson_53): Add Russian font - Part 2: construct `EFI_HII_SIMPLE_FONT_PACKAGE` and populate it to the HII database -- [Lesson 54](Lessons/Lesson_54): Use `NewString` and `SetString` functions from the `EFI_HII_STRING_PROTOCOL` to add String Package in a new language dynamically +- [Lesson 54](Lessons/Lesson_54): Use `NewString` and `SetString` functions from the `EFI_HII_STRING_PROTOCOL` to add String Package for another language dynamically _____ -- cgit v1.2.3-18-g5258