From bc416a9f5635e0dcb3558a997ebf0298c3c37486 Mon Sep 17 00:00:00 2001 From: Vladimir Glazounov Date: Wed, 1 Oct 2008 12:28:29 +0000 Subject: CWS-TOOLING: integrate CWS dba31b --- connectivity/source/resource/conn_shared_res.src | 471 ++++++++++++++++++++++- connectivity/source/resource/sharedresources.cxx | 10 +- 2 files changed, 474 insertions(+), 7 deletions(-) (limited to 'connectivity/source/resource') diff --git a/connectivity/source/resource/conn_shared_res.src b/connectivity/source/resource/conn_shared_res.src index 1a9d37a3f060..e1bfef200260 100644 --- a/connectivity/source/resource/conn_shared_res.src +++ b/connectivity/source/resource/conn_shared_res.src @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: conn_shared_res.src,v $ - * $Revision: 1.9 $ + * $Revision: 1.9.30.2 $ * * This file is part of OpenOffice.org. * @@ -28,9 +28,17 @@ * ************************************************************************/ -#include "resource/common_res.hrc" +// #include "resource/common_res.hrc" #include "resource/mozab_res.hrc" +#include "resource/macab_res.hrc" #include "resource/calc_res.hrc" +#include "resource/ado_res.hrc" +#include "resource/dbase_res.hrc" +#include "resource/file_res.hrc" +#include "resource/evoab2_res.hrc" +#include "resource/kab_res.hrc" +#include "resource/adabas_res.hrc" +#include "resource/hsqldb_res.hrc" // ============================================================================ // = the mozab driver's resource strings @@ -114,7 +122,63 @@ String STR_CANT_FIND_CARD_FOR_ROW // ============================================================================ // = common strings // ============================================================================ +String STR_NO_CONNECTION_GIVEN +{ + Text [ en-US ] = "It doesn't exist a connection to the database."; +}; +String STR_WRONG_PARAM_INDEX +{ + Text [ en-US ] = "You tried to set a parameter at position '$pos$' but there is/are only '$count$' parameter(s) allowed. One reason may be that the property \"ParameterNameSubstitution\" is not set to TRUE in the data source."; +}; +String STR_INPUTSTREAM_WRONG_LEN +{ + Text [ en-US ] = "End of InputStream reached before satisfying length specified when InputStream was set."; +}; +String STR_NO_INPUTSTREAM +{ + Text [ en-US ] = "The input stream was not set."; +}; +String STR_NO_ELEMENT_NAME +{ + Text [ en-US ] = "There is no element named '$name$'."; +}; +String STR_INVALID_BOOKMARK +{ + Text [ en-US ] = "Invalid bookmark value"; +}; +String STR_PRIVILEGE_NOT_GRANTED +{ + Text [ en-US ] = "Privilege not granted: Only table privileges can be granted."; +}; +String STR_PRIVILEGE_NOT_REVOKED +{ + Text [ en-US ] = "Privilege not revoked: Only table privileges can be revoked."; +}; +String STR_UNKNOWN_COLUMN_NAME +{ + Text [ en-US ] = "The column name '$columnname$' is unknown."; +}; +String STR_ERRORMSG_SEQUENCE +{ + Text [ en-US ] = "Function sequence error."; +}; +String STR_INVALID_INDEX +{ + Text [ en-US ] = "Invalid descriptor index."; +}; +String STR_UNSUPPORTED_FUNCTION +{ + Text [ en-US ] = "The driver does not support the function '$functionname$'."; +}; +String STR_UNSUPPORTED_FEATURE +{ + Text [ en-US ] = "The driver does not support the functionality for '$featurename$'. It is not implemented."; +}; +String STR_FORMULA_WRONG +{ + Text [ en-US ] = "The formula for TypeInfoSettings is wrong!"; +}; String STR_STRING_LENGTH_EXCEEDED { Text [ en-US ] = "The string '$string$' exceeds the maximum length of $maxlen$ characters when converted to the target character set '$charset$'."; @@ -130,6 +194,48 @@ String STR_URI_SYNTAX_ERROR Text [ en-US ] = "The connection URL is invalid."; }; +String STR_QUERY_TOO_COMPLEX +{ + Text [ en-US ] = "The query can not be executed. It is too complex."; +}; +String STR_OPERATOR_TOO_COMPLEX +{ + Text [ en-US ] = "The query can not be executed. The operator is too complex."; +}; +String STR_QUERY_INVALID_LIKE_COLUMN +{ + Text [ en-US ] = "The query can not be executed. The 'LIKE' can only be used with a column name."; +}; +String STR_QUERY_INVALID_LIKE_STRING +{ + Text [ en-US ] = "The query can not be executed. The 'LIKE' can only be used with a string argument."; +}; +String STR_QUERY_NOT_LIKE_TOO_COMPLEX +{ + Text [ en-US ] = "The query can not be executed. The 'NOT LIKE' is too complex."; +}; +String STR_QUERY_LIKE_WILDCARD +{ + Text [ en-US ] = "The query can not be executed. The 'LIKE' statement contains wildcard in the middle."; +}; +String STR_QUERY_LIKE_WILDCARD_MANY +{ + Text [ en-US ] = "The query can not be executed. The 'LIKE' statement contains too many wildcards."; +}; +String STR_INVALID_COLUMNNAME +{ + Text [ en-US ] = "The column name '$columnname$' is not valid."; +}; +String STR_INVALID_COLUMN_SELECTION +{ + Text [ en-US ] = "The statement contains an invalid selection of columns."; +}; +String STR_COLUMN_NOT_UPDATEABLE +{ + Text [ en-US ] = "The column at position '$position$' could not be updated."; +}; + +// String STR_NO_HOSTNAME { Text [ en-US ] = "No hostname was provided."; @@ -149,6 +255,11 @@ String STR_COULD_NOT_CONNECT_LDAP // = the mozab driver's resource strings // ============================================================================ +String STR_COULD_NOT_LOAD_LIB +{ + Text [ en-US ] = "The library '$libname$' could not be loaded."; +}; + String STR_COULD_NOT_LOAD_FILE { Text [ en-US ] = "The file $filename$ could not be loaded."; @@ -158,3 +269,359 @@ String STR_LOAD_FILE_ERROR_MESSAGE { Text [ en-US ] = "The attempt to load the file resulted in the following error message ($exception_type$):\n\n$error_message$"; }; + +String STR_ERROR_REFRESH_ROW +{ + Text [ en-US ] = "An error occured while refreshing the current row."; +}; + +String STR_ERROR_GET_ROW +{ + Text [ en-US ] = "An error occured while getting the current row."; +}; +String STR_CAN_NOT_CANCEL_ROW_UPDATE +{ + Text [ en-US ] = "The row update can not be canceled."; +}; + +String STR_CAN_NOT_CREATE_ROW +{ + Text [ en-US ] = "A new row can not be created."; +}; + +String STR_QUERY_INVALID_IS_NULL_COLUMN +{ + Text [ en-US ] = "The query can not be executed. The 'IS NULL' can only be used with a column name."; +}; + +String STR_ILLEGAL_MOVEMENT +{ + Text [ en-US ] = "Illegal cursor movement occured."; +}; + +String STR_COMMIT_ROW +{ + Text [ en-US ] = "Please commit row '$position$' before update rows or insert new rows."; +}; + +String STR_INVALID_ROW_UPDATE +{ + Text [ en-US ] = "The update call can not be executed. The row is invalid."; +}; + +String STR_ROW_CAN_NOT_SAVE +{ + Text [ en-US ] = "The current row can not be saved."; +}; + +String STR_QUERY_AT_LEAST_ONE_TABLES +{ + Text [ en-US ] = "The query can not be executed. It needs at least one table."; +}; + +String STR_NO_COUNT_SUPPORT +{ + Text [ en-US ] = "The driver does not support the 'COUNT' function."; +}; +String STR_STMT_TYPE_NOT_SUPPORTED +{ + Text [ en-US ] = "This statement type not supported by this database driver."; +}; +// ============================================================================ +// = the ado driver's resource strings +// ============================================================================ +String STR_TYPE_NOT_CONVERT +{ + Text [ en-US ] = "The type could not be converted."; +}; +String STR_INVALID_COLUMN_DESCRIPTOR_ERROR +{ + Text [ en-US ] = "Could not append column: invalid column descriptor."; +}; + +String STR_INVALID_GROUP_DESCRIPTOR_ERROR +{ + Text [ en-US ] = "Could not create group: invalid object descriptor."; +}; +String STR_INVALID_INDEX_DESCRIPTOR_ERROR +{ + Text [ en-US ] = "Could not create index: invalid object descriptor."; +}; +String STR_INVALID_KEY_DESCRIPTOR_ERROR +{ + Text [ en-US ] = "Could not create key: invalid object descriptor."; +}; + +String STR_INVALID_TABLE_DESCRIPTOR_ERROR +{ + Text [ en-US ] = "Could not create table: invalid object descriptor."; +}; + +String STR_INVALID_USER_DESCRIPTOR_ERROR +{ + Text [ en-US ] = "Could not create user: invalid object descriptor."; +}; + +String STR_INVALID_VIEW_DESCRIPTOR_ERROR +{ + Text [ en-US ] = "Could not create view: invalid object descriptor."; +}; + +String STR_VIEW_NO_COMMAND_ERROR +{ + Text [ en-US ] = "Could not create view: no command object."; +}; + +// dbase +String STR_COULD_NOT_DELETE_INDEX +{ + Text [ en-US ] = "The index could not be deleted. An unknown error while accessing the file system occured."; +}; +String STR_ONL_ONE_COLUMN_PER_INDEX +{ + Text [ en-US ] = "The index could not be created. Only one column per index is allowed."; +}; +String STR_COULD_NOT_CREATE_INDEX_NOT_UNIQUE +{ + Text [ en-US ] = "The index could not be created. The values are not unique."; +}; + +String STR_COULD_NOT_CREATE_INDEX +{ + Text [ en-US ] = "The index could not be created. An unknown error appeared."; +}; +String STR_COULD_NOT_CREATE_INDEX_NAME +{ + Text [ en-US ] = "The index could not be created. The file '$filename$' is used by an other index."; +}; + +String STR_SQL_NAME_ERROR +{ + Text [ en-US ] = "The name '$name$' doesn't match SQL naming constraints."; +}; +String STR_COULD_NOT_DELETE_FILE +{ + Text [ en-US ] = "The file $filename$ could not be deleted."; +}; + +String STR_INVALID_COLUMN_TYPE +{ + Text [ en-US ] = "Invalid column type for column '$columnname$'."; +}; +String STR_INVALID_COLUMN_PRECISION +{ + Text [ en-US ] = "Invalid precision for column '$columnname$'."; +}; + +String STR_INVALID_PRECISION_SCALE +{ + Text [ en-US ] = "Precision is less than scale for column '$columnname$'."; +}; + +String STR_INVALID_COLUMN_NAME_LENGTH +{ + Text [ en-US ] = "Invalid column name length for column '$columnname$'."; +}; + +String STR_DUPLICATE_VALUE_IN_COLUMN +{ + Text [ en-US ] = "Duplicate value found in column '$columnname$'."; +}; + +String STR_INVALID_COLUMN_DECIMAL_VALUE +{ + Text [ en-US ] = "The '$columnname$' column has been defined as a \"Decimal\" type, the max. length is $precision$ characters (with $scale$ decimal places).\n\nThe specified value is longer than the number of digits allowed."; +}; + +String STR_COLUMN_NOT_ALTERABLE +{ + Text [ en-US ] = "The column '$columnname$' could not be altered. May be the file system is write protected."; +}; +String STR_INVALID_COLUMN_VALUE +{ + Text [ en-US ] = "The column '$columnname$' could not be updated. The value is invalid for that column."; +}; +String STR_COLUMN_NOT_ADDABLE +{ + Text [ en-US ] = "The column '$columnname$' could not be added. May be the file system is write protected."; +}; +String STR_COLUMN_NOT_DROP +{ + Text [ en-US ] = "The column at position '$position$' could not be dropped. May be the file system is write protected."; +}; +String STR_TABLE_NOT_DROP +{ + Text [ en-US ] = "The table '$tablename$' could not be dropped. May be the file system is write protected."; +}; +String STR_COULD_NOT_ALTER_TABLE +{ + Text [ en-US ] = "The table could not be altered."; +}; + +String STR_INVALID_DBASE_FILE +{ + Text [ en-US ] = "The file '$filename$' is an invalid (or unrecognized) dBase file."; +}; + +// Evoab2 + +String STR_USE_WHERE_CRIT +{ + Text [ en-US ] = "Use the SQL query with \"where clause\" or \"criteria\", to get the results."; +}; + +// File +String STR_QUERY_COMPLEX_COUNT +{ + Text [ en-US ] = "The query can not be executed. It is too complex. Only \"COUNT(*)\" is supported."; +}; +String STR_QUERY_INVALID_BETWEEN +{ + Text [ en-US ] = "The query can not be executed. The 'BETWEEN' arguments are not correct."; +}; +String STR_QUERY_FUNCTION_NOT_SUPPORTED +{ + Text [ en-US ] = "The query can not be executed. The function is not supported."; +}; +String STR_TABLE_READONLY +{ + Text [ en-US ] = "The table can not be changed. It is read only."; +}; +String STR_DELETE_ROW +{ + Text [ en-US ] = "The row could not be deleted. The option \"Display inactive records\" is set."; +}; +String STR_ROW_ALREADY_DELETED +{ + Text [ en-US ] = "The row could not be deleted. It is already deleted."; +}; +String STR_QUERY_MORE_TABLES +{ + Text [ en-US ] = "The query can not be executed. It is contains more then one table."; +}; +String STR_QUERY_NO_TABLE +{ + Text [ en-US ] = "The query can not be executed. It contains no valid table."; +}; +String STR_QUERY_NO_COLUMN +{ + Text [ en-US ] = "The query can not be executed. It contains no valid columns."; +}; +String STR_INVALID_PARA_COUNT +{ + Text [ en-US ] = "The count of the given parameter values doesn't match the parameters."; +}; +String STR_NO_VALID_FILE_URL +{ + Text [ en-US ] = "The URL '$URL$' is not valid. A connection can not be created."; +}; + + +String STR_NO_CLASSNAME +{ + Text [ en-US ] = "The driver class '$classname$' could not be loaded."; +}; +String STR_NO_JAVA +{ + Text [ en-US ] = "No Java installation could be found. Please check your installation."; +}; +String STR_NO_RESULTSET +{ + Text [ en-US ] = "The execution of the query doesn't return a valid result set."; +}; +String STR_NO_ROWCOUNT +{ + Text [ en-US ] = "The execution of the update statement doesn't effect any rows."; +}; + +String STR_NO_CLASSNAME_PATH +{ + Text [ en-US ] = "The additional driver class path is '$classpath$'."; +}; +String STR_UNKNOWN_PARA_TYPE +{ + Text [ en-US ] = "The type of parameter at position '$position$' is unknown."; +}; +String STR_UNKNOWN_COLUMN_TYPE +{ + Text [ en-US ] = "The type of column at position '$position$' is unknown."; +}; + +// KAB + +String STR_NO_KDE_INST +{ + Text [ en-US ] = "No suitable KDE installation was found."; +}; + +String STR_KDE_VERSION_TOO_OLD +{ + Text [ en-US ] = "KDE version $major$.$minor$ or higher is required to access the KDE Address Book."; +}; +String STR_KDE_VERSION_TOO_NEW +{ + Text [ en-US ] = "The found KDE version is too new. Only KDE up to version $major$.$minor$ is known to work with this product.\n"; +}; +String STR_KDE_VERSION_TOO_NEW_WORK_AROUND +{ + Text [ en-US ] = "If you are sure that your KDE version works, you might execute the following Basic macro to disable this version check:\n\n"; +}; +String STR_PARA_ONLY_PREPARED +{ + Text [ en-US ] = "Parameters can appear only in prepared statements."; +}; + +// MACAB +String STR_NO_TABLE +{ + Text [ en-US ] = "No such table!"; +}; + +String STR_NO_MAC_OS_FOUND +{ + Text [ en-US ] = "No suitable Mac OS installation was found."; +}; + +// ADABAS D +String STR_NO_DISK_SPACE +{ + Text [ en-US ] = "The database file '$filename$' could not be created. Please check your disk space."; +}; + +String STR_COMMAND_NOT_FOUND +{ + Text [ en-US ] = "The database '$databasename$' could not be started because the command '$progname$' could not be executed."; +}; +String STR_DATABASE_NEEDS_CONVERTING +{ + Text [ en-US ] = "The current database need to be converted. Please insert control user and password."; +}; +String STR_USER_NO_DELETE +{ + Text [ en-US ] = "This user couldn't be deleted. Otherwise the database stays in a inconsistent state."; +}; +// hsqldb +String STR_NO_STROAGE +{ + Text [ en-US ] = "The connection can not be established. No storage or URL was given."; +}; +String STR_INVALID_FILE_URL +{ + Text [ en-US ] = "The given URL contains no valid local file system path. Please check the location of your database file."; +}; +String STR_NO_TABLE_CONTAINER +{ + Text [ en-US ] = "An error occured while obtaining the connection's table container."; +}; +String STR_NO_TABLE_EDITOR_DIALOG +{ + Text [ en-US ] = "An error occured while creating the table editor dialog."; +}; +String STR_NO_TABLENAME +{ + Text [ en-US ] = "There is no table named '$tablename$'."; +}; +String STR_NO_DOCUMENTUI +{ + Text [ en-US ] = "The provided DocumentUI is not allowed to be NULL."; +}; diff --git a/connectivity/source/resource/sharedresources.cxx b/connectivity/source/resource/sharedresources.cxx index 34519dc1b978..b46f90e56da7 100644 --- a/connectivity/source/resource/sharedresources.cxx +++ b/connectivity/source/resource/sharedresources.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: sharedresources.cxx,v $ - * $Revision: 1.4 $ + * $Revision: 1.4.56.1 $ * * This file is part of OpenOffice.org. * @@ -189,14 +189,14 @@ namespace connectivity } //-------------------------------------------------------------------- - ::rtl::OUString SharedResources::getResurceString( ResourceId _nResId ) + ::rtl::OUString SharedResources::getResourceString( ResourceId _nResId ) const { return SharedResources_Impl::getInstance().getResourceString( _nResId ); } //-------------------------------------------------------------------- ::rtl::OUString SharedResources::getResourceStringWithSubstitution( ResourceId _nResId, - const sal_Char* _pAsciiPatternToReplace, const ::rtl::OUString& _rStringToSubstitute ) + const sal_Char* _pAsciiPatternToReplace, const ::rtl::OUString& _rStringToSubstitute ) const { ::rtl::OUString sString( SharedResources_Impl::getInstance().getResourceString( _nResId ) ); OSL_VERIFY( lcl_substitute( sString, _pAsciiPatternToReplace, _rStringToSubstitute ) ); @@ -206,7 +206,7 @@ namespace connectivity //-------------------------------------------------------------------- ::rtl::OUString SharedResources::getResourceStringWithSubstitution( ResourceId _nResId, const sal_Char* _pAsciiPatternToReplace1, const ::rtl::OUString& _rStringToSubstitute1, - const sal_Char* _pAsciiPatternToReplace2, const ::rtl::OUString& _rStringToSubstitute2 ) + const sal_Char* _pAsciiPatternToReplace2, const ::rtl::OUString& _rStringToSubstitute2 ) const { ::rtl::OUString sString( SharedResources_Impl::getInstance().getResourceString( _nResId ) ); OSL_VERIFY( lcl_substitute( sString, _pAsciiPatternToReplace1, _rStringToSubstitute1 ) ); @@ -218,7 +218,7 @@ namespace connectivity ::rtl::OUString SharedResources::getResourceStringWithSubstitution( ResourceId _nResId, const sal_Char* _pAsciiPatternToReplace1, const ::rtl::OUString& _rStringToSubstitute1, const sal_Char* _pAsciiPatternToReplace2, const ::rtl::OUString& _rStringToSubstitute2, - const sal_Char* _pAsciiPatternToReplace3, const ::rtl::OUString& _rStringToSubstitute3 ) + const sal_Char* _pAsciiPatternToReplace3, const ::rtl::OUString& _rStringToSubstitute3 ) const { ::rtl::OUString sString( SharedResources_Impl::getInstance().getResourceString( _nResId ) ); OSL_VERIFY( lcl_substitute( sString, _pAsciiPatternToReplace1, _rStringToSubstitute1 ) ); -- cgit