Enabling SWAT Internationalization Support
SWAT can be configured to display its messages to match the settings of
the language configurations of your Web browser. It will be passed to SWAT
in the Accept-Language header of the HTTP request.
To enable this feature:
The name of the
msg
file is the same as the language ID sent by the browser. For
example,
en
means English,
ja
means Japanese,
fr
means French.
If you do not like some of messages, or there are no
msg
files for
your locale, you can create them simply by copying the
en.msg
files
to the directory for “your language ID.msg” and filling in proper strings
to each “msgstr”. For example, in it.msg , the
msg
file for the Italian locale, just set:
msgid "Set Default"
msgstr "Imposta Default"
and so on. If you find a mistake or create a new
msg
file, please email it
to us so we will consider it in the next release of Samba. The
msg
file should be encoded in UTF-8.
Note that if you enable this feature and the
display charset is not
matched to your browser's setting, the SWAT display may be corrupted. In a future version of
Samba, SWAT will always display messages with UTF-8 encoding. You will then not need to set
this smb.conf file parameter.
|