diff options
author | Konstantin Aladyshev <aladyshev22@gmail.com> | 2021-11-09 16:47:23 +0300 |
---|---|---|
committer | Konstantin Aladyshev <aladyshev22@gmail.com> | 2021-11-09 16:47:23 +0300 |
commit | c7023e0ee98a1b91bee5d8126497805ba7ccc7cd (patch) | |
tree | 424bf8a3058dd9779c3bcd7aa5075f03e051e27f | |
parent | 513eba0cf264b393b5e25d53aa82f2d8a1f8d9b8 (diff) | |
download | UEFI-Lessons-c7023e0ee98a1b91bee5d8126497805ba7ccc7cd.tar.gz UEFI-Lessons-c7023e0ee98a1b91bee5d8126497805ba7ccc7cd.tar.bz2 UEFI-Lessons-c7023e0ee98a1b91bee5d8126497805ba7ccc7cd.zip |
Corrections for lesson 54
Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
-rw-r--r-- | Lessons/Lesson_54/README.md | 6 | ||||
-rw-r--r-- | Lessons/Lesson_54/Translations4.png (renamed from Lessons/Lesson_54/translations4.png) | bin | 8754 -> 8754 bytes | |||
-rw-r--r-- | README.md | 2 |
3 files changed, 7 insertions, 1 deletions
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 Binary files differindex 401cdfe..401cdfe 100644 --- a/Lessons/Lesson_54/translations4.png +++ b/Lessons/Lesson_54/Translations4.png @@ -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 _____ |