|
1 <?xml version="1.0" encoding="utf-8"?> |
|
2 <!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. --> |
|
3 <!-- This component and the accompanying materials are made available under the terms of the License |
|
4 "Eclipse Public License v1.0" which accompanies this distribution, |
|
5 and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". --> |
|
6 <!-- Initial Contributors: |
|
7 Nokia Corporation - initial contribution. |
|
8 Contributors: |
|
9 --> |
|
10 <!DOCTYPE concept |
|
11 PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd"> |
|
12 <concept id="GUID-EEAC5868-3A3B-5119-BEFC-AE82D612C55F" xml:lang="en"><title>Introduction |
|
13 to locale settings</title><shortdesc>Applications use <codeph>TLocale</codeph> as their reference for |
|
14 the conventions in use on a particular device.</shortdesc><prolog><metadata><keywords/></metadata></prolog><conbody> |
|
15 <p>Conventions used for representing locale sensitive information, for example |
|
16 date and time formatting, the currency symbol and units of measurement are |
|
17 encapsulated by the <codeph>TLocale</codeph> class. </p> |
|
18 <p>Using this class, applications can set and retrieve:</p> |
|
19 <ul> |
|
20 <li id="GUID-BC453129-F75F-51A1-9058-3876D117F254"><p>the country code — up |
|
21 to 3 digits corresponding to the international dialling prefix</p> </li> |
|
22 <li id="GUID-B500E967-8310-56C6-8FC1-C85C7AB98974"><p>the currency format — |
|
23 including whether the currency symbol occurs before or after, whether negative |
|
24 values are represented with brackets or a minus sign and whether <keyword>triads</keyword> are |
|
25 allowed. Note that the currency symbol cannot be set from within <codeph>TLocale</codeph>. |
|
26 Use <xref href="GUID-C197C9A7-EA05-3F24-9854-542E984C612D.dita#GUID-C197C9A7-EA05-3F24-9854-542E984C612D/GUID-1CBBEEF4-0E5A-33AB-833F-6AF14BA57793"><apiname>User::SetCurrencySymbol()</apiname></xref> to set the currency symbol |
|
27 and the <codeph>TCurrencySymbol</codeph> class to retrieve it.</p> </li> |
|
28 <li id="GUID-A83074EC-F4A3-5F09-97C7-E4E9FE2E3FC8"><p>numeric values — the |
|
29 thousands separator, and decimal separator characters</p> </li> |
|
30 <li id="GUID-2B93354D-9FA7-5A0F-AA53-10B492E3E6CF"><p>date and time format — |
|
31 for example, instance separator characters, ordering of date components, positioning |
|
32 of am/pm text</p> </li> |
|
33 <li id="GUID-6A6CA471-D17D-5077-9B99-72AB77E22D13"><p>calendar settings — |
|
34 the first day of the week, which days are work days</p> </li> |
|
35 <li id="GUID-C76F0CA3-5ADF-5881-8248-C3DACB97A85F"><p>time zone information |
|
36 — a locale’s time offset from <keyword>universal time</keyword>, the zones |
|
37 in which daylight saving is in effect</p> </li> |
|
38 <li id="GUID-6B4D7512-53C6-5FBE-B0FA-B541F3547376"><p>units of measurement — |
|
39 imperial or metric</p> </li> |
|
40 </ul> |
|
41 <p>Functions are provided for getting these values, which all applications |
|
42 should honour. Functions are also provided for setting them, which should |
|
43 normally only be used by a customisation application.</p> |
|
44 </conbody></concept> |