Check that sharings plugin translations are created

This commit is contained in:
Bob Mottram 2016-07-23 12:48:24 +01:00
parent 6f7e48ad2f
commit 1d1145d699
1 changed files with 12 additions and 0 deletions

View File

@ -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