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/render/render_opengl.cc | |
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/render/render_opengl.cc')
-rw-r--r-- | source/blender/editors/render/render_opengl.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/editors/render/render_opengl.cc b/source/blender/editors/render/render_opengl.cc index 8bd0244c899..c4ce8bac126 100644 --- a/source/blender/editors/render/render_opengl.cc +++ b/source/blender/editors/render/render_opengl.cc @@ -72,8 +72,11 @@ #include "IMB_colormanagement.h" #include "IMB_imbuf.h" #include "IMB_imbuf_types.h" + #include "RE_pipeline.h" +#include "BLT_translation.h" + #include "RNA_access.h" #include "RNA_define.h" @@ -1326,12 +1329,12 @@ static char *screen_opengl_render_description(struct bContext *UNUSED(C), } if (RNA_boolean_get(ptr, "render_keyed_only")) { - return BLI_strdup( + return BLI_strdup(TIP_( "Render the viewport for the animation range of this scene, but only render keyframes of " - "selected objects"); + "selected objects")); } - return BLI_strdup("Render the viewport for the animation range of this scene"); + return BLI_strdup(TIP_("Render the viewport for the animation range of this scene")); } void RENDER_OT_opengl(wmOperatorType *ot) |