Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements_prod.txt
- name: Get translations
run: make pulllang
- name: Flush errors
run: make allerr
- name: Build docs
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ Thumbs.db
.*.swp
*.sublime-project
*.sublime-workspace

source/locale/*
!source/locale/README.md
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pushlang:

# push translated strings from Transifex
pulllang:
tx pull --language "cs,es,fil,fr,id,sw,te,zh"
tx pull --languages "cs,es,fil,fr,id,sw,te,zh"

build:
@$(SPHINXBUILD) -b dirhtml "$(SOURCEDIR)" "$(BUILDDIR)/html" -nW
Expand Down
20 changes: 17 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,12 +216,26 @@ Code snippets need to have a space before, then a double backtick or grave accen

## Managing the translation process

This project uses [Transifex](https://www.transifex.com/) and the [`transifex-client`](https://docs.transifex.com/client/introduction) tool to help people contribute translations. The `transifex-client` tool is included in the requirements.txt file and should be installed on your system during setup when you run `pip install -r requirements.txt`.
This project uses [Transifex](https://www.transifex.com/) and the [`Transifex Client`](https://developers.transifex.com/docs/cli) tool to help people contribute translations. The `transifex-client` tool is included in the requirements.txt file and should be installed on your system during setup when you run `pip install -r requirements.txt`.

You need to configure your account. For this, you need to create an API Token for your user to access this service through the command line. This can be done under your Transifex [User’s Settings](https://www.transifex.com/user/settings/api/). Set it up to use the token:
::warning
The APIv2 of Transifex is getting deprecated. We have to migrate to [**new version of Transifex Client**](https://developers.transifex.com/docs/cli).

refer: https://developers.transifex.com/docs/cli#differences-with-the-previous-version
::

You need to configure your account. For this, you need to create an API Token for your user to access this service through the command line. This can be done under your Transifex [User’s Settings](https://app.transifex.com/user/settings/api/). Set it up to use the token. The available environment variables for the CLI:

```
TX_TOKEN: The API token
TX_HOSTNAME: The API hostname
TX_CACERT: Path to CA certificate bundle file
```

You can either add these variables in your CI settings, your profile file, or when executing the commands like this:

```
tx init --token $TOKEN --skipsetup
TX_TOKEN=myapitoken tx pull
```

If there are **new** English `.rst` source files, you can map them by updating the `./.tx/config` file.
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ sphinx==5.3.0
sphinx-autobuild==2021.3.14
sphinx-intl==2.0.1
sphinx-rtd-theme==1.1.1
transifex-client==0.12.5
sphinxcontrib-mermaid==0.9.2
2 changes: 1 addition & 1 deletion source/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ The ``init.sql``:

And finally the ``compose.yml``:

.. code:: yml
.. code:: yaml

services:
webodm-node-odm-1:
Expand Down
2 changes: 1 addition & 1 deletion source/large.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ ODM can also automatically distribute the processing of each submodel to multipl
:align: center

Getting Started with Distributed Split-Merge
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

The first step is start ClusterODM

Expand Down
1 change: 1 addition & 0 deletions source/locale/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Use `make pulllang` to pull the latest supported translations from Transifex or refer to [`Transifex Client`](https://developers.transifex.com/docs/cli) to pull the other language.
Binary file removed source/locale/ar/LC_MESSAGES/arguments.mo
Binary file not shown.
Loading