diff options
| author | JocelynDelalande <JocelynDelalande@users.noreply.github.com> | 2018-08-05 14:59:39 +0200 |
|---|---|---|
| committer | Alexis Metaireau <alexis@notmyidea.org> | 2018-08-05 14:59:39 +0200 |
| commit | fc9781b8c02c36f632eaf23171902523bd7572bb (patch) | |
| tree | 4bfa0310e8f78af15a159d3c3cad314b960be605 /docs/contributing.rst | |
| parent | c1b5eb1375cef77454973d5345628de1a9fe9ae6 (diff) | |
| download | ihatemoney-mirror-fc9781b8c02c36f632eaf23171902523bd7572bb.zip ihatemoney-mirror-fc9781b8c02c36f632eaf23171902523bd7572bb.tar.gz ihatemoney-mirror-fc9781b8c02c36f632eaf23171902523bd7572bb.tar.bz2 | |
Enhance translation tooling (#360)
* Add a `make update-translations` command
To collect new strings to be translated from code.
Totally cheated on @Glandos commands :-)
Ref #336
Ref https://github.com/spiral-project/ihatemoney/issues/336#issue-322069517
* Document translation process
Fix #336
* Drop noisy location comments from .po files
Fix #339
* Drop .pot header
As it serves no purpose with our translation workflow.
.po header could be removed also, but pybabel has no option for that.
Ref #339
Diffstat (limited to 'docs/contributing.rst')
| -rw-r--r-- | docs/contributing.rst | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/contributing.rst b/docs/contributing.rst index 0415387..836dc08 100644 --- a/docs/contributing.rst +++ b/docs/contributing.rst @@ -89,6 +89,22 @@ Feel free to provide us mockups or to involve yourself into the discussions hapenning on the github issue tracker. All ideas are welcome. Of course, if you know how to implement them, feel free to fork and make a pull request. +As a translator +--------------- + +Collect all new strings to translate:: + + $ make update-translations + + Add missing translations to *.po* files inside *translations/* dir using your + favorite text editor. + + Compile them into *.mo* files:: + + $ make compile-translations + +Commit both *.mo* and *.po*. + End-user -------- |
