Documentation: Add i18n info about operators' `get_name`/`get_description` callbacks.
This commit is contained in:
parent
203e6e2b41
commit
3f8416a1b2
|
@ -982,12 +982,14 @@ struct wmOperatorType {
|
|||
/**
|
||||
* Return a different name to use in the user interface, based on property values.
|
||||
* The returned string does not need to be freed.
|
||||
* The returned string is expected to be translated if needed.
|
||||
*/
|
||||
const char *(*get_name)(wmOperatorType *, PointerRNA *);
|
||||
|
||||
/**
|
||||
* Return a different description to use in the user interface, based on property values.
|
||||
* The returned string must be freed by the caller, unless NULL.
|
||||
* The returned string is expected to be translated if needed.
|
||||
*/
|
||||
char *(*get_description)(bContext *C, wmOperatorType *, PointerRNA *);
|
||||
|
||||
|
|
Loading…
Reference in New Issue