OptionGroup.setTranslateFunc

void setTranslateFunc(glib.types.TranslateFunc func = null)

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].

Parameters

functhe #GTranslateFunc, or null