From fc9781b8c02c36f632eaf23171902523bd7572bb Mon Sep 17 00:00:00 2001 From: JocelynDelalande Date: Sun, 5 Aug 2018 14:59:39 +0200 Subject: 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 --- docs/contributing.rst | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'docs') 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 -------- -- cgit v1.1