Hi Michael,

> I'm looking for a possiblity to provide the user with custom
> exception messages in a database driver extension, according to the
> locale of his installation/system. The prefered solution from my side
> would be to provide the messages strtings in some sort of plain text
> ressource file(s) and fetch them from there in the driver.

I know that css.resource.OfficeResourceBundle is working fine (we use it
in our drivers, too), but its drawback is that it's based on .res files,
compiled from .src files when building OOo. Since I assume that your
driver is not built in an OOo build env, but with the ODK, this is
probably no option.

I also know that the dialog localization feature is based on text files,
but I'm somewhat lost on the details. AFAIK, the css.resource services
can be used to access such files, but that's an educated guess only. I
suggest you play a little with the StringResourceWithLocation service.
The documentation of those services/interfaces seems to be ... above
average :), so
http://api.openoffice.org/docs/common/ref/com/sun/star/resource/StringResourceWithLocation.html
might indeed help you.

Ciao
Frank

-- 
- Frank Schönheit, Software Engineer         [email protected] -
- Sun Microsystems                      http://www.sun.com/staroffice -
- OpenOffice.org Base                       http://dba.openoffice.org -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to