Initializing help system before first use

gettext

Purpose
Get the translation of a text string.
Synopsis
const char *gettext(XPRMcontext ctx, XPRMdomain domain, const char *txt);
Arguments
ctx 
Mosel's execution context or NULL
domain 
Message domain
txt 
Message to translate
Return value
Translated message or txt if no translation could be found.
Further information
1. The function returns its argument txt if the current language is English or no translation is found or the text to translate is NULL or an empty string.
2. The current language selection comes from the model execution context ctx (see control parameter "lang"). The language defined at process initialisation will be used if this parameter is NULL.
3. The returned text string remains valid as long as the domain is open.
Related topics

© 2001-2026 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.