summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--contrib/package/luci/Makefile14
-rw-r--r--i18n/spanish/Makefile5
-rwxr-xr-xi18n/spanish/root/etc/uci-defaults/luci-i18n-spanish6
3 files changed, 25 insertions, 0 deletions
diff --git a/contrib/package/luci/Makefile b/contrib/package/luci/Makefile
index 41d6bab32a..361bff9b2d 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 0000000000..63bc71e469
--- /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 0000000000..788a54e09b
--- /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
+