From 0955a96b97779774252fc42432bfe85fed21a543 Mon Sep 17 00:00:00 2001 From: Anton Tolchanov Date: Mon, 21 Jan 2013 17:43:22 +0000 Subject: [PATCH] Added some info about translation key checker --- README.md | 3 ++- checker.py | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index fec0ae1..1ecc810 100644 --- a/README.md +++ b/README.md @@ -4,4 +4,5 @@ 1. Fork it 1. Change anything you want (add commits using ```git``` or simply change files using Github web interface) -1. Create new Pull Request +1. If you have Python and PyYAML installed, you can run ```checker.py``` to verify that your translation file contains correct set of keys +1. Create a new Pull Request diff --git a/checker.py b/checker.py index ce6c33c..aca737e 100755 --- a/checker.py +++ b/checker.py @@ -3,6 +3,15 @@ import yaml import sets +""" +Check that all translation have proper keys + +This script can be used to check that all translations have the same set +of keys as the 'master' locale - English in our case. + +Just run the script. No output is good. +""" + master = "en" def compare_dicts(master, victim, path):