By default, generate_message/3
sends the message term through the
English message generator, messages('english/QU_messages')
. The definite
clause grammar (DCG) rules in this file transform Prolog message terms
into English messages. In addition, the message generator is designed
to allow internationalization of the messages printed by the Quintus Prolog
development system. You can translate the output of the rules in the
message generator into any natural language. To do this, you would
translate part of the right hand side of each rule into the target
language, e.g. French, to produce messages('french/QU_messages')
, which
generates French messages from the same message terms. This section
explains how to go about providing a translation.
The default QU_messages.pl
is installed as:
quintus-directory/generic/qplib3.5/embed/english/QU_messages.pl
To have all messages printed in another language, the basic steps are as follows
QU_messages.pl
and translate all the messages.
QU_messages.pl
and then install it in the Quintus
Prolog directory hierarchy.