2007-12-12 Douglas S. Blank <dblank@doraemon.brynmawr.edu>

* src/GrampsCfg.py: added Translation -> Pattern -> Translation
	so that one can see fully translated text, even if they type in
	English, or %codes
	* src/Utils.py: Fixed two bugs in translations of keywords
	* src/test/utils_test.py: unit tests for keywords/translations



svn: r9493
This commit is contained in:
Doug Blank
2007-12-12 16:24:40 +00:00
parent 734b05fd44
commit 9871fcf645
4 changed files with 84 additions and 4 deletions

View File

@ -1113,8 +1113,9 @@ for (key, code, standard, upper) in KEYWORDS:
KEY_TO_TRANS[key.upper()] = upper
KEY_TO_TRANS["%" + ("%s" % code)] = standard
KEY_TO_TRANS["%" + ("%s" % code.upper())] = upper
TRANS_TO_KEY[standard.lower()] = key
TRANS_TO_KEY[standard] = key
TRANS_TO_KEY[upper] = key
TRANS_TO_KEY[upper] = key.upper()
def get_translation_from_keyword(keyword):
""" Return the translation of keyword """