]> git.ipfire.org Git - thirdparty/babel.git/commit
Add option 'add_location' for location line formatting 438/head
authorRoman Rader <roman.rader@gmail.com>
Tue, 9 Aug 2016 08:29:12 +0000 (11:29 +0300)
committerRoman Rader <roman.rader@gmail.com>
Tue, 9 Aug 2016 09:32:38 +0000 (12:32 +0300)
commit2ff0f4843d427102260fe88ddab67ce6d95903bd
tree6a6277fcb1d912033e163fa6a73cab107a06427e
parentd277c12319ceeb6066898fca64a0381ca5f5a40c
Add option 'add_location' for location line formatting

Support of add_location option added, can be either 'full', 'file'
or 'never'. 'full' includes both file and line number; 'file' includes
only the file name without line number; 'never' doesn't include the
location comment at all (same as --no-location).
babel/messages/frontend.py
babel/messages/pofile.py
tests/messages/test_frontend.py
tests/messages/test_pofile.py