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

webmail translations

parent f3a316f9
No related branches found
No related tags found
No related merge requests found
File added
......@@ -1238,6 +1238,23 @@ function web_admin_create_app_descriptions {
fi
}
function install_web_admin_webmail_translations {
if [ ! -f "/root/${PROJECT_NAME}/image_build/squirrelmail-translations.tar.gz" ]; then
return
fi
if [ -f "/var/www/${local_hostname}/htdocs/mail/ChangeLog.locales" ]; then
return
fi
cp "/root/${PROJECT_NAME}/image_build/squirrelmail-translations.tar.gz" "$INSTALL_DIR"
cd "$INSTALL_DIR" || return
tar -xzvf squirrelmail-translations.tar.gz
if [ -d "$INSTALL_DIR/squirrelmail.locales" ]; then
mv "$INSTALL_DIR/squirrelmail.locales"/* "/var/www/${local_hostname}/htdocs/mail/"
rm -rf "$INSTALL_DIR/squirrelmail.locales"
rm "$INSTALL_DIR/squirrelmail-translations.tar.gz"
fi
}
function install_web_admin_webmail {
if [ ! -f "/root/${PROJECT_NAME}/image_build/squirrelmail.tar.gz" ]; then
return
......@@ -1595,6 +1612,8 @@ function install_web_admin_webmail {
sed -i "s|$replace_str|$replace_str_new|g" "/var/www/${local_hostname}/htdocs/mail/po/squirrelmail.pot"
sed -i "s|$replace_str|$replace_str_new|g" "/var/www/${local_hostname}/htdocs/mail/src/login.php"
install_web_admin_webmail_translations
replace_str='%s Login'
replace_str_new=''
sed -i "s|$replace_str|$replace_str_new|g" "/var/www/${local_hostname}/htdocs/mail/src/login.php"
......
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