i18n, contrib: package ukrainian language support
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 30 Nov 2011 15:10:55 +0000 (15:10 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 30 Nov 2011 15:10:55 +0000 (15:10 +0000)
contrib/package/luci/Makefile
i18n/ukrainian/Makefile [new file with mode: 0644]
i18n/ukrainian/ipkg/postinst [new file with mode: 0755]
i18n/ukrainian/root/etc/uci-defaults/luci-i18n-ukrainian [new file with mode: 0755]

index 7015f828c070f75f68899af31d689d2f5110b46b..1339750342ee5f45670c1237273088d981590a33 100644 (file)
@@ -557,6 +557,7 @@ $(eval $(call translation,malay,Malay (by Teow Wai Chet)))
 $(eval $(call translation,norwegian,Norwegian (by Lars Hardy)))
 $(eval $(call translation,hebrew,Hebrew))
 $(eval $(call translation,romanian,Romanian))
+$(eval $(call translation,ukrainian,Ukrainian))
 
 
 ### Collections ###
diff --git a/i18n/ukrainian/Makefile b/i18n/ukrainian/Makefile
new file mode 100644 (file)
index 0000000..3252b00
--- /dev/null
@@ -0,0 +1,5 @@
+PO = base
+PO_LANG = uk
+
+include ../../build/config.mk
+include ../../build/module.mk
diff --git a/i18n/ukrainian/ipkg/postinst b/i18n/ukrainian/ipkg/postinst
new file mode 100755 (executable)
index 0000000..ba9a7af
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+[ -n "${IPKG_INSTROOT}" ] || {
+       ( . /etc/uci-defaults/luci-i18n-ukrainian ) &&  rm -f /etc/uci-defaults/luci-i18n-ukrainian
+}
diff --git a/i18n/ukrainian/root/etc/uci-defaults/luci-i18n-ukrainian b/i18n/ukrainian/root/etc/uci-defaults/luci-i18n-ukrainian
new file mode 100755 (executable)
index 0000000..48cfc5e
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh
+uci batch <<-EOF
+       set luci.languages.en=English
+        commit luci
+EOF
+