From b4efb340b920d13b2ecc40a2dba483557fc1ce93 Mon Sep 17 00:00:00 2001 From: Neko Nekowazarashi Date: Thu, 24 Aug 2023 23:41:29 +0700 Subject: [PATCH] ubah kesalahan sub-jalur --- config_panel.toml | 2 +- scripts/change_url | 1 + scripts/install | 1 + scripts/upgrade | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) 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/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"