diff options
author | Hans Goudey <h.goudey@me.com> | 2022-02-04 16:31:53 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-02-04 16:31:53 +0300 |
commit | 7099d5b66129deba2d28102ea339b1d5339233fe (patch) | |
tree | 7c0c4c8839c522632f41c96c57a2316b385c5a0d /source/blender/editors/object/object_data_transfer.c | |
parent | 623ff64a278924af57d7e1ec7e7bdb8792a560f8 (diff) |
Fix: Missing translations from operator descriptions
The strings in the `get_description` functions for operators need
translation, they are not found by the translation system automatically,
and there is no translation applied afterwards either (as far as I could
tell). Some used `N_` before, but most did nothing.
Differential Revision: https://developer.blender.org/D14011
Diffstat (limited to 'source/blender/editors/object/object_data_transfer.c')
-rw-r--r-- | source/blender/editors/object/object_data_transfer.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/object/object_data_transfer.c b/source/blender/editors/object/object_data_transfer.c index 595822de1e7..3744cbee3a4 100644 --- a/source/blender/editors/object/object_data_transfer.c +++ b/source/blender/editors/object/object_data_transfer.c @@ -43,6 +43,8 @@ #include "DEG_depsgraph.h" #include "DEG_depsgraph_query.h" +#include "BLT_translation.h" + #include "RNA_access.h" #include "RNA_define.h" #include "RNA_enum_types.h" @@ -610,8 +612,8 @@ static char *data_transfer_get_description(bContext *UNUSED(C), const bool reverse_transfer = RNA_boolean_get(ptr, "use_reverse_transfer"); if (reverse_transfer) { - return BLI_strdup( - "Transfer data layer(s) (weights, edge sharp, etc.) from selected meshes to active one"); + return BLI_strdup(TIP_( + "Transfer data layer(s) (weights, edge sharp, etc.) from selected meshes to active one")); } return NULL; |