wmllint: Fix type_tree being considered translatable

This commit is contained in:
Celtic Minstrel 2016-11-05 12:01:52 -04:00 committed by GitHub
parent f2de11b483
commit 6ebfa8b377

View file

@ -1013,7 +1013,7 @@ def is_translatable(key):
"defeat_string", "gold_carryover_string", "notes_string", "text", "title",
"title2", "tooltip", "translator_comment", "user_team_name"
)
return key in translatables or key.startswith(("type_", "range_"))
return key in translatables or (key.startswith(("type_", "range_")) and key != "type_tree")
# This is a list of mainline campaigns, used to convert UMC from
# "data/campaigns" to "data/add-ons" while not clobbering mainline.