i18n: add packaging for swedish language support

This commit is contained in:
Jo-Philipp Wich 2014-04-27 20:30:59 +00:00
parent ce3c1ba7af
commit 74a091d7fd
3 changed files with 15 additions and 0 deletions

5
i18n/swedish/Makefile Normal file
View file

@ -0,0 +1,5 @@
PO = base
PO_LANG = sv
include ../../build/config.mk
include ../../build/module.mk

4
i18n/swedish/ipkg/postinst Executable file
View file

@ -0,0 +1,4 @@
#!/bin/sh
[ -n "${IPKG_INSTROOT}" ] || {
( . /etc/uci-defaults/luci-i18n-swedish ) && rm -f /etc/uci-defaults/luci-i18n-swedish
}

View file

@ -0,0 +1,6 @@
#!/bin/sh
uci batch <<-EOF
set luci.languages.sv=Svenska
commit luci
EOF