forked from CastroFidel/PortWINE
gettext is 2-3 times faster than eval_gettext
This commit is contained in:
@ -53,9 +53,9 @@ if check_flatpak \
|
||||
&& [[ -f "${HOME}/.local/share/applications/PortProton.desktop" ]] ; then
|
||||
PORT_WINE_OLD_PATH="$(grep "Exec=" "${HOME}/.local/share/applications/PortProton.desktop" | awk -F'env ' '{print $2}' | awk -F'/data/scripts/' '{print $1}')"
|
||||
if [[ -d "$PORT_WINE_OLD_PATH" ]] \
|
||||
&& yad_question "$(eval_gettext "PortProton installed by script has been detected. Do you want to transfer all the data from it to the new flatpak version of PortProton?")"
|
||||
&& yad_question "$(gettext "PortProton installed by script has been detected. Do you want to transfer all the data from it to the new flatpak version of PortProton?")"
|
||||
then
|
||||
pw_start_progress_bar_block "$(eval_gettext "Please wait...")"
|
||||
pw_start_progress_bar_block "$(gettext "Please wait...")"
|
||||
|
||||
try_remove_file "${HOME}/.local/share/applications/PortProton.desktop"
|
||||
try_remove_file "${PORT_WINE_OLD_PATH}"/PortProton.desktop
|
||||
@ -100,7 +100,7 @@ if check_flatpak \
|
||||
done
|
||||
fi
|
||||
pw_stop_progress_bar
|
||||
yad_info "$(eval_gettext "PortProton has been moved to flatpak. You can now remove the old directory:") ${PORT_WINE_OLD_PATH}"
|
||||
yad_info "$(gettext "PortProton has been moved to flatpak. You can now remove the old directory:") ${PORT_WINE_OLD_PATH}"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user