add language packages for portuguese and catalan
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 27 May 2009 08:35:37 +0000 (08:35 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 27 May 2009 08:35:37 +0000 (08:35 +0000)
contrib/package/luci/Makefile
i18n/catalan/Makefile [new file with mode: 0644]
i18n/catalan/ipkg/postinst [new file with mode: 0755]
i18n/catalan/root/etc/uci-defaults/luci-i18n-catalan [new file with mode: 0755]
i18n/portuguese/Makefile [new file with mode: 0644]
i18n/portuguese/ipkg/postinst [new file with mode: 0755]
i18n/portuguese/root/etc/uci-defaults/luci-i18n-portuguese [new file with mode: 0755]

index 49c14c6e51f7fcac8f0bf846d539b40eec3d3956..2e7e7a567b32da8e5587d49bdb75cb4d2c03ffe2 100644 (file)
@@ -831,6 +831,27 @@ define Package/luci-i18n-greek/install
        $(call Package/luci/install/template,$(1),i18n/greek)
 endef
 
+
+define Package/luci-i18n-catalan
+  $(call Package/luci/i18ntemplate)
+  TITLE:=Catalan (by Eduard Duran)
+endef
+
+define Package/luci-i18n-catalan/install
+       $(call Package/luci/install/template,$(1),i18n/catalan)
+endef
+
+
+define Package/luci-i18n-portuguese
+  $(call Package/luci/i18ntemplate)
+  TITLE:=Portuguese (by Jose Monteiro)
+endef
+
+define Package/luci-i18n-portuguese/install
+       $(call Package/luci/install/template,$(1),i18n/portuguese)
+endef
+
+
 ### Compile ###
 ifneq ($(CONFIG_PACKAGE_luci-core),)
        PKG_SELECTED_MODULES+=libs/core
@@ -1023,6 +1044,12 @@ endif
 ifneq ($(CONFIG_PACKAGE_luci-i18n-greek),)
        PKG_SELECTED_MODULES+=i18n/greek
 endif
+ifneq ($(CONFIG_PACKAGE_luci-i18n-catalan),)
+       PKG_SELECTED_MODULES+=i18n/catalan
+endif
+ifneq ($(CONFIG_PACKAGE_luci-i18n-portuguese),)
+       PKG_SELECTED_MODULES+=i18n/portuguese
+endif
 
 
 MAKE_FLAGS += \
@@ -1100,3 +1127,5 @@ $(eval $(call BuildPackage,luci-i18n-russian))
 $(eval $(call BuildPackage,luci-i18n-portuguese_brazilian))
 $(eval $(call BuildPackage,luci-i18n-japanese))
 $(eval $(call BuildPackage,luci-i18n-greek))
+$(eval $(call BuildPackage,luci-i18n-catalan))
+$(eval $(call BuildPackage,luci-i18n-portuguese))
diff --git a/i18n/catalan/Makefile b/i18n/catalan/Makefile
new file mode 100644 (file)
index 0000000..bb0462f
--- /dev/null
@@ -0,0 +1,5 @@
+PO = default cbi admin-core sysauth wifi
+PO_LANG = ca
+
+include ../../build/config.mk
+include ../../build/module.mk
diff --git a/i18n/catalan/ipkg/postinst b/i18n/catalan/ipkg/postinst
new file mode 100755 (executable)
index 0000000..48be572
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+[ -n "${IPKG_INSTROOT}" ] || {
+       ( . /etc/uci-defaults/luci-i18n-catalan ) && rm -f /etc/uci-defaults/luci-i18n-catalan
+}
diff --git a/i18n/catalan/root/etc/uci-defaults/luci-i18n-catalan b/i18n/catalan/root/etc/uci-defaults/luci-i18n-catalan
new file mode 100755 (executable)
index 0000000..7041ac2
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh
+uci batch <<-EOF
+       set luci.languages.ca=Catalan
+       commit luci
+EOF
+       
diff --git a/i18n/portuguese/Makefile b/i18n/portuguese/Makefile
new file mode 100644 (file)
index 0000000..a163234
--- /dev/null
@@ -0,0 +1,5 @@
+PO = default cbi admin-core sysauth wifi
+PO_LANG = pt
+
+include ../../build/config.mk
+include ../../build/module.mk
diff --git a/i18n/portuguese/ipkg/postinst b/i18n/portuguese/ipkg/postinst
new file mode 100755 (executable)
index 0000000..cc97e03
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+[ -n "${IPKG_INSTROOT}" ] || {
+       ( . /etc/uci-defaults/luci-i18n-portuguese ) && rm -f /etc/uci-defaults/luci-i18n-portuguese
+}
diff --git a/i18n/portuguese/root/etc/uci-defaults/luci-i18n-portuguese b/i18n/portuguese/root/etc/uci-defaults/luci-i18n-portuguese
new file mode 100755 (executable)
index 0000000..59ca6fe
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh
+uci batch <<-EOF
+       set luci.languages.pt=Portuguese
+       commit luci
+EOF
+