From 1d1145d699a794161f93d5f71019557d0e1b20c7 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 23 Jul 2016 12:48:24 +0100 Subject: [PATCH] Check that sharings plugin translations are created --- src/freedombone-app-gnusocial | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/freedombone-app-gnusocial b/src/freedombone-app-gnusocial index fc84fa84..2fbd8faa 100755 --- a/src/freedombone-app-gnusocial +++ b/src/freedombone-app-gnusocial @@ -524,10 +524,22 @@ function install_gnusocial_plugin_sharings { # Languages cd /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/local/plugins/Sharings/locale/en/LC_MESSAGES msgfmt -o Sharings.mo Sharings.po + if [ ! -f Sharings.po ]; then + echo $'English translations for GNU Social sharings plugin were not created' + exit 84352 + fi cd /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/local/plugins/Sharings/locale/en_GB/LC_MESSAGES msgfmt -o Sharings.mo Sharings.po + if [ ! -f Sharings.po ]; then + echo $'English (GB) translations for GNU Social sharings plugin were not created' + exit 84352 + fi cd /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/local/plugins/Sharings/locale/en_US/LC_MESSAGES msgfmt -o Sharings.mo Sharings.po + if [ ! -f Sharings.po ]; then + echo $'English (US) translations for GNU Social sharings plugin were not created' + exit 84352 + fi chown -R www-data:www-data /var/www/$MICROBLOG_DOMAIN_NAME/htdocs