diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-10-14 00:44:59 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-10-14 00:44:59 +0000 |
commit | 4f8f03bc4f59f558430a7a4347de20464fe1668d (patch) | |
tree | 2c4130b3687f8f8d1e8e619427a0342298f1067a | |
parent | 15c019a4c89d7a1ed8e1ffa16d33651a8c02a0f7 (diff) |
i18n: add norwegian package
-rw-r--r-- | contrib/package/luci/Makefile | 15 | ||||
-rwxr-xr-x | i18n/norwegian/etc/uci-defaults/luci-i18n-norwegian | 5 | ||||
-rwxr-xr-x | i18n/norwegian/ipkg/postinst | 4 |
3 files changed, 24 insertions, 0 deletions
diff --git a/contrib/package/luci/Makefile b/contrib/package/luci/Makefile index 4099e5148d..80d0235342 100644 --- a/contrib/package/luci/Makefile +++ b/contrib/package/luci/Makefile @@ -976,6 +976,7 @@ define Package/luci-i18n-vietnamese/install $(call Package/luci/install/template,$(1),i18n/vietnamese) endef + define Package/luci-i18n-malay $(call Package/luci/i18ntemplate) TITLE:=Malay (by Teow Wai Chet) @@ -986,6 +987,16 @@ define Package/luci-i18n-malay/install endef +define Package/luci-i18n-norwegian + $(call Package/luci/i18ntemplate) + TITLE:=Norwegian (by Lars Hardy) +endef + +define Package/luci-i18n-norwegian/install + $(call Package/luci/install/template,$(1),i18n/norwegian) +endef + + ### Collections ### define Package/luci $(call Package/luci/collectiontemplate) @@ -1257,6 +1268,9 @@ endif ifneq ($(CONFIG_PACKAGE_luci-i18n-malay),) PKG_SELECTED_MODULES+=i18n/malay endif +ifneq ($(CONFIG_PACKAGE_luci-i18n-norwegian),) + PKG_SELECTED_MODULES+=i18n/norwegian +endif MAKE_FLAGS += \ @@ -1345,6 +1359,7 @@ $(eval $(call BuildPackage,luci-i18n-portuguese)) $(eval $(call BuildPackage,luci-i18n-spanish)) $(eval $(call BuildPackage,luci-i18n-vietnamese)) $(eval $(call BuildPackage,luci-i18n-malay)) +$(eval $(call BuildPackage,luci-i18n-norwegian)) $(eval $(call BuildPackage,luci)) $(eval $(call BuildPackage,luci-ssl)) diff --git a/i18n/norwegian/etc/uci-defaults/luci-i18n-norwegian b/i18n/norwegian/etc/uci-defaults/luci-i18n-norwegian new file mode 100755 index 0000000000..cb34c29b95 --- /dev/null +++ b/i18n/norwegian/etc/uci-defaults/luci-i18n-norwegian @@ -0,0 +1,5 @@ +#!/bin/sh +uci batch <<-EOF + set luci.languages.no=Norwegian + commit luci +EOF diff --git a/i18n/norwegian/ipkg/postinst b/i18n/norwegian/ipkg/postinst new file mode 100755 index 0000000000..0b6c62d4f8 --- /dev/null +++ b/i18n/norwegian/ipkg/postinst @@ -0,0 +1,4 @@ +#!/bin/sh +[ -n "${IPKG_INSTROOT}" ] || { + ( . /etc/uci-defaults/luci-i18n-norwegian ) && rm -f /etc/uci-defaults/luci-i18n-norwegian +} |