Skip to content

Commit 9f55723

Browse files
committed
Merge branch 'develop' into fix/i18n2
2 parents 7532426 + 1724616 commit 9f55723

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

CHANGELOG.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
* It has been replaced by a new module `guidata.utils.translations`, which provides a more modern and flexible way to handle translations, thanks to the `babel` library.
1010
* This change introduces a new script for managing translations, which may be used as follows:
1111
* Scan for new translations:
12-
* `python -m guidata.utils.translations scan <name> <directory>`
13-
* or `guidata-translations scan <name> <directory>`
12+
* `python -m guidata.utils.translations scan --name <name> --directory <directory>`
13+
* or `guidata-translations scan --name <name> --directory <directory>`
1414
* Compile translations:
15-
* `python -m guidata.utils.translations compile <name> <directory>`
16-
* or `guidata-translations compile <name> <directory>`
15+
* `python -m guidata.utils.translations compile --name <name> --directory <directory>`
16+
* or `guidata-translations compile --name <name> --directory <directory>`
1717
* More options are available, see the help message of the script:
1818
* `python -m guidata.utils.translations --help`
1919
* or `guidata-translations --help`

guidata/utils/translations.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,18 @@
3333
.. code-block:: console
3434
3535
$ # Scan translations
36-
$ python -m guidata.utils.translations scan <name> <directory>
36+
$ python -m guidata.utils.translations scan --name <name> --directory <directory>
3737
$ # Alternatively, you can use the command-line tool:
38-
$ guidata-translations scan <name> <directory>
38+
$ guidata-translations scan --name <name> --directory <directory>
3939
4040
To compile translation files into binary format, use:
4141
4242
.. code-block:: console
4343
4444
$ # Compile translations
45-
$ python -m guidata.utils.translations compile <name> <directory>
45+
$ python -m guidata.utils.translations compile --name <name> --directory <directory>
4646
$ # Alternatively, you can use the command-line tool:
47-
$ guidata-translations compile <name> <directory>
47+
$ guidata-translations compile --name <name> --directory <directory>
4848
"""
4949

5050
from __future__ import annotations

0 commit comments

Comments
 (0)