From 59e5f62542bbbb33b5b3044bcbb8a116e49dfb29 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 16 Aug 2009 05:11:27 +0000 Subject: [PATCH] i18n: add language package for vietnamese --- contrib/package/luci/Makefile | 14 ++++++++++++++ i18n/vietnamese/Makefile | 5 +++++ i18n/vietnamese/ipkg/postinst | 4 ++++ .../root/etc/uci-defaults/luci-i18n-vietnamese | 6 ++++++ 4 files changed, 29 insertions(+) create mode 100644 i18n/vietnamese/Makefile create mode 100755 i18n/vietnamese/ipkg/postinst create mode 100755 i18n/vietnamese/root/etc/uci-defaults/luci-i18n-vietnamese diff --git a/contrib/package/luci/Makefile b/contrib/package/luci/Makefile index 1d0031496..9b05557df 100644 --- a/contrib/package/luci/Makefile +++ b/contrib/package/luci/Makefile @@ -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)) diff --git a/i18n/vietnamese/Makefile b/i18n/vietnamese/Makefile new file mode 100644 index 000000000..925ec5de4 --- /dev/null +++ b/i18n/vietnamese/Makefile @@ -0,0 +1,5 @@ +PO = default cbi admin-core sysauth wifi +PO_LANG = vi + +include ../../build/config.mk +include ../../build/module.mk diff --git a/i18n/vietnamese/ipkg/postinst b/i18n/vietnamese/ipkg/postinst new file mode 100755 index 000000000..cda03df71 --- /dev/null +++ b/i18n/vietnamese/ipkg/postinst @@ -0,0 +1,4 @@ +#!/bin/sh +[ -n "${IPKG_INSTROOT}" ] || { + ( . /etc/uci-defaults/luci-i18n-vietnamese ) && rm -f /etc/uci-defaults/luci-i18n-vietnamese +} diff --git a/i18n/vietnamese/root/etc/uci-defaults/luci-i18n-vietnamese b/i18n/vietnamese/root/etc/uci-defaults/luci-i18n-vietnamese new file mode 100755 index 000000000..8ebb36617 --- /dev/null +++ b/i18n/vietnamese/root/etc/uci-defaults/luci-i18n-vietnamese @@ -0,0 +1,6 @@ +#!/bin/sh +uci batch <<-EOF + set luci.languages.vi=Vietnamese + commit luci +EOF + -- 2.25.1