[Bf-blender-cvs] [cde982d6723] blender-v3.0-release: I18n: Fix all new cpp files not being parsed by UI message extractor.

Bastien Montagne noreply at git.blender.org
Tue Nov 2 17:04:46 CET 2021


Commit: cde982d672322ab816e90baaa2865ac54d23598d
Author: Bastien Montagne
Date:   Tue Nov 2 17:00:23 2021 +0100
Branches: blender-v3.0-release
https://developer.blender.org/rBcde982d672322ab816e90baaa2865ac54d23598d

I18n: Fix all new cpp files not being parsed by UI message extractor.

The 'new' `.cc`/`.hh` extensions were never added to UI message
extractor.

Related to T43295.

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

M	release/scripts/modules/bl_i18n_utils/settings.py

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

diff --git a/release/scripts/modules/bl_i18n_utils/settings.py b/release/scripts/modules/bl_i18n_utils/settings.py
index 4825992b8e2..57aeef895b9 100644
--- a/release/scripts/modules/bl_i18n_utils/settings.py
+++ b/release/scripts/modules/bl_i18n_utils/settings.py
@@ -195,7 +195,7 @@ DOMAIN = "blender"
 
 # Our own "gettext" stuff.
 # File type (ext) to parse.
-PYGETTEXT_ALLOWED_EXTS = {".c", ".cpp", ".cxx", ".hpp", ".hxx", ".h"}
+PYGETTEXT_ALLOWED_EXTS = {".c", ".cc", ".cpp", ".cxx", ".hh", ".hpp", ".hxx", ".h"}
 
 # Max number of contexts into a BLT_I18N_MSGID_MULTI_CTXT macro...
 PYGETTEXT_MAX_MULTI_CTXT = 16



More information about the Bf-blender-cvs mailing list