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"