From 62b2c39a5d7bf67df1c5d483db820673dc3c13aa Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 17 Jul 2009 17:36:08 +0000 Subject: [PATCH] i18n: package spanish translation --- contrib/package/luci/Makefile | 14 ++++++++++++++ i18n/spanish/Makefile | 5 +++++ .../root/etc/uci-defaults/luci-i18n-spanish | 6 ++++++ 3 files changed, 25 insertions(+) create mode 100644 i18n/spanish/Makefile create mode 100755 i18n/spanish/root/etc/uci-defaults/luci-i18n-spanish diff --git a/contrib/package/luci/Makefile b/contrib/package/luci/Makefile index 41d6bab32..361bff9b2 100644 --- a/contrib/package/luci/Makefile +++ b/contrib/package/luci/Makefile @@ -877,6 +877,16 @@ define Package/luci-i18n-portuguese/install endef +define Package/luci-i18n-spanish + $(call Package/luci/i18ntemplate) + TITLE:=Spanish (by Guillermo Javier Nardoni) +endef + +define Package/luci-i18n-spanish/install + $(call Package/luci/install/template,$(1),i18n/spanish) +endef + + ### Compile ### ifneq ($(CONFIG_PACKAGE_luci-core),) PKG_SELECTED_MODULES+=libs/core @@ -1077,6 +1087,9 @@ endif ifneq ($(CONFIG_PACKAGE_luci-i18n-portuguese),) PKG_SELECTED_MODULES+=i18n/portuguese endif +ifneq ($(CONFIG_PACKAGE_luci-i18n-spanish),) + PKG_SELECTED_MODULES+=i18n/spanish +endif MAKE_FLAGS += \ @@ -1157,3 +1170,4 @@ $(eval $(call BuildPackage,luci-i18n-japanese)) $(eval $(call BuildPackage,luci-i18n-greek)) $(eval $(call BuildPackage,luci-i18n-catalan)) $(eval $(call BuildPackage,luci-i18n-portuguese)) +$(eval $(call BuildPackage,luci-i18n-spanish)) diff --git a/i18n/spanish/Makefile b/i18n/spanish/Makefile new file mode 100644 index 000000000..63bc71e46 --- /dev/null +++ b/i18n/spanish/Makefile @@ -0,0 +1,5 @@ +PO = default cbi admin-core sysauth wifi +PO_LANG = es + +include ../../build/config.mk +include ../../build/module.mk diff --git a/i18n/spanish/root/etc/uci-defaults/luci-i18n-spanish b/i18n/spanish/root/etc/uci-defaults/luci-i18n-spanish new file mode 100755 index 000000000..788a54e09 --- /dev/null +++ b/i18n/spanish/root/etc/uci-defaults/luci-i18n-spanish @@ -0,0 +1,6 @@ +#!/bin/sh +uci batch <<-EOF + set luci.languages.es=Spanish + commit luci +EOF + -- 2.25.1