summaryrefslogtreecommitdiff
path: root/tools/stringslint/stringslint.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/stringslint/stringslint.py')
-rw-r--r--tools/stringslint/stringslint.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/stringslint/stringslint.py b/tools/stringslint/stringslint.py
index 03c0b9af66a0..afe91cda37b0 100644
--- a/tools/stringslint/stringslint.py
+++ b/tools/stringslint/stringslint.py
@@ -145,6 +145,13 @@ def lint(path):
if "translatable" in child.attrib and child.attrib["translatable"].lower() == "false":
continue
+ misspelled_attributes = [
+ ("translateable", "translatable"),
+ ]
+ for misspelling, expected in misspelled_attributes:
+ if misspelling in child.attrib:
+ error(child, "Misspelled <string> attribute.", misspelling, expected)
+
limit = re.search("CHAR[ _-]LIMIT=(\d+|NONE|none)", comment.text)
if limit is None:
info(child, "Missing CHAR LIMIT to aid translation",