- skip to content

# Database Abstraction Layer

### User Tools

- Login

### Site Tools

- Recent changes
- Media Manager
- Sitemap

### Sidebar

##### Resources

- Reference Manual
- User Guide
- The Data Dictionary
- ADOdb-xmlschema
- ADOdb Active Record
- Performance Monitoring
- Date/Time Library
- Session Management Library
- Unsupported Addons
- Coding Standards

##### Supported Databases

- Access
- ADO
- CSV
- Firebird
- Frontbase
- IBM DB2
- Informix
- Interbase
- LDAP
- Microsoft SQL Server
- MySQL
- Netezza
- ODBC
- ODBTP
- Oracle
- PDO
- Postgresql
- SAP ADS
- SAP ASE
- SAP Maxdb
- SAP Sqlanywhere
- Sqlite
- Sybase
- Plain Text
- Visual Foxpro

##### Other

- Feature Comparison Matrix
- Connection Matrix
- Include File Guide

v5:reference:adodb_lang

# $ADODB_LANG

Most of the language files have been provided by users of ADOdb. If you can, help by providing new or improved language files

Type | String
Default | en

## Description

Determines the language used in metaerrormsg. The default is 'en', for US English. The following language codes are supported:

Code | Language
--- | ---
ar
de
hu
ru
bg
en
it
sv
ca
eo
nl
th
cn
es
pl
uk
cz
fa
pt-br
da
fr
ro

## Syntax

    $ADODB_LANG = 'uk';

## Language Files

The language files to provide help are stored in the adodb/lang directory. The US english file looks like this:

    $ADODB_LANG_ARRAY = array (
    'LANG'                      => 'en',
              DB_ERROR                    => 'unknown error',
              DB_ERROR_ALREADY_EXISTS     => 'already exists',
              DB_ERROR_CANNOT_CREATE      => 'can not create',
              DB_ERROR_CANNOT_DELETE      => 'can not delete',
              DB_ERROR_CANNOT_DROP        => 'can not drop',
              DB_ERROR_CONSTRAINT         => 'constraint violation',
              DB_ERROR_DIVZERO            => 'division by zero',
              DB_ERROR_INVALID            => 'invalid',
              DB_ERROR_INVALID_DATE       => 'invalid date or time',
              DB_ERROR_INVALID_NUMBER     => 'invalid number',
              DB_ERROR_MISMATCH           => 'mismatch',
              DB_ERROR_NODBSELECTED       => 'no database selected',
              DB_ERROR_NOSUCHFIELD        => 'no such field',
              DB_ERROR_NOSUCHTABLE        => 'no such table',
              DB_ERROR_NOT_CAPABLE        => 'DB backend not capable',
              DB_ERROR_NOT_FOUND          => 'not found',
              DB_ERROR_NOT_LOCKED         => 'not locked',
              DB_ERROR_SYNTAX             => 'syntax error',
              DB_ERROR_UNSUPPORTED        => 'not supported',
              DB_ERROR_VALUE_COUNT_ON_ROW => 'value count on row',
              DB_ERROR_INVALID_DSN        => 'invalid DSN',
              DB_ERROR_CONNECT_FAILED     => 'connect failed',
              0	                       => 'no error', // DB_OK
              DB_ERROR_NEED_MORE_DATA     => 'insufficient data supplied',
              DB_ERROR_EXTENSION_NOT_FOUND=> 'extension not found',
              DB_ERROR_NOSUCHDB           => 'no such database',
              DB_ERROR_ACCESS_VIOLATION   => 'insufficient permissions',
              DB_ERROR_DEADLOCK           => 'deadlock detected',
              DB_ERROR_STATEMENT_TIMEOUT  => 'statement timeout',
              DB_ERROR_SERIALIZATION_FAILURE => 'could not serialize access'
    );

v5/reference/adodb_lang.txt · Last modified: 2016/01/18 20:31 by 66.249.75.217

### Page Tools

- Show pagesource
- Old revisions
- Backlinks
- Rename Page
- Back to top