mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
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:
@@ -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 == "":
|
||||
|
||||
Reference in New Issue
Block a user