Skip to content

Commit

Permalink
Added some info about translation key checker
Browse files Browse the repository at this point in the history
  • Loading branch information
knyar committed Jan 21, 2013
1 parent 9a7333e commit 0955a96
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
9 changes: 9 additions & 0 deletions checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 0955a96

Please sign in to comment.