From 3f8416a1b252f61fc4b1a9012519f7e6ea9be68c Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Fri, 11 Aug 2023 12:14:27 +0200 Subject: [PATCH] Documentation: Add i18n info about operators' `get_name`/`get_description` callbacks. --- source/blender/windowmanager/WM_types.hh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/blender/windowmanager/WM_types.hh b/source/blender/windowmanager/WM_types.hh index e48f9493b3c..b5898dbc204 100644 --- a/source/blender/windowmanager/WM_types.hh +++ b/source/blender/windowmanager/WM_types.hh @@ -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 *);