Package: glib

Function glib:option-context-set-translate-func

Lambda List

glib:option-context-set-translate-func (context func)

Arguments

context -- a g:option-context instance
func -- a g:translate-func callback function, or nil

Details

Sets the function which is used to translate the user visible strings of the option context, for --help output. If the func argument is nil, strings are not translated.

Note that option groups have their own translation functions, this function only affects the parameter argument of the g:option-context-new function, the summary argument of the g:option-context-summary function, and the description argument of the g:option-context-description function.

If you are using GNU gettext, you only need to set the translation domain, see the g:option-context-set-translation-domain function.
 

See also

2024-11-19