Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorBastien Montagne <bastien@blender.org>2022-04-22 16:37:16 +0300
committerBastien Montagne <bastien@blender.org>2022-04-22 17:19:05 +0300
commit535c9308ef16c0bf0a5daa54c6bfd72a0dbf6ca3 (patch)
tree9d582fe5a6471a63fe30ca1d685df505a017a313 /source
parent50f0103059a0c29a2d1e256309c52c7905391fad (diff)
Fix T97429: Translateable Unit Names Missing in the File.
Added some regex magic in i18n py module to also extract UI names from all of our units definitions. Those enum values are fully dynamically generated, so they cannot be extracted from RNA introspection.
Diffstat (limited to 'source')
-rw-r--r--source/blender/makesrna/intern/rna_scene.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c
index afce68057b2..9148b48978d 100644
--- a/source/blender/makesrna/intern/rna_scene.c
+++ b/source/blender/makesrna/intern/rna_scene.c
@@ -2630,7 +2630,7 @@ static const EnumPropertyItem *rna_UnitSettings_itemf_wrapper(const int system,
EnumPropertyItem adaptive = {0};
adaptive.identifier = "ADAPTIVE";
- adaptive.name = "Adaptive";
+ adaptive.name = N_("Adaptive");
adaptive.value = USER_UNIT_ADAPTIVE;
RNA_enum_item_add(&items, &totitem, &adaptive);