From 17aca5e9aeeeda7ed6e07c5b92f7d88075769182 Mon Sep 17 00:00:00 2001 From: Konstantin Aladyshev Date: Tue, 26 Oct 2021 15:59:10 +0300 Subject: Add code for the `Best language` section in Lesson 48 Signed-off-by: Konstantin Aladyshev --- UefiLessonsPkg/HIIStringsUNI/HIIStringsUNI.c | 6 ++++++ 1 file changed, 6 insertions(+) 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; } -- cgit v1.2.3-18-g5258