set_translate_func


Description:

[ Version ( since = "2.4" ) ]
public void set_translate_func (owned TranslateFunc func)

Sets a function to be used for translating the label and tooltip of ActionEntrys added by add_actions.

If you’re using gettext, it is enough to set the translation domain with set_translation_domain.

Parameters:

this

a ActionGroup

func

a TranslateFunc

data

data to be passed to func and notify

notify

a DestroyNotify function to be called when this is destroyed and when the translation function is changed again