First public contribution.
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef _LOCALE_REPOSITORY
17 #define _LOCALE_REPOSITORY
21 const TUint32 KLocalePersistRepositoryUid = 0x1020E4D3 ;
23 const TUint KLocaleDllBase = 10 ;
24 const TUint KLocaleLanguageDll = KLocaleDllBase ;
25 const TUint KLocaleCollationDll = KLocaleDllBase + 1 ;
26 const TUint KLocaleLocaleDll = KLocaleDllBase + 2 ;
27 const TUint KLocaleTimeDateDll = KLocaleDllBase + 3 ;
30 // ===============================================================
31 // Individually customisable settings
32 const TUint KLocaleTLocaleBase = 100 ;
34 // ===============================================================
35 // Time and Date Settings
36 const TUint KLocaleTimeAndDateSettingsBase = KLocaleTLocaleBase ;
38 const TUint KLocaleUtcOffset = KLocaleTimeAndDateSettingsBase ;
39 const TUint KLocaleDateFormat = KLocaleTimeAndDateSettingsBase + 1 ;
40 const TUint KLocaleTimeFormat = KLocaleTimeAndDateSettingsBase + 2 ;
43 const TUint KLocaleDateSeparatorBase = KLocaleTimeAndDateSettingsBase + 3 ;
44 const TUint KLocaleDateSeparator0 = KLocaleDateSeparatorBase ;
45 const TUint KLocaleDateSeparator1 = KLocaleDateSeparatorBase + 1 ;
46 const TUint KLocaleDateSeparator2 = KLocaleDateSeparatorBase + 2 ;
47 const TUint KLocaleDateSeparator3 = KLocaleDateSeparatorBase + 3 ;
50 const TUint KLocaleTimeSeparatorBase = KLocaleTimeAndDateSettingsBase + 7 ;
51 const TUint KLocaleTimeSeparator0 = KLocaleTimeSeparatorBase ;
52 const TUint KLocaleTimeSeparator1 = KLocaleTimeSeparatorBase + 1 ;
53 const TUint KLocaleTimeSeparator2 = KLocaleTimeSeparatorBase + 2 ;
54 const TUint KLocaleTimeSeparator3 = KLocaleTimeSeparatorBase + 3 ;
56 const TUint KLocaleAmPmSpaceBetween = KLocaleTimeAndDateSettingsBase + 11 ;
57 const TUint KLocaleAmPmSymbolPosition = KLocaleTimeAndDateSettingsBase + 12 ;
58 const TUint KLocaleWorkDays = KLocaleTimeAndDateSettingsBase + 15 ;
59 const TUint KLocaleStartOfWeek = KLocaleTimeAndDateSettingsBase + 16 ;
60 const TUint KLocaleClockFormat = KLocaleTimeAndDateSettingsBase + 17 ;
61 const TUint KLocaleDeviceTimeState = KLocaleTimeAndDateSettingsBase +18 ;
64 // ===================================================================
66 const TUint KLocaleCurrencySettingsBase = KLocaleTLocaleBase +20;
67 const TUint KLocaleCurrencySymbolPosition = KLocaleCurrencySettingsBase ;
68 const TUint KLocaleCurrencySpaceBetween = KLocaleCurrencySettingsBase + 1 ;
69 const TUint KLocaleCurrencyDecimalPlaces = KLocaleCurrencySettingsBase + 2 ;
70 const TUint KLocaleCurrencyNegativeInBrackets = KLocaleCurrencySettingsBase + 3 ;
71 const TUint KLocaleCurrencyTriadsAllowed = KLocaleCurrencySettingsBase + 4 ;
72 const TUint KLocaleCurrencyNegativeFormat = KLocaleCurrencySettingsBase + 5 ;
73 const TUint KLocaleCurrencyNegativeLoseSpace = KLocaleCurrencySettingsBase + 6 ;
74 const TUint KLocaleCurrencySymbolOpposite = KLocaleCurrencySettingsBase + 7 ;
75 const TUint KLocaleCurrencySymbol = KLocaleCurrencySettingsBase + 8 ;
78 // ==================================================================
80 const TUint KLocaleUnitsSettingsBase = KLocaleTLocaleBase +40;
81 const TUint KLocaleUnitsGeneral = KLocaleUnitsSettingsBase ;
82 const TUint KLocaleUnitsDistanceShort = KLocaleUnitsSettingsBase + 1 ;
83 const TUint KLocaleUnitsDistanceLong = KLocaleUnitsSettingsBase + 2 ;
87 // ====================================================================
89 const TUint KLocaleNumericSettingsBase = KLocaleTLocaleBase +50;
90 const TUint KLocaleDigitType = KLocaleNumericSettingsBase ;
91 const TUint KLocaleThousandsSeparator = KLocaleNumericSettingsBase + 1 ;
92 const TUint KLocaleDecimalSeparator = KLocaleNumericSettingsBase + 2 ;
95 // ====================================================================
96 // Language related settings
97 const TUint KLocaleLanguageSettingsBase = KLocaleTLocaleBase +60;
98 // 3 language downgrade path entries
99 const TUint KLocaleCountryCode = KLocaleLanguageSettingsBase ;
100 const TUint KLocaleLanguageDowngradeBase = KLocaleLanguageSettingsBase + 1 ;
101 const TUint KLocaleLanguageDowngrade0 = KLocaleLanguageDowngradeBase ;
102 const TUint KLocaleLanguageDowngrade1 = KLocaleLanguageDowngradeBase + 1 ;
103 const TUint KLocaleLanguageDowngrade2 = KLocaleLanguageDowngradeBase + 2 ;
107 #endif // _LOCALE_REPOSITORY