Unverified Commit 9ba7c72d authored by Thom Wiggers's avatar Thom Wiggers 📐
Browse files

Don't include lineno in django.po

The translation files are fully changing all the way and that leads to
diffs not being inspected. This overrides the defaults of the
`makemessages` command in an ugly way, but it works.
parent 00643ee5
......@@ -14,6 +14,7 @@ https://docs.djangoproject.com/en/dev/ref/settings/
import os
from django.core.management.commands import makemessages
from django.utils.translation import ugettext_lazy as _
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
......@@ -311,3 +312,7 @@ TINYMCE_DEFAULT_CONFIG = {
DEFAULT_EXCEPTION_REPORTER_FILTER = (
'utils.exception_filter.ThaliaSafeExceptionReporterFilter')
# Make sure the locations in django.po files don't include line nrs.
makemessages.Command.xgettext_options.append('--add-location=file')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment