Translating error messages to Swedish?

DavidH

Member²
Are error messages (such as "Not logged on" etc) in DOA put as resourcestrings? Can I do like I do with the normal Delphi messages (I have translated consts.pas and sysconsts.pas)?

Or is there another method to translate the messages?
 
All Oracle messages can be translated by using the appropriate NLS_LANG settings of the Oracle Client. To translate Direct Oracle Access messages, see the "Translating standard messages from English" section in the help file or User's Guide.

------------------
Marco Kalter
Allround Automations
 
My NLS_LANG must be correct as all "ORA-xxxxx" messages are in Swedish.

I just had a look at the topic "Direct Oracle Access Message Translation" which talked about some strings related to TOracleDataSet and TOracleLogon, but there seem to be more strings than that.
The two strings I've discovered so far are "Not logged on" and "Variant conversion error for variable :VARDE", and neither of them are seen in this help topic.
 
That's true, but these exceptions should not happen in a production application, and they are really only intended for a developer. Your application should prevent these situations. That at least is the idea.

------------------
Marco Kalter
Allround Automations
 
Back
Top