Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

makemessages command that allows for arguments to be passed to xgettext.

Project Description

This project has one goal:

  1. Allow makemessages to receive additional parameters to pass to xgettext.


django-makemessages-xgettext works with Python 2.7 and 3.4. It requires Django 1.7+


Install with pip

pip install django-makemessages-xgettext

Then add “django_makemessages_xgettext” to the INSTALLED_APPS list in



As a way to generate .po files without the line number comment reference

Just use the makemessagesxgettext command instead of the makemessages command:

python makemessagesxgettext -a --xgettext=--add-location=file


This software is licensed under the New BSD License. See the LICENSE file in the repository for the full license text.

Release History

This version
History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(6.7 kB) Copy SHA256 Hash SHA256
Wheel py2.py3 Dec 23, 2015
(3.7 kB) Copy SHA256 Hash SHA256
Source None Dec 23, 2015

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers