procedure bindtextdomain(Domain:string; Directory:string);
Each text domain can be located in a separate directory. The default is to search
for all mo files as applicationdir/locale/XX/LC_MESSAGES/domainname.mo, where applicationdir
is the directory where the .exe file or .dll file is, and XX is the language code. You can
specify an alternative location for a domain here. Example:
bindtextdomain ('moduleB','c:\moduleB\locale\'); |
In this example, all translations done using the text domain 'moduleB' will be looked
up in c:\moduleB\locale\XX\LC_MESSAGES\moduleB.mo. This can be very useful
if you link a module into your program file, but the module translations are somewhere else on your harddisk.