Sfoglia il codice sorgente

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.
master
damencho 5 anni fa
parent
commit
e09ea36055
1 ha cambiato i file con 7 aggiunte e 0 eliminazioni
  1. 7
    0
      debian/rules

+ 7
- 0
debian/rules Vedi File

@@ -17,8 +17,15 @@ override_dh_install: $(LANGUAGES)
17 17
 	dh_install -X/config.js -X/package.json
18 18
 
19 19
 $(LANGUAGES):
20
+	LOCALE=$$(echo $@ | cut -c1-2) ; \
20 21
 	if [ -f $(COUNTRIES_DIR)/$@.json ] ; \
21 22
 	then \
22 23
 		dh_install -pjitsi-meet-web $(COUNTRIES_DIR)/$@.json usr/share/jitsi-meet/lang/; \
23 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 31
 	fi;

Loading…
Annulla
Salva