Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

Differences Between: [Versions 310 and 402] [Versions 311 and 402] [Versions 39 and 402]

   1  <?php
   2  /**
   3   * English language strings.
   4   *
   5   * This file is part of ADOdb, a Database Abstraction Layer library for PHP.
   6   *
   7   * @package ADOdb
   8   * @link https://adodb.org Project's web site and documentation
   9   * @link https://github.com/ADOdb/ADOdb Source code and issue tracker
  10   *
  11   * The ADOdb Library is dual-licensed, released under both the BSD 3-Clause
  12   * and the GNU Lesser General Public Licence (LGPL) v2.1 or, at your option,
  13   * any later version. This means you can use it in proprietary products.
  14   * See the LICENSE.md file distributed with this source code for details.
  15   * @license BSD-3-Clause
  16   * @license LGPL-2.1-or-later
  17   *
  18   * @copyright 2000-2013 John Lim
  19   * @copyright 2014 Damien Regad, Mark Newnham and the ADOdb community
  20   */
  21  
  22  $ADODB_LANG_ARRAY = array (
  23  	 	 	 'LANG'                      => 'en',
  24              DB_ERROR                    => 'unknown error',
  25              DB_ERROR_ALREADY_EXISTS     => 'already exists',
  26              DB_ERROR_CANNOT_CREATE      => 'can not create',
  27              DB_ERROR_CANNOT_DELETE      => 'can not delete',
  28              DB_ERROR_CANNOT_DROP        => 'can not drop',
  29              DB_ERROR_CONSTRAINT         => 'constraint violation',
  30              DB_ERROR_DIVZERO            => 'division by zero',
  31              DB_ERROR_INVALID            => 'invalid',
  32              DB_ERROR_INVALID_DATE       => 'invalid date or time',
  33              DB_ERROR_INVALID_NUMBER     => 'invalid number',
  34              DB_ERROR_MISMATCH           => 'mismatch',
  35              DB_ERROR_NODBSELECTED       => 'no database selected',
  36              DB_ERROR_NOSUCHFIELD        => 'no such field',
  37              DB_ERROR_NOSUCHTABLE        => 'no such table',
  38              DB_ERROR_NOT_CAPABLE        => 'DB backend not capable',
  39              DB_ERROR_NOT_FOUND          => 'not found',
  40              DB_ERROR_NOT_LOCKED         => 'not locked',
  41              DB_ERROR_SYNTAX             => 'syntax error',
  42              DB_ERROR_UNSUPPORTED        => 'not supported',
  43              DB_ERROR_VALUE_COUNT_ON_ROW => 'value count on row',
  44              DB_ERROR_INVALID_DSN        => 'invalid DSN',
  45              DB_ERROR_CONNECT_FAILED     => 'connect failed',
  46              0	                        => 'no error', // DB_OK
  47              DB_ERROR_NEED_MORE_DATA     => 'insufficient data supplied',
  48              DB_ERROR_EXTENSION_NOT_FOUND=> 'extension not found',
  49              DB_ERROR_NOSUCHDB           => 'no such database',
  50              DB_ERROR_ACCESS_VIOLATION   => 'insufficient permissions',
  51              DB_ERROR_DEADLOCK           => 'deadlock detected',
  52              DB_ERROR_STATEMENT_TIMEOUT  => 'statement timeout',
  53              DB_ERROR_SERIALIZATION_FAILURE => 'could not serialize access'
  54  );