https://github.com/hingston/minify_po_files
Minify .po files for a Django project
https://github.com/hingston/minify_po_files
django-locale
Last synced: 8 months ago
JSON representation
Minify .po files for a Django project
- Host: GitHub
- URL: https://github.com/hingston/minify_po_files
- Owner: hingston
- License: mit
- Created: 2018-09-16T01:13:02.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-04T12:24:59.000Z (about 7 years ago)
- Last Synced: 2025-07-19T07:58:02.416Z (11 months ago)
- Topics: django-locale
- Language: Python
- Size: 15.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Minify Django .po Files
Removes all unnecessary lines from [.po files](https://www.gnu.org/software/gettext/manual/html_node/PO-Files.html) in a [Django](https://www.djangoproject.com/start/overview/) project.
### Usage
`$ python minify_po_files.py [-h] [-p] [-e ENCODING] path`
###### positional arguments:
```
path path of Django locale directory
```
###### optional arguments:
```
-h, --help show this help message and exit
-p, --print print percentage translated for readme.md
-e ENCODING, --encoding ENCODING
encoding, default='utf8'
```