InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
PMLocaleIds.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Michael Burbidge
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
16 //
17 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
18 // with the terms of the Adobe license agreement accompanying it. If you have received
19 // this file from a source other than Adobe, then your use, modification, or
20 // distribution of it requires the prior written permission of Adobe.
21 //
22 //========================================================================================
23 
24 #ifndef __PMLocaleIds_h__
25 #define __PMLocaleIds_h__
26 
27 #include "FeatureSets.h"
28 // ----- Feature Set
29 
30 /*
31 #define k_FeatureSet_enUS k_enUS
32 #define k_FeatureSet_enGB k_enGB
33 #define k_FeatureSet_deDE k_deDE
34 #define k_FeatureSet_frFR k_frFR
35 #define k_FeatureSet_jaJP k_jaJP
36 #define k_FeatureSet_esES k_esES
37 #define k_FeatureSet_ptBR k_ptBR
38 #define k_FeatureSet_svSE k_svSE
39 #define k_FeatureSet_daDK k_daDK
40 #define k_FeatureSet_nlNL k_nlNL
41 #define k_FeatureSet_itIT k_itIT
42 #define k_FeatureSet_nbNO k_nbNO
43 #define k_FeatureSet_fiFI k_fiFI
44 #define k_FeatureSet_Wild k_Wild
45 */
46 
47 #define k_enUS 0x0001
48 #define k_enGB 0x0002
49 #define k_deDE 0x0003
50 #define k_frFR 0x0004
51 #define k_jaJP 0x0005
52 #define k_esES 0x0006
53 #define k_ptBR 0x0007
54 #define k_svSE 0x0008
55 #define k_daDK 0x0009
56 #define k_nlNL 0x000a
57 #define k_itIT 0x000b
58 #define k_nbNO 0x000c
59 #define k_fiFI 0x000d
60 #define k_elGR 0x000e //Greek
61 #define k_csCZ 0x000f //Czech
62 #define k_plPL 0x0010 //Polish
63 #define k_hrHR 0x0011 //Croatian
64 #define k_huHU 0x0012 //Hungarian
65 #define k_ruRU 0x0013 //Russian
66 #define k_skSK 0x0014 //Slovak
67 #define k_sqAL 0x0015 //Albanian
68 #define k_trTR 0x0016 //Turkish
69 #define k_roRO 0x0017 //Romanian
70 #define k_bgBG 0x0018 //Bulgarian
71 #define k_beBY 0x0019 //Belarussian
72 #define k_etEE 0x001a //Estonian
73 #define k_lvLV 0x001b //Latvian
74 #define k_ltLT 0x001c //Lithuanian
75 #define k_slSI 0x001d //Slovenian
76 #define k_ukUA 0x001e //Ukrainian
77 #define k_heIL 0x001f //Hebrew
78 #define k_arAE 0x0020 //Arabic
79 #define k_zhCN 0x0021 // Chinese Simplified
80 #define k_zhTW 0x0022 // Chinese Traditional
81 #define k_koKR 0x0023 // Korean
82 #define k_taIN 0x0024 // Tamil
83 #define k_thTH 0x0025 // Thai
84 #define k_viVN 0x0026 // Vietnamese
85 #define k_enAE 0x0027 // English UI Arabic prefs
86 #define k_enIL 0x0028 // English UI Hebrew prefs
87 
88 #define k_Wild 0x00FE
89 
90 // NOTE: If you add more locales here, make sure and also add them to the following places:
91 // InstallLanguagesCmd::Do() in LanguageCmd.cpp,
92 // DictEditorMenuComponent::QueryCurrentLanguage() in DictEditorMenuComponent.cpp,
93 // DictPrefsMenuComponent::QueryCurrentLanguage() in DictPrefsMenuComponent.cpp,
94 // and possibly XFLT_TEXT_IMP_SSFLT::SendLangID() in ssflt.cpp.
95 
96 // ----- Character encoding converters are specified in the string table resources and
97 // are usually just the class ID of the service that provides the converter. But here
98 // we want to conditionally provide different converters depending on the platform.
99 
100 #if defined (MACINTOSH) || defined (WASM)
101 #define kEuropeanWinToMacEncodingConverter kEuropeanEncodingWinToMacBoss
102 #define kEuropeanMacToWinEncodingConverter 0
103 #elif defined WINDOWS
104 #define kEuropeanMacToWinEncodingConverter kEuropeanEncodingMacToWinBoss
105 #define kEuropeanWinToMacEncodingConverter 0
106 #endif
107 
108 
109 
110 // ----- Locale offsets
111 // These signify resource IDs that must be unique to a given featureset and locale combination.
112 
113 #define index_enUS 0x0001
114 #define index_enGB 0x0002
115 #define index_deDE 0x0003
116 #define index_frFR 0x0004
117 #define index_jaJP 0x0005 // Japanese featureset, Japanese locale
118 #define index_esES 0x0006
119 #define index_ptBR 0x0007
120 #define index_svSE 0x0008
121 #define index_daDK 0x0009
122 #define index_nlNL 0x000a
123 #define index_itIT 0x000b
124 #define index_nbNO 0x000c
125 #define index_fiFI 0x000d
126 #define index_jaJP_enUS 0x000e // Japanese featureset, English locale
127 #define index_koKR 0x000f // Japanese featureset, Korean locale
128 #define index_zhCN 0x0010 // Japanese featureset, Simplified Chinese locale
129 #define index_zhTW 0x0011 // Japanese featureset, Traditional Chinese locale
130 
131 #define index_elGR 0x0012 // was - 0x000e
132 #define index_csCZ 0x0013 // was - 0x000f
133 #define index_plPL 0x0014 // was - 0x0010
134 #define index_hrHR 0x0015 // was - 0x0011
135 #define index_huHU 0x0016 // was - 0x0012
136 #define index_ruRU 0x0017 // was - 0x0013
137 #define index_skSK 0x0018 // was - 0x0014
138 //#define index_k_el 0x0019 // was - 0x0015
139 #define index_trTR 0x001a // was - 0x0016
140 #define index_roRO 0x001b // was - 0x0017
141 #define index_bgBG 0x001c // was - 0x0018
142 #define index_beBY 0x001d // was - 0x0019
143 #define index_etEE 0x001e // was - 0x001a
144 #define index_lvLV 0x001f // was - 0x001b
145 #define index_ltLT 0x0020 // was - 0x001c
146 #define index_slSI 0x0021 // was - 0x001d
147 #define index_ukUA 0x0022 // was - 0x001e
148 #define index_heIL 0x0023 // was - 0x001f
149 #define index_arAE 0x0024 // was - 0x0020
150 
151 // ----- Product based offsets for feature set interface combinations. Note that using
152 // none of these is the same as specifying AllProducts (which is the normal situation).
153 // [jon 6/20/02]
154 
155 #define index_AllProductsFS 0x0000
156 #define index_InDesignFS 0x0050
157 #define index_InCopyFS 0x0100
158 #define index_InDesignServerFS 0x0150
159 
160 
161 // ----- Character encoding converters are specified in the string table resources
162 
163 //MAC is#define kEuropeanWinToMacEncodingConverter kEuropeanEncodingWinToMacBoss
164 //WIN is#define kEuropeanMacToWinEncodingConverter kEuropeanEncodingMacToWinBoss
165 #define kResourceUTF8Encoded 8
166 
167 #endif // __PMLocaleIds_h__
168