[eos-bash-shared] added translation support for the new way (bash-app-translate)

This commit is contained in:
manuel
2026-09-22 11:47:49 +03:00
parent 6e86bcc00b
commit ccf0e00b13
+6 -2
View File
@@ -571,7 +571,6 @@ eos_yad_RunCmdTermBashOpt() { # like eos_yad_RunCmdTermBash, but supports certa
case "$term" in
/usr/bin/deepin-terminal | deepin-terminal) ;;
*)
_init_translations
case "$waitopt" in
--no-enter-wait | no-enter-wait) ;;
sleep=*)
@@ -579,7 +578,12 @@ eos_yad_RunCmdTermBashOpt() { # like eos_yad_RunCmdTermBash, but supports certa
echo "eos-sleep-counter $waittime" >> "$tmpfile"
;;
*)
echo "read -p '$(ltr updt_press_enter): '" >> "$tmpfile"
if [ -x /bin/get-legacy-id-lang-translation ] ; then
echo "read -p '$(get-legacy-id-lang-translation updt_press_enter): '" >> "$tmpfile"
else
_init_translations ""
echo "read -p '$(ltr updt_press_enter): '" >> "$tmpfile"
fi
;;
esac
;;