From 70efe84e5c413dfb8b752faf3b4a5ce31e3d6bf2 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 13 May 2020 16:01:52 -0700 Subject: translation notes in README --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 9ff57bc..7c8d99f 100644 --- a/README.md +++ b/README.md @@ -2,3 +2,25 @@ **fatcat-scholar**: fulltext search over [fatcat](https://fatcat.wiki) corpus of 25+ million open research papers +## 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 + +## Production + +Use gunicorn plus uvicorn, to get multiple worker processes, each running +async: + + gunicorn example:app -w 4 -k uvicorn.workers.UvicornWorker -- cgit v1.2.3