Sun Java System Messaging Server 6.3 Administration Guide

4.8 To Set a User-Preferred Language

Administrators can set a preferred language for the GUI and server-generated messages by setting the attribute preferredLanguage in the user’s LDAP entry.

When the server sends messages to users outside of the server’s administrative domain it does not know what their preferred language is unless it is responding to an incoming message with a preferred language specified in the incoming message’s header. The header fields (Accept-Language, Preferred-Language or X-Accept-Language) are set according to attributes specified in the user’s mail client.

If there are multiple settings for the preferred language—for example, if a user has a preferred language attribute stored in the Directory Server and also has a preferred language specified in their mail client—the server chooses the preferred language in the following order:

  1. The Accept-Language header field of the original message.

  2. The Preferred-Language header field of the original message.

  3. The X-Accept-Language header field of the original message.

  4. The preferred language attribute of the sender (if found in the LDAP directory).

4.8.1 To Set a Domain Preferred Language

A domain preferred language is a default language specified for a particular domain. For example, you may wish to specify Spanish for a domain called Administrators can set a domain preferred language by setting the attribute preferredLanguage in the domain’s LDAP entry.

ProcedureTo Specify a Site Language

You can specify a default site language for your server as follows. The site language will be used to send language-specific versions of messages if no user preferred language is set.

  1. Command Line: Specify a site language as follows:

    configutil -o gen.sitelanguage -v value

    where value is one of the local supported languages. See Chapter 5 of Sun Java System Directory Server 5 2005Q1 Administration Guide for a list of supported locales and the language value tag.