Adds automation to build catalog templates.

Signed-off-by: pierreozoux <pierre@ozoux.net>
This commit is contained in:
pierreozoux
2020-07-24 13:52:49 +02:00
parent e7cd0dd536
commit a03032103d
3 changed files with 29 additions and 2 deletions

View File

@@ -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)

View File

@@ -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
--------

View File

@@ -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