summaryrefslogtreecommitdiffhomepage
path: root/i18n
diff options
context:
space:
mode:
Diffstat (limited to 'i18n')
-rw-r--r--i18n/chinese/Makefile5
-rw-r--r--i18n/chinese/ipkg/postinst4
-rw-r--r--i18n/chinese/root/etc/uci-defaults/luci-i18n-chinese5
3 files changed, 14 insertions, 0 deletions
diff --git a/i18n/chinese/Makefile b/i18n/chinese/Makefile
new file mode 100644
index 0000000000..bb1480e979
--- /dev/null
+++ b/i18n/chinese/Makefile
@@ -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
index 0000000000..9fbec28ca1
--- /dev/null
+++ b/i18n/chinese/ipkg/postinst
@@ -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
index 0000000000..aee25e6f0f
--- /dev/null
+++ b/i18n/chinese/root/etc/uci-defaults/luci-i18n-chinese
@@ -0,0 +1,5 @@
+#!/bin/sh
+uci batch <<-EOF
+ set luci.languages.zh_cn=chinese
+ commit luci
+EOF