Commit 9008885a authored by Carl Schwan's avatar Carl Schwan 🚴

Ignore laptop keys

parent bbbf8092
......@@ -70,7 +70,7 @@ def import_frontmatter(data, _):
has_translations = import_frontmatter(item, _) or has_translations
elif isinstance(data, dict):
for key in data:
if key in ['layout', 'date', 'type', 'publishDate', 'version', 'release', 'qtversion', 'changelog', 'sassFiles', 'link', 'image', 'externi18n', 'draft', 'color', 'sassFile', 'alias']:
if key in ['layout', 'date', 'type', 'publishDate', 'version', 'release', 'qtversion', 'changelog', 'sassFiles', 'link', 'image', 'externi18n', 'draft', 'color', 'sassFile', 'alias', 'laptop']:
continue
if isinstance(data[key], str):
if data[key] != _(data[key]):
......@@ -102,7 +102,7 @@ def extract_frontmatter(data, pot, filename):
extract_frontmatter(item, pot, filename)
elif isinstance(data, dict):
for key in data:
if key not in ['layout', 'date', 'type', 'publishDate', 'version', 'release', 'qtversion', 'changelog', 'sassFiles', 'link', 'image', 'externi18n', 'draft', 'color', 'sassFile', 'alias']:
if key not in ['layout', 'date', 'type', 'publishDate', 'version', 'release', 'qtversion', 'changelog', 'sassFiles', 'link', 'image', 'externi18n', 'draft', 'color', 'sassFile', 'alias', 'laptop']:
extract_frontmatter(data[key], pot, filename)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment