Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/powergo/django-makemessages-xgettext
https://github.com/powergo/django-makemessages-xgettext
Last synced: about 14 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/powergo/django-makemessages-xgettext
- Owner: powergo
- License: other
- Created: 2015-07-15T18:07:28.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-23T20:27:07.000Z (almost 9 years ago)
- Last Synced: 2024-10-11T16:49:49.480Z (about 1 month ago)
- Language: Python
- Size: 23.4 KB
- Stars: 5
- Watchers: 13
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
django-makemessages-xgettext - Generate translations with additional options
============================================================================:Authors:
Resulto Developpement Web Inc.
:Version: 0.1.1This project has one goal:
1. Allow makemessages to receive additional parameters to pass to xgettext.
Requirements
------------django-makemessages-xgettext works with Python 2.7 and 3.4. It requires Django 1.7+
Installation
------------Install with pip
::
pip install django-makemessages-xgettext
Then add "django_makemessages_xgettext" to the INSTALLED_APPS list in settings.py
::
INSTALLED_APPS = [
...
"django_makemessages_xgettext",
]Usage
-----As a way to generate .po files without the line number comment reference
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Just use the `makemessagesxgettext` command instead of the `makemessages` command:
::
python manage.py makemessagesxgettext -a --xgettext=--add-location=file
License
-------This software is licensed under the `New BSD License`. See the `LICENSE` file
in the repository for the full license text.