update references to scripts

This commit is contained in:
dingedi 2023-01-12 14:23:43 +01:00
parent c18a8d4855
commit 75869e30ab
No known key found for this signature in database
GPG key ID: EE23A12D271A3CED
2 changed files with 6 additions and 6 deletions

View file

@ -26,7 +26,7 @@ jobs:
python -m pip install --upgrade pip
pip install pytest flake8
pip install .
python compile_locales.py
python scripts/compile_locales.py
- name: Check code style with flake8 (lint)
run: |
@ -61,6 +61,6 @@ jobs:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python compile_locales.py
python scripts/compile_locales.py
python setup.py sdist bdist_wheel
twine upload dist/*

View file

@ -130,8 +130,8 @@ Then open a web browser to http://localhost:5000
### Run with Docker
Linux/MacOS: `./run.sh [args]`
Windows: `run.bat [args]`
Linux/MacOS: `./scripts/run.sh [args]`
Windows: `scripts/run.bat [args]`
Then open a web browser to http://localhost:5000
@ -218,7 +218,7 @@ If you're using docker:
Start the program with the `--update-models` argument. For example: `libretranslate --update-models` or `./run.sh --update-models`.
Alternatively you can also run the `install_models.py` script.
Alternatively you can also run the `scripts/install_models.py` script.
## Run with WSGI and Gunicorn
@ -384,7 +384,7 @@ First you need to collect data, for example from [Opus](http://opus.nlpl.eu/), t
## Localization
The LibreTranslate Web UI is available in all the languages for which LibreTranslate can translate to. It can also (roughly) [translate itself!](https://github.com/LibreTranslate/LibreTranslate/blob/main/update_locales.py) Some languages might not appear in the UI since they haven't been reviewed by a human yet. You can enable all languages by turning on `--debug` mode.
The LibreTranslate Web UI is available in all the languages for which LibreTranslate can translate to. It can also (roughly) [translate itself!](https://github.com/LibreTranslate/LibreTranslate/blob/main/scripts/update_locales.py) Some languages might not appear in the UI since they haven't been reviewed by a human yet. You can enable all languages by turning on `--debug` mode.
To help improve or review the UI translations:
- Go to https://hosted.weblate.org/projects/libretranslate/app/#translations. All changes are automatically pushed to this repository.