瀏覽代碼

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,10 +524,22 @@ function install_gnusocial_plugin_sharings {
524 524
 	# Languages
525 525
 	cd /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/local/plugins/Sharings/locale/en/LC_MESSAGES
526 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 531
 	cd /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/local/plugins/Sharings/locale/en_GB/LC_MESSAGES
528 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 537
 	cd /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/local/plugins/Sharings/locale/en_US/LC_MESSAGES
530 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 544
 	chown -R www-data:www-data /var/www/$MICROBLOG_DOMAIN_NAME/htdocs
533 545