From: Jo-Philipp Wich Date: Sun, 27 Apr 2014 20:30:59 +0000 (+0000) Subject: i18n: add packaging for swedish language support X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=74a091d7fd812fef086105355d2e95fb293cae8c;p=oweals%2Fluci.git i18n: add packaging for swedish language support --- diff --git a/i18n/swedish/Makefile b/i18n/swedish/Makefile new file mode 100644 index 000000000..9c1352554 --- /dev/null +++ b/i18n/swedish/Makefile @@ -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 index 000000000..eac6e3448 --- /dev/null +++ b/i18n/swedish/ipkg/postinst @@ -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 index 000000000..239405a72 --- /dev/null +++ b/i18n/swedish/root/etc/uci-defaults/luci-i18n-swedish @@ -0,0 +1,6 @@ +#!/bin/sh +uci batch <<-EOF + set luci.languages.sv=Svenska + commit luci +EOF +