i18n: add language package for vietnamese

This commit is contained in:
Jo-Philipp Wich 2009-08-16 05:11:27 +00:00
parent 920adf0134
commit 59e5f62542
4 changed files with 29 additions and 0 deletions

View file

@ -941,6 +941,16 @@ define Package/luci-i18n-spanish/install
endef
define Package/luci-i18n-vietnamese
$(call Package/luci/i18ntemplate)
TITLE:=Vietnamese (by Hong Phuc Dang)
endef
define Package/luci-i18n-vietnamese/install
$(call Package/luci/install/template,$(1),i18n/vietnamese)
endef
### Compile ###
ifneq ($(CONFIG_PACKAGE_luci-core),)
PKG_SELECTED_MODULES+=libs/core
@ -1159,6 +1169,9 @@ endif
ifneq ($(CONFIG_PACKAGE_luci-i18n-spanish),)
PKG_SELECTED_MODULES+=i18n/spanish
endif
ifneq ($(CONFIG_PACKAGE_luci-i18n-vietnamese),)
PKG_SELECTED_MODULES+=i18n/vietnamese
endif
MAKE_FLAGS += \
@ -1245,3 +1258,4 @@ $(eval $(call BuildPackage,luci-i18n-greek))
$(eval $(call BuildPackage,luci-i18n-catalan))
$(eval $(call BuildPackage,luci-i18n-portuguese))
$(eval $(call BuildPackage,luci-i18n-spanish))
$(eval $(call BuildPackage,luci-i18n-vietnamese))

5
i18n/vietnamese/Makefile Normal file
View file

@ -0,0 +1,5 @@
PO = default cbi admin-core sysauth wifi
PO_LANG = vi
include ../../build/config.mk
include ../../build/module.mk

4
i18n/vietnamese/ipkg/postinst Executable file
View file

@ -0,0 +1,4 @@
#!/bin/sh
[ -n "${IPKG_INSTROOT}" ] || {
( . /etc/uci-defaults/luci-i18n-vietnamese ) && rm -f /etc/uci-defaults/luci-i18n-vietnamese
}

View file

@ -0,0 +1,6 @@
#!/bin/sh
uci batch <<-EOF
set luci.languages.vi=Vietnamese
commit luci
EOF