diff --git a/data/tools/wmllint b/data/tools/wmllint index 915e74033db..f4a8a3f7800 100755 --- a/data/tools/wmllint +++ b/data/tools/wmllint @@ -1594,6 +1594,10 @@ def global_sanity_check(filename, lines): if ids[j].lstrip() not in present and not in_clear_menu_item: print '"%s", line %d: unknown \'%s\' referred to by id' \ % (filename, i+1, ids[j]) + if (in_scenario or in_multiplayer) and key == "speaker": + if value not in present and value not in ("narrator", "unit", "second_unit") and value[0] not in ("$", "{"): + print '"%s", line %d: unknown speaker \'%s\' in message' \ + % (filename, i+1, value) if markcheck and has_tr_mark and not ("wmllint: ignore" in comment or "wmllint: noconvert" in comment): print '"%s", line %d: %s should not have a translation mark' \ % (filename, i+1, key)