Skip to content

Commit 4cdb061

Browse files
committed
document how to contribute translations
1 parent c7cf65a commit 4cdb061

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

docs/contributing.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,24 @@ the browser.
7878
* `ReStructuredText primer
7979
<https://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html>`_
8080

81+
Translations
82+
============
83+
84+
You can contribute international language translations using
85+
`django-admin makemessages <https://docs.djangoproject.com/en/dev/ref/django-admin/#makemessages>`_.
86+
87+
For example, to add Deutsch::
88+
89+
cd oauth2_provider
90+
django-admin makemessages --locale de
91+
92+
Then edit ``locale/de/LC_MESSAGES/django.po`` to add your translations.
93+
94+
When deploying your app, don't forget to compile the messages with::
95+
96+
django-admin compilemessages
97+
98+
8199
Pull requests
82100
=============
83101

0 commit comments

Comments
 (0)