OptionGroup.setTranslateFunc

Sets the function which is used to translate user-visible strings, for --help output. Different groups can use different #GTranslateFuncs. If func is null, strings are not translated.

If you are using gettext(), you only need to set the translation domain, see glib.option_group.OptionGroup.setTranslationDomain.

class OptionGroup
void
setTranslateFunc

Parameters

func glib.types.TranslateFunc

the #GTranslateFunc, or null