The following table lists Server-Library properties that are related to localization:
Property |
Description |
Applies to |
For more information |
---|---|---|---|
SRV_S_USESRVLANG |
Whether or not to generate messages in the server’s language. |
Application-wide context |
Open Server Server-Library Reference Manual |
SRV_T_USESRVLANG |
Whether or not to generate messages in the server’s language. |
Thread |
Open Server Server-Library Reference Manual |
These properties determine whether Open Server generates error messages in the Open Server application’s language or a client’s language: SRV_S_USESRVLANG is a server-wide property, set using srv_props. Its value serves as the default value for SRV_T_USESRVLANG.
SRV_T_USESRVLANG is a thread property, set using srv_thread_props. When a new thread structure is allocated, SRV_T_USESRVLANG picks up a default value from SRV_S_USESRVLANG:
If SRV_T_USESRVLANG is CS_TRUE, Open Server generates error messages for the thread in the language of the server.
If SRV_T_USESRVLANG is CS_FALSE, Open Server generates error messages for the thread in the language of the client.