db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew McIntyre <fuzzylo...@nonintuitive.com>
Subject Re: Derby messages localization
Date Wed, 08 Sep 2004 23:39:53 GMT

On Sep 8, 2004, at 5:32 AM, Halley Pacheco de Oliveira wrote:

> What is wrong ? I couldn't find the csLocale_pt_BR.jar
> file. Is that the problem ?

IBM did not contribute the translated message files for Derby. It is my 
understanding that they are looking into doing this, but there are no 
definite plans for when or how that will happen. There will be 
translated messages in the Cloudscape 10.0 commercial release.

That said, feel free to translate the messages and contribute them to 
Derby. For toolsmessages, you should create a new file, 
toolsmessages_pt_BR.properties  in java/tools/org/apache/derby/loc and 
put the translated messages there. You will then need to update the 
build.xml in that directory so that the messages are copied over to 
${out.dir}/org/apache/derby/loc. This should make the translated 
messages available to the tools.

If you would like sysinfo to display that support for your locale is 
present, you will need to generate an info file for your locale. See 
Main.reportLocales() in java/tools/org/apache/derby/impl/tools/sysinfo 
(lines 326-413) to see how locale support information is reported. 
Sysinfo determines presence of support for a particular locale not from 
the presence of message files, but from the presence of a locale info 
properties file, org.apache.derby.info.locale_{locale}.properties. This 
file should contain proper values for the derby.locale.* properties 
that reportLocales() tries to look up:

derby.locale.external.name, with the form 'Locale Name [ISO_code]' e.g.:
derby.locale.external.name= Portuguese/Brazilian [pt_BR]

The following properties correspond to the properties in 

The values of these properties are passed to 
org.apache.derby.iapi.services.info.ProductVersionHolder and sysinfo 
then reports the version via that classes' fullVersionString() method.

As a side note, better locale support (from a build/tools perspective) 
would be a good thing to put on Derby's to-do list.


View raw message