[Top]
Locale
Locale.Gettext
|
Method Locale.Gettext.gettext()
- Method
gettext
string gettext(string msg)
string gettext(string msg, string domain)
string gettext(string msg, string domain, int category)
- Parameter msg
Message to be translated.
- Parameter domain
Domain from within the message should be translated.
Defaults to the current domain.
- Parameter category
Category from which the translation should be taken.
Defaults to Locale.Gettext.LC_MESSAGES .
Return a translated version of msg within the context
of the specified domain and current locale. If there is no
translation available, msg is returned.
- Note
Prior to Pike 7.3 this function only accepted one argument,
and the other functionality was provided by dgettext()
and dcgettext() .
- See also
bindtextdomain , textdomain , setlocale , localeconv
|