4.40 GTranslateFunc

Callback: GTranslateFunc

A procedure given for it is called as (procedure str) ⇒ %return. If the function that it is given to has no user data for it, it is also passed data, last.

The type of functions which are used to translate user-visible strings, for <option>–help</option> output.

str

Passed: a string.

the untranslated string

%return

Returned: a string.

a translation of the string for the current locale. The returned string is owned by GLib and must not be freed.

data

Not passed: it is the user data that guile-gi supplied.

user data specified when installing the function, e.g. in option-group:set-translate-func