-/*++\r
+/** @file\r
+ Language settings\r
\r
-Copyright (c) 2004 - 2008, Intel Corporation\r
+Copyright (c) 2004 - 2008, Intel Corporation. <BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
-Module Name:\r
-\r
- Language.c\r
-\r
-Abstract:\r
-\r
- Language settings\r
-\r
-Revision History\r
-\r
---*/\r
+**/\r
\r
#include "Language.h"\r
#include "FrontPage.h"\r
};\r
\r
typedef struct {\r
- //\r
- // This 4-bytes total array length is required by PreparePackageList()\r
- //\r
+ ///\r
+ /// This 4-bytes total array length is required by HiiLibPreparePackageList()\r
+ ///\r
UINT32 Length;\r
\r
//\r
}\r
};\r
\r
+/**\r
+ Routine to export glyphs to the HII database. This is in addition to whatever is defined in the Graphics Console driver.\r
+\r
+**/\r
VOID\r
ExportFonts (\r
VOID\r
)\r
-/*++\r
-\r
-Routine Description:\r
- Routine to export glyphs to the HII database. This is in addition to whatever is defined in the Graphics Console driver.\r
-\r
-Arguments:\r
- None\r
-\r
-Returns:\r
-\r
---*/\r
{\r
EFI_STATUS Status;\r
EFI_HANDLE DriverHandle;\r
return ;\r
}\r
\r
- PackageList = PreparePackageList (1, &mFontPackageGuid, &mFontBin);\r
+ PackageList = HiiLibPreparePackageList (1, &mFontPackageGuid, &mFontBin);\r
ASSERT (PackageList != NULL);\r
\r
gHiiDatabase->NewPackageList (gHiiDatabase, PackageList, DriverHandle, &HiiHandle);\r
FreePool (PackageList);\r
}\r
\r
+/**\r
+ Determine the current language that will be used\r
+ based on language related EFI Variables.\r
+\r
+ @param LangCodesSettingRequired - If required to set LangCode variable\r
+\r
+**/\r
VOID\r
InitializeLanguage (\r
BOOLEAN LangCodesSettingRequired\r
)\r
-/*++\r
-\r
-Routine Description:\r
- Determine the current language that will be used\r
- based on language related EFI Variables\r
-\r
-Arguments:\r
- LangCodesSettingRequired - If required to set LangCode variable\r
-\r
-Returns:\r
-\r
---*/\r
{\r
EFI_STATUS Status;\r
UINTN Size;\r
\r
LangCodes = (CHAR8 *)PcdGetPtr (PcdUefiVariableDefaultLangCodes);\r
if (LangCodesSettingRequired) {\r
- if (!FeaturePcdGet (PcdUefiVariableDefaultLangDepricate)) {\r
+ if (!FeaturePcdGet (PcdUefiVariableDefaultLangDeprecate)) {\r
//\r
// UEFI 2.1 depricated this variable so we support turning it off\r
//\r
);\r
}\r
\r
- if (!FeaturePcdGet (PcdUefiVariableDefaultLangDepricate)) {\r
+ if (!FeaturePcdGet (PcdUefiVariableDefaultLangDeprecate)) {\r
//\r
// UEFI 2.1 depricated this variable so we support turning it off\r
//\r