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 OptionContext.new), the summary (see OptionContext.setSummary) and the description (see OptionContext.setDescription).
If you are using gettext(), you only need to set the translation domain, see OptionContext.setTranslationDomain.
the GTranslateFunc, or NULL
user data to pass to func, or NULL
a function which gets called to free data, or NULL
2.12
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 OptionContext.new), the summary (see OptionContext.setSummary) and the description (see OptionContext.setDescription).
If you are using gettext(), you only need to set the translation domain, see OptionContext.setTranslationDomain.