Refine the select language logic.
Signed-off-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Jaben Carsey <Jaben.carsey@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14629 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
#include <Library/PcdLib.h>
|
||||
#include <Library/UefiLib.h>
|
||||
#include <Library/DevicePathLib.h>
|
||||
#include <Library/HandleParsingLib.h>
|
||||
|
||||
#include <Pi/PiFirmwareFile.h>
|
||||
#include <Library/DxeServicesLib.h>
|
||||
@@ -252,7 +253,7 @@ GetNameFromHandle (
|
||||
//
|
||||
// Get the current platform language setting
|
||||
//
|
||||
GetEfiGlobalVariable2 (L"PlatformLang", (VOID**)&PlatformLanguage, NULL);
|
||||
PlatformLanguage = GetBestLanguageForDriver(ComponentName2->SupportedLanguages, NULL, FALSE);
|
||||
Status = ComponentName2->GetDriverName (
|
||||
ComponentName2,
|
||||
PlatformLanguage != NULL ? PlatformLanguage : "en-US",
|
||||
|
Reference in New Issue
Block a user