Documentation: Add i18n info about operators' `get_name`/`get_description` callbacks.

This commit is contained in:
Bastien Montagne 2023-08-11 12:14:27 +02:00
parent 203e6e2b41
commit 3f8416a1b2
1 changed files with 2 additions and 0 deletions

View File

@ -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 *);