JDBC Type 4 Driver 1.1 Programmer's Reference

message=message_text
For example:
driver_err_error_from_server_msg=An error was returned from the server. Error: {0}
Error detail: {1}
where the message is driver_err_error_from_server_msg. The message_text is: An error was
returned from the server. Error: {0} Error detail: {1}
The pattern {n} inmessage_text, where n equals 1, 2, 3, and so forth, is a placeholder that is filled in at run time by the
Type 4 driver. Any translation must include these placeholders.
Procedure To Create a Localized-Message File
Extract the SQLMXMesseges_en.properties file, which is in the t4sqlmx.jar file. For example from a UNIX
prompt, use the jar Java tool:
jar -x SQLMXMessages_en.properties < t4sqlmx.jar
1.
Copy the file.2.
Edit the file and replace the English text with the text for your locale.3.
Save the file, giving it a file name that meets the naming requirements described under File-Name Format for Localized
Messages.
4.
Put the file in a directory anywhere in the class path for running the JDBC application.5.
The new messages file can be anywhere in the class path for running the user application.
At run time, if driver cannot read the messages property file, the driver uses the message portion of the property as the text of
the message. For a description of the message portion, see the Localized-Message String Format.
Prev Up Next
Chapter 2. Installing and Verifying
the Type 4 Driver
Home
Chapter 4. Type 4 Driver Properties
Part Number 529651
Legal Notices