diff options
author | Bryan Newbold <bnewbold@archive.org> | 2020-05-13 16:01:52 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2020-05-13 16:01:52 -0700 |
commit | 70efe84e5c413dfb8b752faf3b4a5ce31e3d6bf2 (patch) | |
tree | be2a34e7d61f2296d3caebd5f0064b3d814e836f | |
parent | 53b27146d0045e52b64761e0bc773d50c7979c2b (diff) | |
download | fatcat-scholar-70efe84e5c413dfb8b752faf3b4a5ce31e3d6bf2.tar.gz fatcat-scholar-70efe84e5c413dfb8b752faf3b4a5ce31e3d6bf2.zip |
translation notes in README
-rw-r--r-- | README.md | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -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 |