1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23
24#include "dlgresid.hrc"
25#include "managelang.hrc"
26#include "helpid.hrc"
27
28ModalDialog RID_DLG_MANAGE_LANGUAGE
29{
30    HelpId = HID_BASICIDE_MANAGE_LANGUAGE ;
31    OutputSize = TRUE ;
32    Size = MAP_APPFONT ( MANAGE_DLG_WIDTH , MANAGE_DLG_HEIGHT ) ;
33    Moveable = TRUE ;
34    Closeable = TRUE ;
35    Text [ en-US ] = "Manage User Interface Languages [$1]" ;
36    FixedText FT_LANGUAGE
37    {
38        Pos = MAP_APPFONT ( MANAGE_COL1 , MANAGE_ROW1 ) ;
39        Size = MAP_APPFONT ( MANAGE_LB_WIDTH , RSC_CD_FIXEDTEXT_HEIGHT ) ;
40        Text [ en-US ] = "Present Languages" ;
41    };
42    ListBox LB_LANGUAGE
43	{
44        HelpID = "basctl:ListBox:RID_DLG_MANAGE_LANGUAGE:LB_LANGUAGE";
45        Pos = MAP_APPFONT ( MANAGE_COL1 , MANAGE_ROW2 ) ;
46        Size = MAP_APPFONT ( MANAGE_LB_WIDTH , MANAGE_LB_HEIGHT ) ;
47		Border = TRUE;
48		AutoHScroll = TRUE ;
49	};
50    PushButton PB_ADD_LANG
51    {
52        HelpID = "basctl:PushButton:RID_DLG_MANAGE_LANGUAGE:PB_ADD_LANG";
53        Pos = MAP_APPFONT ( MANAGE_COL3 , MANAGE_ROW2 ) ;
54        Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT ) ;
55        TabStop = TRUE ;
56        Text [ en-US ] = "Add..." ;
57    };
58    PushButton PB_DEL_LANG
59    {
60        HelpID = "basctl:PushButton:RID_DLG_MANAGE_LANGUAGE:PB_DEL_LANG";
61        Pos = MAP_APPFONT ( MANAGE_COL3 , MANAGE_ROW3 ) ;
62        Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT ) ;
63        TabStop = TRUE ;
64        Text [ en-US ] = "Delete" ;
65    };
66    PushButton PB_MAKE_DEFAULT
67    {
68        HelpID = "basctl:PushButton:RID_DLG_MANAGE_LANGUAGE:PB_MAKE_DEFAULT";
69        Pos = MAP_APPFONT ( MANAGE_COL3 , MANAGE_ROW4 ) ;
70        Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT ) ;
71        TabStop = TRUE ;
72        Text [ en-US ] = "Default" ;
73    };
74    FixedText FT_INFO
75    {
76        Pos = MAP_APPFONT ( MANAGE_COL1 , MANAGE_ROW5 ) ;
77        Size = MAP_APPFONT ( MANAGE_DLG_WIDTH - 2*RSC_SP_FLGR_INNERBORDER_LEFT, INFO_LINES_COUNT*RSC_CD_FIXEDTEXT_HEIGHT ) ;
78        WordBreak = TRUE ;
79        Text [ en-US ] = "The default language is used if no localization for a user interface locale is present. Furthermore all strings from the default language are copied to resources of newly added languages." ;
80    };
81    FixedLine FL_BUTTONS
82    {
83        Pos = MAP_APPFONT ( 0 , MANAGE_ROW6 ) ;
84        Size = MAP_APPFONT ( MANAGE_DLG_WIDTH, RSC_CD_FIXEDLINE_HEIGHT ) ;
85    };
86    HelpButton PB_HELP
87    {
88        Pos = MAP_APPFONT ( MANAGE_COL2 , MANAGE_ROW7 ) ;
89        Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT ) ;
90        TabStop = TRUE ;
91    };
92    OKButton PB_CLOSE
93    {
94        Pos = MAP_APPFONT ( MANAGE_COL3 , MANAGE_ROW7 ) ;
95        Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT ) ;
96        TabStop = TRUE ;
97        DefButton = TRUE ;
98        Text [ en-US ] = "~Close" ;
99    };
100    String STR_DEF_LANG
101    {
102        Text [ en-US ] = "[Default Language]" ;
103    };
104    String STR_DELETE
105    {
106        Text [ en-US ] = "~Delete" ;
107    };
108    String STR_CREATE_LANG
109    {
110        Text [ en-US ] = "<Press 'Add' to create language resources>" ;
111    };
112};
113
114QueryBox RID_QRYBOX_LANGUAGE
115{
116    Title [ en-US ] = "Delete Language Resources" ;
117	Message [ en-US ] = "You are about to delete the resources for the selected language(s). All user interface strings for this language(s) will be deleted.\n\nDo you want to delete the resources of the selected language(s)?";
118	BUTTONS = WB_OK_CANCEL ;
119	DEFBUTTON = WB_DEF_CANCEL ;
120};
121
122ModalDialog RID_DLG_SETDEF_LANGUAGE
123{
124    HelpId = HID_BASICIDE_SETDEFAULT_LANGUAGE ;
125    OutputSize = TRUE ;
126    Size = MAP_APPFONT ( SETDEF_DLG_WIDTH , SETDEF_DLG_HEIGHT ) ;
127    Moveable = TRUE ;
128    Closeable = TRUE ;
129    Text [ en-US ] = "Set Default User Interface Language" ;
130    FixedText FT_DEF_LANGUAGE
131    {
132        Pos = MAP_APPFONT ( SETDEF_COL1 , SETDEF_ROW1 ) ;
133        Size = MAP_APPFONT ( SETDEF_LB_WIDTH , RSC_CD_FIXEDTEXT_HEIGHT ) ;
134        Text [ en-US ] = "Default language" ;
135    };
136    ListBox LB_DEF_LANGUAGE
137	{
138        HelpID = "basctl:ListBox:RID_DLG_SETDEF_LANGUAGE:LB_DEF_LANGUAGE";
139        Pos = MAP_APPFONT ( SETDEF_COL1 , SETDEF_ROW2 ) ;
140        Size = MAP_APPFONT ( SETDEF_LB_WIDTH , SETDEF_LB_HEIGHT ) ;
141		Border = TRUE;
142		AutoHScroll = TRUE ;
143	};
144    Control LB_ADD_LANGUAGE
145	{
146        HelpId = HID_BASICIDE_ADDNEW_CONTROL ;
147        Pos = MAP_APPFONT ( SETDEF_COL1 , SETDEF_ROW2 ) ;
148        Size = MAP_APPFONT ( SETDEF_LB_WIDTH , SETDEF_LB_HEIGHT ) ;
149	};
150    FixedText FT_DEF_INFO
151    {
152        Pos = MAP_APPFONT ( SETDEF_COL1 , SETDEF_ROW3 ) ;
153        Size = MAP_APPFONT ( SETDEF_LB_WIDTH, INFO_LINES_COUNT*RSC_CD_FIXEDTEXT_HEIGHT ) ;
154        WordBreak = TRUE ;
155        Text [ en-US ] = "Select a language to define the default user interface language. All currently present strings will be assigned to the resources created for the selected language." ;
156    };
157    FixedLine FL_DEF_BUTTONS
158    {
159        Pos = MAP_APPFONT ( 0 , SETDEF_ROW4 ) ;
160        Size = MAP_APPFONT ( SETDEF_DLG_WIDTH, RSC_CD_FIXEDLINE_HEIGHT ) ;
161    };
162    OKButton PB_DEF_OK
163    {
164        Pos = MAP_APPFONT ( SETDEF_COL2 , SETDEF_ROW5 ) ;
165        Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT ) ;
166        TabStop = TRUE ;
167        DefButton = TRUE ;
168    };
169    CancelButton PB_DEF_CANCEL
170    {
171        Pos = MAP_APPFONT ( SETDEF_COL3 , SETDEF_ROW5 ) ;
172        Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT ) ;
173        TabStop = TRUE ;
174    };
175    HelpButton PB_DEF_HELP
176    {
177        Pos = MAP_APPFONT ( SETDEF_COL4 , SETDEF_ROW5 ) ;
178        Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT ) ;
179        TabStop = TRUE ;
180    };
181    String STR_ADDLANG_TITLE
182    {
183        Text [ en-US ] = "Add User Interface Languages" ;
184    };
185    String STR_ADDLANG_LABEL
186    {
187        Text [ en-US ] = "Available Languages" ;
188    };
189    String STR_ADDLANG_INFO
190    {
191        Text [ en-US ] = "Select languages to be added. Resources for these languages will be created in the library. Strings of the current default user interface language will be copied to these new resources by default." ;
192    };
193};
194
195// -----------------------------------------------------------------------
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234