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

Check that sharings plugin translations are created

parent 6f7e48ad
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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