Tovek Server localisation
1. Check the list of Verity locales
In order to correctly use a given language for fulltext processing - stemming, lexical analysis
etc. - you need to setup the Verity fulltext engine accordingly. You can find a current list of
Verity-supported locales on this page. Please contact support@tovek.com
if your language is not on the list.
2. Modify Tovek Server message file
Message file is located by default in the <ts_install_dir>\_nti40\bin folder.
Name of file is shersrv.msg. Both the filename and its location can be modified in
the Tovek Server configuration file (see below).
Message file contains all Tovek Server messages in all supported languages. All language
versions of a message are grouped together and separated by empty line from the next
message. To implement a new language you have to add a message in this language as a
new line into every group. The message structure is following (all is on one line):
Lang_code<space>Message_ID<space>Message_text<newline>
Please note in the following example of a message group that the messages might contain
C-like formating symbols (eg. %s, %d). You must include the same symbols and in the same
order for your new language.
US ERR_PAR Wrong parameter "%s"
CZ ERR_PAR Chybny parametr "%s"
SK ERR_PAR Chybny parametr "%s"
To add a string in German you would add that last line:
US ERR_PAR Wrong parameter "%s"
CZ ERR_PAR Chybny parametr "%s"
SK ERR_PAR Chybny parametr "%s"
DE ERR_PAR Falsche parameter "%s"
Tovek Server message file is loaded during the startup. To see your changes you have to
restart the program.
3. Modify Tovek Server configuration file
Configuration file is located in the <ts_install_dir>\_nti40\bin folder
by default. Name of file is shersrv.cfg. Configuration file has Windows INI
file format. Language specific parameters are located in the [Options] section.
Verity locale is specified in this way:
CfgLanguage = <path_to_locale>
The actual example:
CfgLanguage = ../../common/germanx
The message file and message language are specified this way:
MsgFile = <path_to_message_file>
MsgLang = <language_code>
The actual example:
MsgFile = shersrv.msg
MsgLang = DE
You can also change the codepage for log files and screen output:
LogCodePage = <codepage>
OutCodePage = <codepage>
The actual example:
LogCodePage = iso-8859-1
OutCodePage = ascii7