aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-04-03 17:37:25 -0700
committerBryan Newbold <bnewbold@archive.org>2020-04-03 17:37:25 -0700
commitb701a41f61a3ed5fa917dba9ebe639e4cc2c9cd9 (patch)
treea4b4b57621ff1460dab918bbbb679c33359b3374 /README.md
parent338ffe14c7e3cb6e6af658715a1e3305e82b44e9 (diff)
downloadfatcat-covid19-b701a41f61a3ed5fa917dba9ebe639e4cc2c9cd9.tar.gz
fatcat-covid19-b701a41f61a3ed5fa917dba9ebe639e4cc2c9cd9.zip
first stab at translations
Diffstat (limited to 'README.md')
-rw-r--r--README.md18
1 files changed, 18 insertions, 0 deletions
diff --git a/README.md b/README.md
index 0875eae..ad7f5b0 100644
--- a/README.md
+++ b/README.md
@@ -78,6 +78,24 @@ public search index by default:
# output will include a localhost URL to open
+
+## Translations
+
+Update the .pot file and translation files:
+
+ pybabel extract -F extra/i18n/babel.cfg -o extra/i18n/web_interface.pot fatcat_covid19/
+ pybabel update -i extra/i18n/web_interface.pot -d fatcat_covid19/translations
+
+Compile translated messages together:
+
+ pybabel compile -d fatcat_covid19/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_covid19/translations -l de
+
+
## Acknowledgements
For content and bibliographic metadata (partial list):