diff options
author | Manuel Munz <freifunk@somakoma.de> | 2011-04-21 14:17:29 +0000 |
---|---|---|
committer | Manuel Munz <freifunk@somakoma.de> | 2011-04-21 14:17:29 +0000 |
commit | b64c942d31070b79c1a892fedb3275fb3a4aa935 (patch) | |
tree | 6cef9fbc1d5aac43f9efc4032fccde1e028d2105 | |
parent | 2405dd85f4fdf3fe8c7f33fdc3dfbb6aa56965ae (diff) |
i18n: Enable chinese translation, thanks zjhzzyf (#223)
-rw-r--r-- | contrib/package/luci/Makefile | 1 | ||||
-rw-r--r-- | i18n/chinese/Makefile | 5 | ||||
-rw-r--r-- | i18n/chinese/ipkg/postinst | 4 | ||||
-rw-r--r-- | i18n/chinese/root/etc/uci-defaults/luci-i18n-chinese | 5 |
4 files changed, 15 insertions, 0 deletions
diff --git a/contrib/package/luci/Makefile b/contrib/package/luci/Makefile index 354de1e62..04621a6b2 100644 --- a/contrib/package/luci/Makefile +++ b/contrib/package/luci/Makefile @@ -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 index 000000000..bb1480e97 --- /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 000000000..9fbec28ca --- /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 000000000..aee25e6f0 --- /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 |