aboutsummaryrefslogtreecommitdiffstats
path: root/extra/i18n/README.md
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-10-01 18:24:57 -0700
committerBryan Newbold <bnewbold@archive.org>2020-10-01 19:28:56 -0700
commitc1e1a4ef64b56d72346d7de96b90a2421f6607c2 (patch)
treeebd5dcade4872d5fd6dcf77b9da3ccd4e210ffab /extra/i18n/README.md
parent3fa0b85554b8b72bbe4e5ee705d7febb9973210b (diff)
downloadfatcat-scholar-c1e1a4ef64b56d72346d7de96b90a2421f6607c2.tar.gz
fatcat-scholar-c1e1a4ef64b56d72346d7de96b90a2421f6607c2.zip
split out current README into other files
Diffstat (limited to 'extra/i18n/README.md')
-rw-r--r--extra/i18n/README.md16
1 files changed, 16 insertions, 0 deletions
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