From 4deb48622868cfbf6b7d9a8f710df16825aec664 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Wed, 23 Jul 2008 11:13:33 +0000 Subject: i18n: Added dynamic registration for translations --- i18n/french/ipkg/postinst | 4 ++++ i18n/french/root/etc/uci-defaults/luci-i18n-french | 6 ++++++ 2 files changed, 10 insertions(+) create mode 100755 i18n/french/ipkg/postinst create mode 100755 i18n/french/root/etc/uci-defaults/luci-i18n-french (limited to 'i18n/french') diff --git a/i18n/french/ipkg/postinst b/i18n/french/ipkg/postinst new file mode 100755 index 000000000..e220e4dca --- /dev/null +++ b/i18n/french/ipkg/postinst @@ -0,0 +1,4 @@ +#!/bin/sh +[ -n "${IPKG_INSTROOT}" ] || { + ( . /etc/uci-defaults/luci-i18n-french ) && rm -f /etc/uci-defaults/luci-i18n-french +} diff --git a/i18n/french/root/etc/uci-defaults/luci-i18n-french b/i18n/french/root/etc/uci-defaults/luci-i18n-french new file mode 100755 index 000000000..3a6f8c200 --- /dev/null +++ b/i18n/french/root/etc/uci-defaults/luci-i18n-french @@ -0,0 +1,6 @@ +#!/bin/sh +uci batch <<-EOF + set luci.languages.fr=Français + commit luci +EOF + -- cgit v1.2.3