[Bf-blender-cvs] [1e848281f94] master: 18n: Add new `EDITOR_VIEW3D` translation context.

Bastien Montagne noreply at git.blender.org
Mon Feb 28 14:37:12 CET 2022


Commit: 1e848281f94ff11d8a037469c34bd645d41e3ada
Author: Bastien Montagne
Date:   Mon Feb 28 14:35:49 2022 +0100
Branches: master
https://developer.blender.org/rB1e848281f94ff11d8a037469c34bd645d41e3ada

18n: Add new `EDITOR_VIEW3D` translation context.

===================================================================

M	source/blender/blentranslation/BLT_translation.h

===================================================================

diff --git a/source/blender/blentranslation/BLT_translation.h b/source/blender/blentranslation/BLT_translation.h
index 08a0c9605e5..ebb0f604df7 100644
--- a/source/blender/blentranslation/BLT_translation.h
+++ b/source/blender/blentranslation/BLT_translation.h
@@ -129,6 +129,9 @@ bool BLT_lang_is_ime_supported(void);
 #define BLT_I18NCONTEXT_ID_MOVIECLIP "MovieClip"
 #define BLT_I18NCONTEXT_ID_MASK "Mask"
 
+/* Editors-types contexts. */
+#define BLT_I18NCONTEXT_EDITOR_VIEW3D "View3D"
+
 /* Helper for bpy.app.i18n object... */
 typedef struct {
   const char *c_id;
@@ -191,6 +194,7 @@ typedef struct {
         BLT_I18NCONTEXTS_ITEM(BLT_I18NCONTEXT_ID_WORLD, "id_world"), \
         BLT_I18NCONTEXTS_ITEM(BLT_I18NCONTEXT_ID_WORKSPACE, "id_workspace"), \
         BLT_I18NCONTEXTS_ITEM(BLT_I18NCONTEXT_ID_WINDOWMANAGER, "id_windowmanager"), \
+        BLT_I18NCONTEXTS_ITEM(BLT_I18NCONTEXT_EDITOR_VIEW3D, "editor_view3d"), \
     { \
       NULL, NULL, NULL \
     } \



More information about the Bf-blender-cvs mailing list