i18n: package spanish translation
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 17 Jul 2009 17:36:08 +0000 (17:36 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 17 Jul 2009 17:36:08 +0000 (17:36 +0000)
contrib/package/luci/Makefile
i18n/spanish/Makefile [new file with mode: 0644]
i18n/spanish/root/etc/uci-defaults/luci-i18n-spanish [new file with mode: 0755]

index 41d6bab32a45a0c4c174570e127b4b99a799ca26..361bff9b2d4b6db41bf5905bedf65813a20cd026 100644 (file)
@@ -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 (file)
index 0000000..63bc71e
--- /dev/null
@@ -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 (executable)
index 0000000..788a54e
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh
+uci batch <<-EOF
+       set luci.languages.es=Spanish
+        commit luci
+EOF
+