set_translate_func


Description:

public void set_translate_func (owned TranslateFunc? func)

Sets the function which is used to translate user-visible strings, for `--help` output.

Different groups can use different TranslateFuncs. If func is null, strings are not translated.

If you are using gettext, you only need to set the translation domain, see set_translation_domain.

Parameters:

this

a OptionGroup

func

the TranslateFunc, or null

data

user data to pass to func, or null

destroy_notify

a function which gets called to free data, or null