i18n: add packaging for swedish language support
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 27 Apr 2014 20:30:59 +0000 (20:30 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 27 Apr 2014 20:30:59 +0000 (20:30 +0000)
i18n/swedish/Makefile [new file with mode: 0644]
i18n/swedish/ipkg/postinst [new file with mode: 0755]
i18n/swedish/root/etc/uci-defaults/luci-i18n-swedish [new file with mode: 0755]

diff --git a/i18n/swedish/Makefile b/i18n/swedish/Makefile
new file mode 100644 (file)
index 0000000..9c13525
--- /dev/null
@@ -0,0 +1,5 @@
+PO = base
+PO_LANG = sv
+
+include ../../build/config.mk
+include ../../build/module.mk
diff --git a/i18n/swedish/ipkg/postinst b/i18n/swedish/ipkg/postinst
new file mode 100755 (executable)
index 0000000..eac6e34
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+[ -n "${IPKG_INSTROOT}" ] || {
+       ( . /etc/uci-defaults/luci-i18n-swedish ) && rm -f /etc/uci-defaults/luci-i18n-swedish
+}
diff --git a/i18n/swedish/root/etc/uci-defaults/luci-i18n-swedish b/i18n/swedish/root/etc/uci-defaults/luci-i18n-swedish
new file mode 100755 (executable)
index 0000000..239405a
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh
+uci batch <<-EOF
+       set luci.languages.sv=Svenska
+        commit luci
+EOF
+