mirror of
https://github.com/YunoHost-Apps/simplytranslate_ynh.git
synced 2024-09-03 20:16:26 +02:00
diterima
Linter
This commit is contained in:
commit
8d0fc85427
11 changed files with 17 additions and 12 deletions
|
@ -18,7 +18,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
|
|||
|
||||
The frontend for SimplyTranslate engine, which you can use for translation for many translation engine, there are DeepL, Reverso, ICIBA, Google Translate, and LibreTranslate (which instance LibreTranslate fetch from can be configured) engine.
|
||||
|
||||
**Shipped version:** 2023.4.9~ynh1
|
||||
**Shipped version:** 2023.4.9~ynh2
|
||||
|
||||
## Screenshots
|
||||
|
||||
|
|
|
@ -16,9 +16,9 @@ Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po
|
|||
|
||||
## Vue d’ensemble
|
||||
|
||||
The frontend for SimplyTranslate engine, which you can use for translation for many translation engine, there are DeepL, Reverso, ICIBA, Google Translate, and LibreTranslate (which instance LibreTranslate fetch from can be configured) engine.
|
||||
L'interface du moteur SimplyTranslate, que vous pouvez utiliser pour la traduction de nombreux moteurs de traduction, comprend les moteurs DeepL, Reverso, ICIBA, Google Translate et LibreTranslate (dont l'instance de récupération de LibreTranslate peut être configurée).
|
||||
|
||||
**Version incluse :** 2023.4.9~ynh1
|
||||
**Version incluse :** 2023.4.9~ynh2
|
||||
|
||||
## Captures d’écran
|
||||
|
||||
|
|
|
@ -1,13 +1,14 @@
|
|||
#root_path_only location / {
|
||||
#sub_path_only location __PATH__ {
|
||||
|
||||
# Standard nginx configuration
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
||||
proxy_pass http://localhost:__PORT____PATH__;
|
||||
proxy_pass http://127.0.0.1:__PORT____PATH__;
|
||||
|
||||
# Include SSOWAT user panel.
|
||||
include conf.d/yunohost_panel.conf.inc;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[Unit]
|
||||
Description=Small description of the service
|
||||
Description=Simply Translate: translation engine Web interface
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
|
|
|
@ -53,5 +53,5 @@ services = ["__APP__"]
|
|||
ask.en = "API key for LibreTranslate:"
|
||||
ask.id = "Kunci API untuk LibreTranslate:"
|
||||
type = "string"
|
||||
help.en = "If you disable LibreTranslate or your instance didn't need API key, just leave this blank."
|
||||
help.en = "If you disable LibreTranslate or your instance didn't need an API key, just leave this blank."
|
||||
help.id = "Jika LibreTranslate tidak dipilih atau LibreTranslate pilihanmu tidak memerlukan ini, biarkan ini kosong."
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
Antarmuka penerjemahan untuk berbagai mesin penerjemahan, ada DeepL, Reverso, ICIBA, Google Translate, dan LibreTranslate (bisa diubah peladen LibreTranslate mana yang mau dipakai).
|
1
doc/DESCRIPTION_fr.md
Normal file
1
doc/DESCRIPTION_fr.md
Normal file
|
@ -0,0 +1 @@
|
|||
L'interface du moteur SimplyTranslate, que vous pouvez utiliser pour la traduction de nombreux moteurs de traduction, comprend les moteurs DeepL, Reverso, ICIBA, Google Translate et LibreTranslate (dont l'instance de récupération de LibreTranslate peut être configurée).
|
|
@ -2,10 +2,11 @@ packaging_format = 2
|
|||
|
||||
id = "simplytranslate"
|
||||
name = "Simply Translate"
|
||||
description.en = "Web interface for many translation engine: DeepL, Reverso, ICIBA, Google Translate, and LibreTranslate."
|
||||
description.id = "Antarmuka web mesin penerjemahan: DeepL; Reverso; ICIBA; Google Translate; dan LibreTranslate."
|
||||
description.en = "Web interface for many translation engine"
|
||||
description.fr = "Interface Web pour de nombreux moteurs de traduction"
|
||||
description.id = "Antarmuka web mesin penerjemahan"
|
||||
|
||||
version = "2023.4.9~ynh1"
|
||||
version = "2023.4.9~ynh2"
|
||||
|
||||
maintainers = ["the7thNightmare"]
|
||||
|
||||
|
@ -15,7 +16,7 @@ website = "https://simple-web.org/projects/simplytranslate.html"
|
|||
code = "https://codeberg.org/SimpleWeb/SimplyTranslate-Web"
|
||||
|
||||
[integration]
|
||||
yunohost = ">= 11.1.19"
|
||||
yunohost = ">= 11.2"
|
||||
architectures = "all"
|
||||
multi_instance = true
|
||||
ldap = false
|
||||
|
|
|
@ -47,6 +47,7 @@ then
|
|||
|
||||
ynh_replace_string -m "\"$old_st_path/?engine" -r "\"$new_st_path/?engine" -f "$install_dir/simplytranslate/templates/index.html"
|
||||
ynh_replace_string -m "$old_st_path/prefs" -r "$new_st_path/prefs" -f "$install_dir/simplytranslate/templates/index.html"
|
||||
ynh_replace_string -m "$old_st_path/switchlanguages" -r "$new_st_path/switchlanguages" -f "$install_dir/simplytranslate/templates/index.html"
|
||||
ynh_replace_string -m "\"$old_st_path/\"" -r "\"$new_st_path/\"" -f "$install_dir/simplytranslate/templates/prefs.html"
|
||||
ynh_replace_string -m "$old_st_path/prefs" -r "$new_st_path/prefs" -f "$install_dir/simplytranslate/templates/prefs.html"
|
||||
ynh_replace_string -m "$old_st_path/api" -r "$new_st_path/api" -f "$install_dir/simplytranslate/main.py"
|
||||
|
|
|
@ -73,6 +73,7 @@ fi
|
|||
|
||||
ynh_replace_string -m "\"/?engine" -r "\"$st_path/?engine" -f "$install_dir/simplytranslate/templates/index.html"
|
||||
ynh_replace_string -m "/prefs" -r "$st_path/prefs" -f "$install_dir/simplytranslate/templates/index.html"
|
||||
ynh_replace_string -m "/switchlanguages" -r "$st_path/switchlanguages" -f "$install_dir/simplytranslate/templates/index.html"
|
||||
ynh_replace_string -m "\"/\"" -r "\"$st_path/\"" -f "$install_dir/simplytranslate/templates/prefs.html"
|
||||
ynh_replace_string -m "/prefs" -r "$st_path/prefs" -f "$install_dir/simplytranslate/templates/prefs.html"
|
||||
ynh_replace_string -m "/api" -r "$st_path/api" -f "$install_dir/simplytranslate/main.py"
|
||||
|
|
|
@ -60,6 +60,7 @@ fi
|
|||
|
||||
ynh_replace_string -m "\"/?engine" -r "\"$st_path/?engine" -f "$install_dir/simplytranslate/templates/index.html"
|
||||
ynh_replace_string -m "/prefs" -r "$st_path/prefs" -f "$install_dir/simplytranslate/templates/index.html"
|
||||
ynh_replace_string -m "/switchlanguages" -r "$st_path/switchlanguages" -f "$install_dir/simplytranslate/templates/index.html"
|
||||
ynh_replace_string -m "\"/\"" -r "\"$st_path/\"" -f "$install_dir/simplytranslate/templates/prefs.html"
|
||||
ynh_replace_string -m "/prefs" -r "$st_path/prefs" -f "$install_dir/simplytranslate/templates/prefs.html"
|
||||
ynh_replace_string -m "/api" -r "$st_path/api" -f "$install_dir/simplytranslate/main.py"
|
||||
|
|
Loading…
Add table
Reference in a new issue