Skip to content

Commit

Permalink
Fix TranslationPlugin property usage comparison for exported variables
Browse files Browse the repository at this point in the history
  • Loading branch information
shomykohai committed Jun 28, 2024
1 parent d815391 commit 872eca9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/quest_system/translation_plugin.gd
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ func _parse_file(path: String, msgids: Array[String], msgids_context_plural: Arr
for property in res.get_script().get_script_property_list():
if property.type != 4: continue # If the property is not a string, we skip it
# Here we check if the property is an exported variable
if property.usage & PROPERTY_USAGE_STORAGE or property.usage & PROPERTY_USAGE_SCRIPT_VARIABLE:
if property.usage == PROPERTY_USAGE_SCRIPT_VARIABLE | PROPERTY_USAGE_STORAGE | PROPERTY_USAGE_EDITOR:
msgids.append("quest_%s/%s"% [res.id, property["name"]]) # quest_1/quest_name

func _get_recognized_extensions() -> PackedStringArray:
Expand Down

0 comments on commit 872eca9

Please sign in to comment.