better PEP-0008 (trans_text_ ==> trans_text)

PEP-0008 reserves the use of a trailing underscore for names
which conflict with Python keywords, which this doesn't.

The goal is to have a permanent name which is unique across
the gramps namespace, since it is defined (in po/genpot.sh
and po/update_po.py) as a keyword to flag strings to be put
into the translation "catalog" file (gramps.pot).

The new keyword "trans_text" is still unique.  (Also "_T_".)


svn: r22201
This commit is contained in:
Paul Franklin
2013-05-07 18:59:43 +00:00
parent 6930887aa1
commit 612b893956
7 changed files with 12 additions and 12 deletions

View File

@@ -582,7 +582,7 @@ def retrieve():
os.system('''%(xgettext)s -j --directory=./ -d gramps '''
'''-L Python -o gramps.pot --files-from=python.txt '''
'''--keyword=_ --keyword=ngettext '''
'''--keyword=_T_ --keyword=trans_text_ '''
'''--keyword=_T_ --keyword=trans_text '''
'''--keyword=sgettext --from-code=UTF-8''' % {'xgettext': xgettextCmd}
)