瀏覽代碼

Check that sharings plugin translations are created

Bob Mottram 9 年之前
父節點
當前提交
1d1145d699
共有 1 個檔案被更改,包括 12 行新增0 行删除
  1. 12
    0
      src/freedombone-app-gnusocial

+ 12
- 0
src/freedombone-app-gnusocial 查看文件

524
 	# Languages
524
 	# Languages
525
 	cd /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/local/plugins/Sharings/locale/en/LC_MESSAGES
525
 	cd /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/local/plugins/Sharings/locale/en/LC_MESSAGES
526
 	msgfmt -o Sharings.mo Sharings.po
526
 	msgfmt -o Sharings.mo Sharings.po
527
+	if [ ! -f Sharings.po ]; then
528
+		echo $'English translations for GNU Social sharings plugin were not created'
529
+		exit 84352
530
+	fi
527
 	cd /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/local/plugins/Sharings/locale/en_GB/LC_MESSAGES
531
 	cd /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/local/plugins/Sharings/locale/en_GB/LC_MESSAGES
528
 	msgfmt -o Sharings.mo Sharings.po
532
 	msgfmt -o Sharings.mo Sharings.po
533
+	if [ ! -f Sharings.po ]; then
534
+		echo $'English (GB) translations for GNU Social sharings plugin were not created'
535
+		exit 84352
536
+	fi
529
 	cd /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/local/plugins/Sharings/locale/en_US/LC_MESSAGES
537
 	cd /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/local/plugins/Sharings/locale/en_US/LC_MESSAGES
530
 	msgfmt -o Sharings.mo Sharings.po
538
 	msgfmt -o Sharings.mo Sharings.po
539
+	if [ ! -f Sharings.po ]; then
540
+		echo $'English (US) translations for GNU Social sharings plugin were not created'
541
+		exit 84352
542
+	fi
531
 
543
 
532
 	chown -R www-data:www-data /var/www/$MICROBLOG_DOMAIN_NAME/htdocs
544
 	chown -R www-data:www-data /var/www/$MICROBLOG_DOMAIN_NAME/htdocs
533
 
545