浏览代码

Maps available locales for countries to the doubled languages.

This maps the tow letter languages as enGB to the country file for en.
Copies countries-en.json as countries-enGB.json.
j8
damencho 6 年前
父节点
当前提交
e09ea36055
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7
    0
      debian/rules

+ 7
- 0
debian/rules 查看文件

17
 	dh_install -X/config.js -X/package.json
17
 	dh_install -X/config.js -X/package.json
18
 
18
 
19
 $(LANGUAGES):
19
 $(LANGUAGES):
20
+	LOCALE=$$(echo $@ | cut -c1-2) ; \
20
 	if [ -f $(COUNTRIES_DIR)/$@.json ] ; \
21
 	if [ -f $(COUNTRIES_DIR)/$@.json ] ; \
21
 	then \
22
 	then \
22
 		dh_install -pjitsi-meet-web $(COUNTRIES_DIR)/$@.json usr/share/jitsi-meet/lang/; \
23
 		dh_install -pjitsi-meet-web $(COUNTRIES_DIR)/$@.json usr/share/jitsi-meet/lang/; \
23
 		mv debian/jitsi-meet-web/usr/share/jitsi-meet/lang/$@.json debian/jitsi-meet-web/usr/share/jitsi-meet/lang/countries-$@.json; \
24
 		mv debian/jitsi-meet-web/usr/share/jitsi-meet/lang/$@.json debian/jitsi-meet-web/usr/share/jitsi-meet/lang/countries-$@.json; \
25
+	else \
26
+		if [ -f $(COUNTRIES_DIR)/$$LOCALE.json ] ; \
27
+		then \
28
+			dh_install -pjitsi-meet-web $(COUNTRIES_DIR)/$$LOCALE.json usr/share/jitsi-meet/lang/; \
29
+			mv debian/jitsi-meet-web/usr/share/jitsi-meet/lang/$$LOCALE.json debian/jitsi-meet-web/usr/share/jitsi-meet/lang/countries-$@.json; \
30
+		fi; \
24
 	fi;
31
 	fi;

正在加载...
取消
保存