Skip to content
Snippets Groups Projects
Commit bddf8985 authored by Bob Mottram's avatar Bob Mottram
Browse files

Translate app install notifications

parent aedb17d4
No related branches found
No related tags found
No related merge requests found
......@@ -1228,12 +1228,13 @@ function install_apps_from_webadmin {
if ! /usr/bin/timeout $APP_INSTALL_TIMEOUT_SEC /usr/local/bin/${PROJECT_NAME}-addremove add "${app_name}" > "$webadmin_install_dir/applog.txt"; then
sed -i "/$linestr/d" "$pending_installs"
notification_str="Failed to install. For details see http://$(hostname)/applog.txt"
notification_str="Failed to install. For details see admin/applog.txt"
web_admin_create_add_apps
else
notification_str="Installed successfully"
fi
/usr/local/bin/${PROJECT_NAME}-notification -s "[${PROJECT_NAME}] ${app_name}" -m "${notification_str}"
translated_notification_str=$(web_admin_translate_text "$notification_str")
/usr/local/bin/${PROJECT_NAME}-notification -s "[${PROJECT_NAME}] ${app_name}" -m "${translated_notification_str}"
chown www-data:www-data "$webadmin_install_dir/applog.txt"
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment