aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonstantin Aladyshev <aladyshev22@gmail.com>2021-11-09 16:47:23 +0300
committerKonstantin Aladyshev <aladyshev22@gmail.com>2021-11-09 16:47:23 +0300
commitc7023e0ee98a1b91bee5d8126497805ba7ccc7cd (patch)
tree424bf8a3058dd9779c3bcd7aa5075f03e051e27f
parent513eba0cf264b393b5e25d53aa82f2d8a1f8d9b8 (diff)
downloadUEFI-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.md6
-rw-r--r--Lessons/Lesson_54/Translations4.png (renamed from Lessons/Lesson_54/translations4.png)bin8754 -> 8754 bytes
-rw-r--r--README.md2
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
index 401cdfe..401cdfe 100644
--- a/Lessons/Lesson_54/translations4.png
+++ b/Lessons/Lesson_54/Translations4.png
Binary files 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
_____