i18n: Enable chinese translation, thanks zjhzzyf (#223)
authorManuel Munz <freifunk@somakoma.de>
Thu, 21 Apr 2011 14:17:29 +0000 (14:17 +0000)
committerManuel Munz <freifunk@somakoma.de>
Thu, 21 Apr 2011 14:17:29 +0000 (14:17 +0000)
contrib/package/luci/Makefile
i18n/chinese/Makefile [new file with mode: 0644]
i18n/chinese/ipkg/postinst [new file with mode: 0644]
i18n/chinese/root/etc/uci-defaults/luci-i18n-chinese [new file with mode: 0644]

index 354de1e628fcdf07b73211b92c32a689003d8c4e..04621a6b20f12f402c7bc2d9d75d34c1e4fa3277 100644 (file)
@@ -503,6 +503,7 @@ $(eval $(call translation,french,French (by Florian Fainelli)))
 $(eval $(call translation,italian,Italian (by Matteo Croce)))
 $(eval $(call translation,russian,Russian (by Skryabin Dmitry)))
 $(eval $(call translation,portuguese_brazilian,Portuguese (Brazilian) (by Carlos Cesario)))
+$(eval $(call translation,chinese,chinese (by zjhzzyf)))
 $(eval $(call translation,japanese,Japanese (by Tsukasa Hamano)))
 $(eval $(call translation,greek,Greek (by Vasilis Tsiligiannis)))
 $(eval $(call translation,catalan,Catalan (by Eduard Duran)))
diff --git a/i18n/chinese/Makefile b/i18n/chinese/Makefile
new file mode 100644 (file)
index 0000000..bb1480e
--- /dev/null
@@ -0,0 +1,5 @@
+PO = base
+PO_LANG = zh-cn
+
+include ../../build/config.mk
+include ../../build/module.mk
diff --git a/i18n/chinese/ipkg/postinst b/i18n/chinese/ipkg/postinst
new file mode 100644 (file)
index 0000000..9fbec28
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+[ -n "${IPKG_INSTROOT}" ] || {
+       ( . /etc/uci-defaults/luci-i18n-chinese ) &&    rm -f /etc/uci-defaults/luci-i18n-chinese
+}
diff --git a/i18n/chinese/root/etc/uci-defaults/luci-i18n-chinese b/i18n/chinese/root/etc/uci-defaults/luci-i18n-chinese
new file mode 100644 (file)
index 0000000..aee25e6
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh
+uci batch <<-EOF
+       set luci.languages.zh_cn=chinese
+       commit luci
+EOF