aboutsummaryrefslogtreecommitdiffstats
path: root/UefiLessonsPkg/HIIStringsUNI
diff options
context:
space:
mode:
authorKonstantin Aladyshev <aladyshev22@gmail.com>2021-10-26 15:59:10 +0300
committerKonstantin Aladyshev <aladyshev22@gmail.com>2021-10-26 15:59:10 +0300
commit17aca5e9aeeeda7ed6e07c5b92f7d88075769182 (patch)
treef60e311081150391220f94667d4afb8cc25e9590 /UefiLessonsPkg/HIIStringsUNI
parent37d91719f1219366b25c8a315d1cec543d2220b4 (diff)
downloadUEFI-Lessons-17aca5e9aeeeda7ed6e07c5b92f7d88075769182.tar.gz
UEFI-Lessons-17aca5e9aeeeda7ed6e07c5b92f7d88075769182.tar.bz2
UEFI-Lessons-17aca5e9aeeeda7ed6e07c5b92f7d88075769182.zip
Add code for the `Best language` section in Lesson 48
Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
Diffstat (limited to 'UefiLessonsPkg/HIIStringsUNI')
-rw-r--r--UefiLessonsPkg/HIIStringsUNI/HIIStringsUNI.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/UefiLessonsPkg/HIIStringsUNI/HIIStringsUNI.c b/UefiLessonsPkg/HIIStringsUNI/HIIStringsUNI.c
index 160108b..6d6123d 100644
--- a/UefiLessonsPkg/HIIStringsUNI/HIIStringsUNI.c
+++ b/UefiLessonsPkg/HIIStringsUNI/HIIStringsUNI.c
@@ -28,5 +28,11 @@ UefiMain (
Print(L"fr-FR ID=2: %s\n", HiiGetString(Handle, STRING_TOKEN(STR_HELLO), "fr-FR"));
Print(L"fr-FR ID=3: %s\n", HiiGetString(Handle, STRING_TOKEN(STR_BYE), "fr-FR"));
+ Print(L"Best language ID=1: %s\n", HiiGetString(Handle, 1, NULL));
+ Print(L"Best language ID=2: %s\n", HiiGetString(Handle, STRING_TOKEN(STR_HELLO), NULL));
+ Print(L"Best language ID=3: %s\n", HiiGetString(Handle, STRING_TOKEN(STR_BYE), NULL));
+
+ Print(L"fr ID=3: %s\n", HiiGetString(Handle, STRING_TOKEN(STR_BYE), "fr"));
+
return EFI_SUCCESS;
}