diff --git a/README.md b/README.md index ae0b18f..792d6d5 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/README_fr.md b/README_fr.md index 3f89398..6a6c868 100644 --- a/README_fr.md +++ b/README_fr.md @@ -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 diff --git a/conf/nginx.conf b/conf/nginx.conf index f884327..3d920d6 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -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; diff --git a/conf/systemd.service b/conf/systemd.service index 695dca6..5580662 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -1,5 +1,5 @@ [Unit] -Description=Small description of the service +Description=Simply Translate: translation engine Web interface After=network.target [Service] diff --git a/config_panel.toml b/config_panel.toml index 187fd34..69a2e94 100644 --- a/config_panel.toml +++ b/config_panel.toml @@ -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." diff --git a/doc/DESCRIPTION.id.md b/doc/DESCRIPTION.id.md deleted file mode 100644 index af6ef4f..0000000 --- a/doc/DESCRIPTION.id.md +++ /dev/null @@ -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). diff --git a/doc/DESCRIPTION_fr.md b/doc/DESCRIPTION_fr.md new file mode 100644 index 0000000..4428655 --- /dev/null +++ b/doc/DESCRIPTION_fr.md @@ -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). \ No newline at end of file diff --git a/manifest.toml b/manifest.toml index efdc3ef..99a94a4 100644 --- a/manifest.toml +++ b/manifest.toml @@ -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 diff --git a/scripts/change_url b/scripts/change_url index 2ba57d8..7e622b5 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -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" diff --git a/scripts/install b/scripts/install index 3a8f30d..250687c 100755 --- a/scripts/install +++ b/scripts/install @@ -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" diff --git a/scripts/upgrade b/scripts/upgrade index 3c53376..590c396 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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"