summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--contrib/package/luci/Makefile15
-rwxr-xr-xi18n/norwegian/etc/uci-defaults/luci-i18n-norwegian5
-rwxr-xr-xi18n/norwegian/ipkg/postinst4
3 files changed, 24 insertions, 0 deletions
diff --git a/contrib/package/luci/Makefile b/contrib/package/luci/Makefile
index 4099e5148..80d023534 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 000000000..cb34c29b9
--- /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 000000000..0b6c62d4f
--- /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
+}