GLib.OptionGroup.prototype.set_translate_func
function set_translate_func(func: GLib.TranslateFunc): void {
// Gjs wrapper for g_option_group_set_translate_func()
}
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.OptionGroup.prototype.set_translation_domain.
Since 2.6
- func
the GLib.TranslateFunc, or null