]> git.proxmox.com Git - mirror_edk2.git/blob - IntelFrameworkModulePkg/Universal/BdsDxe/Language.h
91bbe9b90de72f6c1f7fc1c4c3779e267e84a047
[mirror_edk2.git] / IntelFrameworkModulePkg / Universal / BdsDxe / Language.h
1 /** @file
2 Language setting
3
4 Copyright (c) 2004 - 2008, Intel Corporation. <BR>
5 All rights reserved. This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
9
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12
13 **/
14
15 #ifndef _LANGUAGE_H_
16 #define _LANGUAGE_H_
17
18 #include "String.h"
19
20 /**
21 Convert language code from RFC3066 to ISO639-2.
22
23 @param LanguageRfc3066 RFC3066 language code.
24 @param LanguageIso639 ISO639-2 language code.
25
26 @retval EFI_SUCCESS Language code converted.
27 @retval EFI_NOT_FOUND Language code not found.
28
29 **/
30 EFI_STATUS
31 EFIAPI
32 ConvertRfc3066LanguageToIso639Language (
33 IN CHAR8 *LanguageRfc3066,
34 OUT CHAR8 *LanguageIso639
35 );
36
37 /**
38 Determine the current language that will be used
39 based on language related EFI Variables.
40
41 @param LangCodesSettingRequired If required to set LangCode variable
42
43 **/
44 VOID
45 InitializeLanguage (
46 BOOLEAN LangCodesSettingRequired
47 );
48
49 #endif // _LANGUAGE_H_