# HG changeset patch # User pjenvey # Date 1182984206 0 # Node ID 10f9fd9e730be427284f561dfd983bfdc98cfea8 # Parent 4407c6d1b7d7e2cbe6616b94d4a33aa5b430c9dd added 'N_' (gettext noop) to the extractor's default keywords fixes #25 diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -24,6 +24,7 @@ are now always sorted alphabetically. * The Python message extractor now respects the special encoding comment to be able to handle files containing non-ASCII characters (ticket #23). + * Added 'N_' (gettext noop) to the extractor's default keywords. Version 0.8 diff --git a/babel/messages/extract.py b/babel/messages/extract.py --- a/babel/messages/extract.py +++ b/babel/messages/extract.py @@ -44,6 +44,7 @@ 'ungettext': (1, 2), 'dgettext': (2,), 'dngettext': (2, 3), + 'N_': None } DEFAULT_MAPPING = [('**.py', 'python')]