function set_translate_func(func: GLib.TranslateFunc): void {
    // Gjs wrapper for g_option_context_set_translate_func()

Sets the function which is used to translate the contexts user-visible strings, for `--help` output. If func is null, strings are not translated.

Note that option groups have their own translation functions, this function only affects the @parameter_string (see, the summary (see GLib.OptionContext.prototype.set_summary) and the description (see GLib.OptionContext.prototype.set_description).

If you are using gettext(), you only need to set the translation domain, see GLib.OptionContext.prototype.set_translation_domain.

Since 2.12


the GLib.TranslateFunc, or null