From 75869e30ab35ee928381af8313bfdaed6d153c13 Mon Sep 17 00:00:00 2001 From: dingedi Date: Thu, 12 Jan 2023 14:23:43 +0100 Subject: [PATCH] update references to scripts --- .github/workflows/publish-package.yml | 4 ++-- README.md | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish-package.yml b/.github/workflows/publish-package.yml index f9eb6a1..f4373e3 100644 --- a/.github/workflows/publish-package.yml +++ b/.github/workflows/publish-package.yml @@ -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/* diff --git a/README.md b/README.md index a354594..25d6ba1 100644 --- a/README.md +++ b/README.md @@ -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.