From c1e1a4ef64b56d72346d7de96b90a2421f6607c2 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 1 Oct 2020 18:24:57 -0700 Subject: split out current README into other files --- extra/i18n/README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 extra/i18n/README.md (limited to 'extra') diff --git a/extra/i18n/README.md b/extra/i18n/README.md new file mode 100644 index 0000000..00fa377 --- /dev/null +++ b/extra/i18n/README.md @@ -0,0 +1,16 @@ + +## HOWTO: Translations + +Update the .pot file and translation files: + + pybabel extract -F extra/i18n/babel.cfg -o extra/i18n/web_interface.pot fatcat_scholar/ + pybabel update -i extra/i18n/web_interface.pot -d fatcat_scholar/translations + +Compile translated messages together: + + pybabel compile -d fatcat_scholar/translations + +Create initial .po file for a new language translation (then run the above +update/compile after doing initial translations): + + pybabel init -i extra/i18n/web_interface.pot -d fatcat_scholar/translations -l de -- cgit v1.2.3