The pgExpress Driver distribution contains two versions: a standard one, which implements the English (enUS) language and a Multilanguage version. Functionality is identical, except that the stantdard only contains the English (enUS) language, and the multilanguage version contains all languages from the table below:
Table 3.2. Implemented Languages
Language | Language Code |
---|---|
English | enUS |
Portuguese (Brazilian) | ptBR |
German | deDE |
Spanish | esES |
Icelandic | isIS |
Chinese (Taiwan) | zhTW |
Hungarian | huHU |
Bulgarian | bgBG |
Slovak | skSK |
French | frFR |
Italian | itIT |
For setting the localized messages, choose the desired language and the following methods:
Use the ErrorResourceFile parameter, with the language name. Note that the current language is GLOBAL to all connections, i.e. it's a language per driver, not per connection (this might change in the future: implementing a language per connection). This means that if you set a language in a new connection, it will be the new language for all connections.
If you need more then one language at the same time in the same program, currently the best way to do it is deploying two (or more) multilanguage drivers, and defining a language for each one (i.e. a different ErrorResourceFile parameter and different driver file name for each connection).
If you want to translate the pgExpress Driver to another language not listed in here, please send us a message at support@vitavoom.com.
You might be translating also the libpq library and/or PostgreSQL itself to get translated error messages. Please refer to the PostgreSQL documentation for more details.