aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-05-13 16:01:52 -0700
committerBryan Newbold <bnewbold@archive.org>2020-05-13 16:01:52 -0700
commit70efe84e5c413dfb8b752faf3b4a5ce31e3d6bf2 (patch)
treebe2a34e7d61f2296d3caebd5f0064b3d814e836f
parent53b27146d0045e52b64761e0bc773d50c7979c2b (diff)
downloadfatcat-scholar-70efe84e5c413dfb8b752faf3b4a5ce31e3d6bf2.tar.gz
fatcat-scholar-70efe84e5c413dfb8b752faf3b4a5ce31e3d6bf2.zip
translation notes in README
-rw-r--r--README.md22
1 files changed, 22 insertions, 0 deletions
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