diff --git a/.github/workflows/generate_catalog_templates.yml b/.github/workflows/generate_catalog_templates.yml new file mode 100644 index 000000000..475f29af5 --- /dev/null +++ b/.github/workflows/generate_catalog_templates.yml @@ -0,0 +1,19 @@ +name: L10n +on: + push: + branches: + - master + +jobs: + user_manual: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: ammaraskar/sphinx-action@master + with: + docs-folder: "user_manual/" + pre-build-command: pip install -r requirements.txt + build-command: make gettext + - uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_message: Adds Or Updates catalog templates (POT files fetched automatically by transifex) diff --git a/README.rst b/README.rst index c35714624..fc79f8eef 100644 --- a/README.rst +++ b/README.rst @@ -85,6 +85,14 @@ If using the command line and your name and email are configured, you can use In both settings be sure that your email address matches that in your Github profile, which if you have privacy enabled will be github.username@users.noreply.github.com + +Translations +------------ + +[Help translate the documentation](https://www.transifex.com/indiehosters/nextcloud-user-documentation/dashboard/). + +For developers that want to ease the translation process, please read [this documentation](https://docs.transifex.com/integrations/sphinx-doc). + Building -------- diff --git a/user_manual/Makefile b/user_manual/Makefile index 8bcf2db09..4ac248984 100644 --- a/user_manual/Makefile +++ b/user_manual/Makefile @@ -147,9 +147,9 @@ info: @echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo." gettext: - $(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale + $(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) locale/source @echo - @echo "Build finished. The message catalogs are in $(BUILDDIR)/locale." + @echo "Build finished. The message catalogs are in ./locale/source." changes: $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes