Skip to content

Commit

Permalink
Update tools and docs on translations
Browse files Browse the repository at this point in the history
  • Loading branch information
stefankoegl committed Sep 12, 2019
1 parent 44faaf4 commit 0ddf842
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .tx/config
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[main]
host = https://transifex.com

[mygpo.website-api]
[gpoddernet.gpoddernet]
file_filter = mygpo/locale/<lang>/LC_MESSAGES/django.po
source_file = mygpo/locale/en/LC_MESSAGES/django.po
source_lang = en
Expand Down
1 change: 1 addition & 0 deletions doc/dev/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@ Contents
libraries
configuration
jupyter-notebook
translate
31 changes: 31 additions & 0 deletions doc/dev/translate.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
Translations
============

Translations for gpodder.net are managed on Transifex, in the
`gpodder.net project <https://www.transifex.com/gpoddernet/>`_.



Importing translations
----------------------

To import translations from transifex run the following

.. code-block:: bash
tx pull -a
make update
Upload new source strings
-------------------------

When changing the source code so that there are new internationalized strings
that need to be translated run the following commands to upload these to
Transifex.

.. code-block:: bash
make update-po
tx push -s
3 changes: 3 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ update-po:
--ignore=res/* --ignore=tools/* --ignore=mygpo/*/migrations/* \
--ignore=static/*

compilemessages:
envdir envs/dev/ python manage.py compilemessages

notebook:
envdir envs/dev/ python manage.py shell_plus --notebook

Expand Down

0 comments on commit 0ddf842

Please sign in to comment.