Derby also provides locale support for the following components:
For example, Derby explicitly supports Spanish-language error messages. If a database's locale is set to one of the Spanish-language locales, Derby returns error messages in the Spanish language.
For more information about localization of the Derby tools, see the Java DB Tools and Utilities Guide.
Localized messages require special libraries.
The locale of the database is set by the territory=ll_CC attribute when the database is created. However, the locale of the error messages and tools is not determined by the locale of the database. The locale of the error messages and tools is determined by the default system locale. This means that it is possible to create a database with a non-default locale. In such a case, error messages are not returned in the language of the locale of the database but are returned in the language of the default locale instead.