misc: do not include line numbers in .po files (#55848)

This commit is contained in:
Frédéric Péters 2021-07-27 10:27:15 +02:00
parent 5f1aea8f38
commit 07bc7d4b6f
1 changed files with 5 additions and 0 deletions

View File

@ -19,3 +19,8 @@ from django.core.management.commands import makemessages
class Command(makemessages.Command):
xgettext_options = makemessages.Command.xgettext_options + ['--keyword=N_', '--keyword=C_']
def handle(self, *args, **options):
if not options.get('add_location') and self.gettext_version >= (0, 19):
options['add_location'] = 'file'
return super().handle(*args, **options)