i18n: package polish translations
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 27 Aug 2012 12:41:50 +0000 (12:41 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 27 Aug 2012 12:41:50 +0000 (12:41 +0000)
contrib/package/luci/Makefile
i18n/polish/Makefile [new file with mode: 0644]
i18n/polish/ipkg/postinst [new file with mode: 0755]
i18n/polish/root/etc/uci-defaults/luci-i18n-polish [new file with mode: 0755]

index 9a6124ff2d63ee591befcb150de88b71ca9fc5ea..7d0f6ce5096e03947bd81d6e5b6feb1f0ff30c0e 100644 (file)
@@ -562,6 +562,7 @@ $(eval $(call translation,hebrew,Hebrew))
 $(eval $(call translation,romanian,Romanian))
 $(eval $(call translation,ukrainian,Ukrainian))
 $(eval $(call translation,hungarian,Hungarian))
+$(eval $(call translation,polish,Polish))
 
 
 ### Collections ###
diff --git a/i18n/polish/Makefile b/i18n/polish/Makefile
new file mode 100644 (file)
index 0000000..cdf2621
--- /dev/null
@@ -0,0 +1,5 @@
+PO = base
+PO_LANG = pl
+
+include ../../build/config.mk
+include ../../build/module.mk
diff --git a/i18n/polish/ipkg/postinst b/i18n/polish/ipkg/postinst
new file mode 100755 (executable)
index 0000000..c562629
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+[ -n "${IPKG_INSTROOT}" ] || {
+       ( . /etc/uci-defaults/luci-i18n-polish ) && rm -f /etc/uci-defaults/luci-i18n-polish
+}
diff --git a/i18n/polish/root/etc/uci-defaults/luci-i18n-polish b/i18n/polish/root/etc/uci-defaults/luci-i18n-polish
new file mode 100755 (executable)
index 0000000..21dc602
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh
+uci batch <<-EOF
+       set luci.languages.pl=JÄ™zyk polski
+        commit luci
+EOF