sl@0
|
1 |
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
2 |
// All rights reserved.
|
sl@0
|
3 |
// This component and the accompanying materials are made available
|
sl@0
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
sl@0
|
5 |
// which accompanies this distribution, and is available
|
sl@0
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
7 |
//
|
sl@0
|
8 |
// Initial Contributors:
|
sl@0
|
9 |
// Nokia Corporation - initial contribution.
|
sl@0
|
10 |
//
|
sl@0
|
11 |
// Contributors:
|
sl@0
|
12 |
//
|
sl@0
|
13 |
// Description:
|
sl@0
|
14 |
//
|
sl@0
|
15 |
|
sl@0
|
16 |
#ifndef __T_CHECKLOCALE_H__
|
sl@0
|
17 |
#define __T_CHECKLOCALE_H__
|
sl@0
|
18 |
|
sl@0
|
19 |
#include <e32std.h>
|
sl@0
|
20 |
#include <collate.h>
|
sl@0
|
21 |
#include <e32test.h>
|
sl@0
|
22 |
|
sl@0
|
23 |
|
sl@0
|
24 |
_LIT(KOldUKLocaleName, "elocl.01") ;
|
sl@0
|
25 |
_LIT(KOldCNLocaleName, "elocl.31") ;
|
sl@0
|
26 |
_LIT(KOldUSLocaleName, "elocl.10") ;
|
sl@0
|
27 |
_LIT(KOldGELocaleName, "elocl.03") ;
|
sl@0
|
28 |
|
sl@0
|
29 |
_LIT(KEnglishLanguage, "elocl_lan.001") ;
|
sl@0
|
30 |
_LIT(KUKRegion, "elocl_reg.826") ;
|
sl@0
|
31 |
_LIT(KStandardCollation, "elocl_col.001") ;
|
sl@0
|
32 |
const TLanguage KEnglishLanguageID = ELangEnglish;
|
sl@0
|
33 |
const TPtrC KUKCurrencySymbol(_S("\x00a3"));
|
sl@0
|
34 |
const TUint KStandardCollationID = KUidBasicCollationMethod;
|
sl@0
|
35 |
|
sl@0
|
36 |
|
sl@0
|
37 |
_LIT(KUSLanguage, "elocl_lan.010") ;
|
sl@0
|
38 |
_LIT(KUSRegion, "elocl_reg.840") ;
|
sl@0
|
39 |
_LIT(KUSCollation, "elocl_col.010") ;
|
sl@0
|
40 |
const TLanguage KUSLanguageID = ELangAmerican;
|
sl@0
|
41 |
const TPtrC KUSCurrencySymbol(_S("\x0024"));
|
sl@0
|
42 |
const TUint KUSTCollationMethodID = KUidBasicCollationMethod;
|
sl@0
|
43 |
|
sl@0
|
44 |
|
sl@0
|
45 |
_LIT(KCNLanguage, "elocl_lan.031") ;
|
sl@0
|
46 |
_LIT(KCNRegion, "elocl_reg.156");
|
sl@0
|
47 |
_LIT(KCNCollation, "elocl_col.031");
|
sl@0
|
48 |
const TLanguage KCNLanguageID = ELangPrcChinese;
|
sl@0
|
49 |
const TPtrC KCNCurrencySymbol(_S("\x00a5"));
|
sl@0
|
50 |
const TUint KCNTCollationMethodID = 0x10009067;
|
sl@0
|
51 |
|
sl@0
|
52 |
_LIT(KGermanLanguage, "elocl_lan.003") ;
|
sl@0
|
53 |
_LIT(KGERegion, "elocl_reg.276") ;
|
sl@0
|
54 |
_LIT(KGECollation, "elocl_col.003");
|
sl@0
|
55 |
const TLanguage KGELanguageID = ELangGerman;
|
sl@0
|
56 |
const TPtrC KGECurrencySymbol(_S("\x20ac"));
|
sl@0
|
57 |
const TUint KGETCollationMethodID = KUidBasicCollationMethod;
|
sl@0
|
58 |
|
sl@0
|
59 |
|
sl@0
|
60 |
_LIT(KInvalidNameLanguage, "elocl_lon.031") ;
|
sl@0
|
61 |
_LIT(KInvalidNameRegion, "elocl_reggf.276") ;
|
sl@0
|
62 |
_LIT(KInvalidNameCollation, "errelocl_col.003");
|
sl@0
|
63 |
|
sl@0
|
64 |
|
sl@0
|
65 |
|
sl@0
|
66 |
void TestLocaleDLLName(RTest& test, const TDesC& alanguage, const TDesC& aRegion, const TDesC& aCollation);
|
sl@0
|
67 |
void TestLocaleContent(RTest& test, TLanguage alanguageID, TPtrC aCurrencySymbol, TUint aTCollationMethodID);
|
sl@0
|
68 |
|
sl@0
|
69 |
|
sl@0
|
70 |
#endif
|