bbim_translations.py - remove operator context from operator tooltips

noticed editing translations from ui that operator tooltip doesn't appear in ui if tooltips has `msgctxt "Operator"`
This commit is contained in:
Andrej730
2024-01-19 16:31:24 +05:00
parent fc69a2acbe
commit 9a89555a53
+2 -1
View File
@@ -107,7 +107,8 @@ def blenderbim_strings_parse(addon_directory=None, po_directory=None):
with open(filepath, "r", encoding="utf-8") as f:
content = f.read()
for i, regex in enumerate(regexes):
is_operator = i < 2
# NOTE: operator tooltips doesnt seem to need Operator context
is_operator = i < 1
for regex_match in regex.finditer(content):
string = regex_match.group(1)
if string == "":