]> git.proxmox.com Git - mirror_edk2.git/blob - IntelFrameworkModulePkg/Universal/BdsDxe/Language.h
3ec8aad68d8d478a4d322fb3265b1e34020081c1
[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 Get next language from language code list (with separator ';').
39
40 If LangCode is NULL, then ASSERT.
41 If Lang is NULL, then ASSERT.
42
43 @param LangCode On input: point to first language in the list. On
44 output: point to next language in the list, or
45 NULL if no more language in the list.
46 @param Lang The first language in the list.
47
48 **/
49 VOID
50 EFIAPI
51 GetNextLanguage (
52 IN OUT CHAR8 **LangCode,
53 OUT CHAR8 *Lang
54 );
55
56 /**
57 Determine the current language that will be used
58 based on language related EFI Variables.
59
60 @param LangCodesSettingRequired If required to set LangCode variable
61
62 **/
63 VOID
64 InitializeLanguage (
65 BOOLEAN LangCodesSettingRequired
66 );
67
68 #endif // _LANGUAGE_H_