diff options
author | Bryan Newbold <bnewbold@archive.org> | 2020-04-03 17:37:25 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2020-04-03 17:37:25 -0700 |
commit | b701a41f61a3ed5fa917dba9ebe639e4cc2c9cd9 (patch) | |
tree | a4b4b57621ff1460dab918bbbb679c33359b3374 /README.md | |
parent | 338ffe14c7e3cb6e6af658715a1e3305e82b44e9 (diff) | |
download | fatcat-covid19-b701a41f61a3ed5fa917dba9ebe639e4cc2c9cd9.tar.gz fatcat-covid19-b701a41f61a3ed5fa917dba9ebe639e4cc2c9cd9.zip |
first stab at translations
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -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): |