From 948938ae375ad4b5f799785e15c0233ec101aab2 Mon Sep 17 00:00:00 2001 From: vdbhb59 Date: Sat, 27 Sep 2025 15:38:52 +0530 Subject: [PATCH] Synced --- TRADEMARK.md | 2 +- docs/README.es.md | 1 - libretranslate/app.py | 1 - libretranslate/default_values.py | 5 ----- libretranslate/locales/got/LC_MESSAGES/messages.po | 10 ++++++---- libretranslate/locales/it/LC_MESSAGES/messages.po | 14 +++++++------- libretranslate/main.py | 7 ------- libretranslate/templates/index.html | 11 ----------- 8 files changed, 14 insertions(+), 37 deletions(-) diff --git a/TRADEMARK.md b/TRADEMARK.md index 9e42244..0a730e2 100644 --- a/TRADEMARK.md +++ b/TRADEMARK.md @@ -15,7 +15,7 @@ However, this is not a complete list of our names, logos, and brand features, al If you want to report misuse of an LibreTranslate trademark, please contact us via https://uav4geo.com/contact -## When do I need specific permission to use an LibreTranslate trademark? +## When do I need specific permission to use a LibreTranslate trademark? Noting that LibreTranslate software combined with, or integrated into, any other software program, including but not limited to automation software for offering LibreTranslate as a cloud service or orchestration software for offering LibreTranslate in containers is considered "modified" LibreTranslate software, you may do the following without receiving specific permission from LibreTranslate (or its affiliates): diff --git a/docs/README.es.md b/docs/README.es.md index 77b8588..53eccb9 100644 --- a/docs/README.es.md +++ b/docs/README.es.md @@ -219,7 +219,6 @@ Los argumentos que se pasan al proceso o se configuran mediante variables de ent | --req-limit-storage | URI de almacenamiento para limitar el almacenamiento de datos de solicitudes. Ver [Flask Limiter](https://flask-limiter.readthedocs.io/en/stable/configuration.html) | `memoria://` | LT_REQ_LIMIT_STORAGE | | --req-time-cost | Considera el coste de tiempo (en segundos) para limitar las solicitudes. Si una solicitud tarda 10 segundos y este valor se establece en 5, el coste de la solicitud es 2 o el coste real de la solicitud (el que sea mayor). | `Sin costo de tiempo` | LT_REQ_TIME_COST | | --batch-limit | Establecer el número máximo de textos a traducir en una solicitud por lotes | `Sin Limite` | LT_BATCH_LIMIT | -| --ga-id | Habilite Google Analytics en la página del cliente API proporcionando una identificación | `Vacío (sin seguimiento)` | LT_GA_ID | | --frontend-language-source | Establecer el idioma predeterminado del frontend - fuente | `auto` | LT_FRONTEND_LANGUAGE_SOURCE | | --frontend-language-target | Establecer el idioma predeterminado del frontend - objetivo | `locale` (coincide con la configuración regional del sitio) | LT_FRONTEND_LANGUAGE_TARGET | | --frontend-timeout | Establecer el tiempo de espera de traducción del frontend | `500` | LT_FRONTEND_TIMEOUT | diff --git a/libretranslate/app.py b/libretranslate/app.py index e0381e5..3e47327 100644 --- a/libretranslate/app.py +++ b/libretranslate/app.py @@ -435,7 +435,6 @@ def create_app(args): resp = make_response(render_template( "index.html", - gaId=args.ga_id, frontendTimeout=args.frontend_timeout, api_keys=args.api_keys, get_api_key_link=args.get_api_key_link, diff --git a/libretranslate/default_values.py b/libretranslate/default_values.py index 99cf329..1b1d72d 100644 --- a/libretranslate/default_values.py +++ b/libretranslate/default_values.py @@ -91,11 +91,6 @@ _default_options_objects = [ 'default_value': -1, 'value_type': 'int' }, - { - 'name': 'GA_ID', - 'default_value': None, - 'value_type': 'str' - }, { 'name': 'DEBUG', 'default_value': False, diff --git a/libretranslate/locales/got/LC_MESSAGES/messages.po b/libretranslate/locales/got/LC_MESSAGES/messages.po index 0f16cc7..f8fb46d 100644 --- a/libretranslate/locales/got/LC_MESSAGES/messages.po +++ b/libretranslate/locales/got/LC_MESSAGES/messages.po @@ -9,14 +9,16 @@ msgstr "" "Project-Id-Version: LibreTranslate 1.7.1\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "POT-Creation-Date: 2025-04-18 14:43-0400\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: Automatically generated\n" -"Language-Team: none\n" +"PO-Revision-Date: 2025-09-08 16:01+0000\n" +"Last-Translator: Roel v \n" +"Language-Team: Gothic \n" "Language: got\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 5.14-dev\n" "Generated-By: Babel 2.12.1\n" #: libretranslate/app.py:93 @@ -99,7 +101,7 @@ msgstr "" #: libretranslate/app.py:787 #, python-format msgid "Cannot translate text: %(text)s" -msgstr "" +msgstr "𐌽𐌹 𐌼𐌰𐌲 𐌱𐍉𐌺𐍉𐍃 𐍃𐌺𐌴𐌹𐍂𐌾𐌰𐌽: %(text)s" #: libretranslate/app.py:874 libretranslate/app.py:943 msgid "Files translation are disabled on this server." diff --git a/libretranslate/locales/it/LC_MESSAGES/messages.po b/libretranslate/locales/it/LC_MESSAGES/messages.po index 196c72b..41d9263 100644 --- a/libretranslate/locales/it/LC_MESSAGES/messages.po +++ b/libretranslate/locales/it/LC_MESSAGES/messages.po @@ -9,15 +9,16 @@ msgstr "" "Project-Id-Version: LibreTranslate 1.3.9\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "POT-Creation-Date: 2025-04-18 14:43-0400\n" -"PO-Revision-Date: 2025-03-01 18:02+0000\n" -"Last-Translator: Piero Toffanin \n" +"PO-Revision-Date: 2025-09-22 21:01+0000\n" +"Last-Translator: euroimmorale \n" +"Language-Team: Italian \n" "Language: it\n" -"Language-Team: Italian " -"\n" -"Plural-Forms: nplurals=2; plural=n != 1;\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 5.14-dev\n" "Generated-By: Babel 2.12.1\n" #: libretranslate/app.py:93 @@ -260,7 +261,7 @@ msgstr "Portoghese" #: libretranslate/locales/.langs.py:34 msgid "Portuguese (Brazil)" -msgstr "" +msgstr "Portoghese (Brasile)" #: libretranslate/locales/.langs.py:35 msgid "Romanian" @@ -773,4 +774,3 @@ msgstr "Contributori di %(libretranslate)s" #~ msgid "Galician" #~ msgstr "Galiziano" - diff --git a/libretranslate/main.py b/libretranslate/main.py index 2158198..f4384cd 100644 --- a/libretranslate/main.py +++ b/libretranslate/main.py @@ -79,13 +79,6 @@ def get_args(): metavar="", help="Set maximum number of texts to translate in a batch request (%(default)s)", ) - parser.add_argument( - "--ga-id", - type=str, - default=DEFARGS['GA_ID'], - metavar="", - help="Enable Google Analytics on the API client page by providing an ID (%(default)s)", - ) parser.add_argument( "--debug", default=DEFARGS['DEBUG'], action="store_true", help="Enable debug environment" ) diff --git a/libretranslate/templates/index.html b/libretranslate/templates/index.html index e9630ca..199ba55 100644 --- a/libretranslate/templates/index.html +++ b/libretranslate/templates/index.html @@ -35,17 +35,6 @@ - {% if gaId %} - - - - {% endif %} -