From: Jo-Philipp Wich Date: Tue, 19 May 2009 02:41:14 +0000 (+0000) Subject: build: add variable to restrict po language and use it for the core i18n packages X-Git-Tag: 0.9.0~419 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=de7842fdd3beaa694cc0cba2275962ab11f1e07b;p=oweals%2Fluci.git build: add variable to restrict po language and use it for the core i18n packages --- diff --git a/build/module.mk b/build/module.mk index 6aeb9ba56..70d54dc85 100644 --- a/build/module.mk +++ b/build/module.mk @@ -26,7 +26,7 @@ luasource: for i in $$(find dist -name .svn -or -name .gitignore); do rm -rf $$i || true; done ifneq ($(PO),) for file in $(PO); do \ - cp $(HOST)/lua-po/$$file.*.lua dist$(LUCI_MODULEDIR)/i18n/; \ + cp $(HOST)/lua-po/$$file.$(if $(PO_LANG),$(PO_LANG),*).lua dist$(LUCI_MODULEDIR)/i18n/; \ done endif diff --git a/i18n/english/Makefile b/i18n/english/Makefile index 7e4c710f7..fddd705e5 100644 --- a/i18n/english/Makefile +++ b/i18n/english/Makefile @@ -1,4 +1,5 @@ PO = default cbi admin-core sysauth wifi +PO_LANG = en include ../../build/config.mk include ../../build/module.mk diff --git a/i18n/french/Makefile b/i18n/french/Makefile index 7e4c710f7..a77a624c5 100644 --- a/i18n/french/Makefile +++ b/i18n/french/Makefile @@ -1,4 +1,5 @@ PO = default cbi admin-core sysauth wifi +PO_LANG = fr include ../../build/config.mk include ../../build/module.mk diff --git a/i18n/german/Makefile b/i18n/german/Makefile index 7e4c710f7..80196f9f5 100644 --- a/i18n/german/Makefile +++ b/i18n/german/Makefile @@ -1,4 +1,5 @@ PO = default cbi admin-core sysauth wifi +PO_LANG = de include ../../build/config.mk include ../../build/module.mk diff --git a/i18n/greek/Makefile b/i18n/greek/Makefile index 7e4c710f7..71e937cde 100644 --- a/i18n/greek/Makefile +++ b/i18n/greek/Makefile @@ -1,4 +1,5 @@ PO = default cbi admin-core sysauth wifi +PO_LANG = el include ../../build/config.mk include ../../build/module.mk diff --git a/i18n/italian/Makefile b/i18n/italian/Makefile index 7e4c710f7..484ceef58 100644 --- a/i18n/italian/Makefile +++ b/i18n/italian/Makefile @@ -1,4 +1,5 @@ PO = default cbi admin-core sysauth wifi +PO_LANG = it include ../../build/config.mk include ../../build/module.mk diff --git a/i18n/japanese/Makefile b/i18n/japanese/Makefile index 7e4c710f7..7c2bb0563 100644 --- a/i18n/japanese/Makefile +++ b/i18n/japanese/Makefile @@ -1,4 +1,5 @@ PO = default cbi admin-core sysauth wifi +PO_LANG = ja include ../../build/config.mk include ../../build/module.mk diff --git a/i18n/portuguese_brazilian/Makefile b/i18n/portuguese_brazilian/Makefile index 7e4c710f7..9421a6e93 100644 --- a/i18n/portuguese_brazilian/Makefile +++ b/i18n/portuguese_brazilian/Makefile @@ -1,4 +1,5 @@ PO = default cbi admin-core sysauth wifi +PO_LANG = pt-br include ../../build/config.mk include ../../build/module.mk diff --git a/i18n/russian/Makefile b/i18n/russian/Makefile index 7e4c710f7..a6bfae817 100644 --- a/i18n/russian/Makefile +++ b/i18n/russian/Makefile @@ -1,4 +1,5 @@ PO = default cbi admin-core sysauth wifi +PO_LANG = ru include ../../build/config.mk include ../../build/module.mk