Skip to content

Instantly share code, notes, and snippets.

View vonNiklasson's full-sized avatar

Johan Niklasson vonNiklasson

View GitHub Profile
@charlwillia6
charlwillia6 / translate.py
Last active May 26, 2023 02:21 — forked from vonNiklasson/translate.py
Management script for Django to easily run the 'makemessages'-command for all files in your Django application. #django #translations
'''
translate.py
Management script for Django to easily run the
'makemessages'-command and 'compilemessages'-command for all
files in your Django application.
Put in any registered django app in the location
<app>/management/commands/translate.py
and then use python manage.py translate
to run makemessages on all files in your project