misc: do not include line numbers in .po files (#55848)
This commit is contained in:
parent
5f1aea8f38
commit
07bc7d4b6f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue