1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: query.src,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #include "dbu_qry.hrc"
33 #ifndef DBAUI_QUERY_HRC
37 #include <svx/globlmn.hrc>
40 #include <sfx2/cntids.hrc>
42 #ifndef DBACCESS_UI_BROWSER_ID_HXX
43 #include "browserids.hxx"
45 #ifndef _DBA_DBACCESS_HELPID_HRC_
46 #include "dbaccess_helpid.hrc"
48 #ifndef DBAUI_TOOLBOX_HXX
49 #include "toolbox.hrc"
59 Menu RID_MENU_JOINVIEW_CONNECTION
69 MID_DBUI_QUERY_EDIT_JOINCONNECTION
74 Menu RID_MENU_JOINVIEW_TABLE
85 Menu RID_QUERYCOLPOPUPMENU
112 IMG_PRIMARY_KEY; IMG_FOREIGN_KEY;
116 ImageList IMG_JOINS_H
125 IMG_PRIMARY_KEY; IMG_FOREIGN_KEY;
130 String STR_QUERY_UNDO_TABWINSHOW
132 Text [ en-US ] = "Add Table Window" ;
135 String STR_QUERY_UNDO_MOVETABWIN
137 Text [ en-US ] = "Move table window" ;
139 String STR_QUERY_UNDO_INSERTCONNECTION
141 Text [ en-US ] = "Insert Join" ;
144 String STR_QUERY_UNDO_REMOVECONNECTION
146 Text [ en-US ] = "Delete Join" ;
149 String STR_QUERY_UNDO_SIZETABWIN
151 Text [ en-US ] = "Resize table window" ;
153 String STR_QUERY_UNDO_TABFIELDDELETE
155 Text [ en-US ] = "Delete Column" ;
158 String STR_QUERY_UNDO_TABFIELDMOVED
160 Text [ en-US ] = "Move column";
163 String STR_QUERY_UNDO_TABFIELDCREATE
165 Text [ en-US ] = "Add Column" ;
167 String RID_STR_TABLE_DOESNT_EXIST
169 Text [ en-US ] = "Invalid expression, table '$name$' does not exist.";
172 String RID_STR_FIELD_DOESNT_EXIST
174 Text [ en-US ] = "Invalid expression, field name '$name$' does not exist.";
176 String RID_STR_TOMUCHTABLES
178 Text [ en-US ] = "The query covers #num# tables. The selected database type, however, can only process a maximum of #maxnum# table(s) per statement.";
181 String STR_QUERY_UNDO_TABWINDELETE
183 Text [ en-US ] = "Delete Table Window" ;
186 String STR_QUERY_UNDO_MODIFY_CELL
188 Text [ en-US ] = "Edit Column Description";
190 String STR_QUERY_UNDO_SIZE_COLUMN
192 Text [ en-US ] = "Adjust column width";
194 String STR_QUERY_SORTTEXT
196 Text [ en-US ] = "(not sorted);ascending;descending" ;
199 String STR_QUERY_FUNCTIONS
201 Text [ en-US ] = "(no function);Group";
203 String STR_QUERY_NOTABLE
205 Text [ en-US ] = "(no table)";
207 String STR_QRY_ORDERBY_UNRELATED
209 Text [ en-US ] = "The database only supports sorting for visible fields.";
211 Menu RID_QUERYFUNCTION_POPUPMENU
217 Identifier = ID_QUERY_FUNCTION ;
218 HelpID = HID_QUERY_FUNCTION;
219 Text [ en-US ] = "Functions";
227 Identifier = ID_QUERY_TABLENAME ;
228 HelpID = HID_QUERY_TABLENAME ;
229 Text [ en-US ] = "Table Name";
233 Identifier = ID_QUERY_ALIASNAME ;
234 HelpID = HID_QUERY_ALIASNAME ;
235 Text [ en-US ] = "Alias";
243 Identifier = ID_QUERY_DISTINCT ;
244 HelpID = HID_QUERY_DISTINCT ;
245 Text [ en-US ] = "Distinct Values";
249 String STR_QUERY_HANDLETEXT
251 Text [ en-US ] = "Field;Alias;Table;Sort;Visible;Function;Criterion;Or;Or";
254 String STR_QRY_TOO_MANY_COLUMNS
256 Text [ en-US ] = "There are too many columns.";
259 ErrorBox ERR_QRY_CRITERIA_ON_ASTERISK
261 Message [ en-US ] = "A condition cannot be applied to field [*]" ;
263 String STR_QRY_TOO_LONG_STATEMENT
265 Text [ en-US ] = "The SQL statement created is too long.";
267 String STR_QRY_TOOCOMPLEX
269 Text [ en-US ] = "Query is too complex" ;
271 String STR_QRY_NOSELECT
273 Text [ en-US ] = "Nothing has been selected." ;
275 String STR_QRY_TOOMANYCOND
277 Text [ en-US ] = "Too many search criteria" ;
279 String STR_QRY_SYNTAX
281 Text [ en-US ] = "SQL syntax error" ;
283 ErrorBox ERR_QRY_ORDERBY_ON_ASTERISK
285 Message [ en-US ] = "[*] cannot be used as a sort criterion.";
287 String STR_QUERY_TRUE
289 Text [ en-US ] = "TRUE" ;
291 String STR_QUERY_FALSE
293 Text [ en-US ] = "FALSE" ;
295 String STR_QRY_TOO_MANY_TABLES
297 Text [ en-US ] = "There are too many tables.";
300 String STR_QRY_NATIVE
302 Text [ en-US ] = "The statement will not be applied when querying in the SQL dialect of the database." ;
304 ErrorBox ERR_QRY_AMB_FIELD
306 Message [ en-US ] = "Field name not found or not unique" ;
308 String STR_QRY_ILLEGAL_JOIN
310 Text [ en-US ] = "Join could not be processed" ;
313 String STR_SVT_SQL_SYNTAX_ERROR
315 Text [ en-US ] = "Syntax error in SQL statement" ;
318 String STR_QUERYDESIGN_NO_VIEW_SUPPORT
320 Text [ en-US ] = "This database does not support table views.";
323 String STR_NO_ALTER_VIEW_SUPPORT
325 Text [ en-US ] = "This database does not support altering of existing table views.";
328 String STR_QUERYDESIGN_NO_VIEW_ASK
330 Text [ en-US ] = "Do you want to create a query instead?";
333 ErrorBox ERR_QRY_NOSTATEMENT
335 Message [ en-US ] = "No query could be created.";
338 ErrorBox ERR_QRY_NOCRITERIA
340 Message [ en-US ] = "No query could be created because no fields were selected.";
344 The menubar resource has become obsolete - you can now find the menubar definition at: <project>/uiconfig/dbquery/menubar/menubar.xml
347 String STR_DATASOURCE_DELETED
349 Text [ en-US ] = "The corresponding data source has been deleted. Therefore, data relevant to that data source cannot be saved.";
352 String STR_QRY_COLUMN_NOT_FOUND
354 Text [ en-US ] = "The column '$name$' is unknown.";
357 String STR_QRY_JOIN_COLUMN_COMPARE
359 Text [ en-US ] = "Columns can only be compared using '='.";
362 String STR_QRY_LIKE_LEFT_NO_COLUMN
364 Text [ en-US ] = "You must use a column name before 'LIKE'.";
367 String STR_QRY_CHECK_CASESENSITIVE
369 Text [ en-US ] = "The column could not be found. Please note that the database is case-sensitive.";
372 String STR_QUERYDESIGN
374 Text [ en-US ] = " - %PRODUCTNAME Base: Query Design";
377 String STR_VIEWDESIGN
379 Text [ en-US ] = " - %PRODUCTNAME Base: View Design";
382 String STR_QUERY_SAVEMODIFIED
384 Text [ en-US ] = "$object$ has been changed.\nDo you want to save the changes?" ;
385 Text [ x-comment ] = "For $object$, one of the values of the RSC_QUERY_OBJECT_TYPE resource will be inserted.";
388 String STR_ERROR_PARSING_STATEMENT
390 Text [ en-US ] = "$object$ is based on an SQL command which could not be parsed.";
391 Text [ x-comment ] = "For $object$, one of the values of the RSC_QUERY_OBJECT_TYPE resource "
392 "(except \"SQL command\", which doesn't make sense here) will be inserted.";
395 String STR_INFO_OPENING_IN_SQL_VIEW
397 Text [ en-US ] = "$object$ will be opened in SQL view.";
398 Text [ x-comment ] = "For $object$, one of the values of the RSC_QUERY_OBJECT_TYPE resource "
399 "(except \"SQL command\", which doesn't make sense here) will be inserted.";
402 Resource RSC_QUERY_OBJECT_TYPE
406 Text [ en-US ] = "The table view";
410 Text [ en-US ] = "The query";
414 Text [ en-US ] = "The SQL statement";
418 String STR_STATEMENT_WITHOUT_RESULT_SET
420 Text [ en-US ] = "The query does not create a result set, and thus cannot be part of another query.";
423 String STR_NO_DATASOURCE_OR_CONNECTION
425 Text [ en-US ] = "Both the ActiveConnection and the DataSourceName parameter are missing or wrong - cannot initialize the query designer.";