From 7f251f31b670003a2258d830e0db4ad3a2a676dc Mon Sep 17 00:00:00 2001 From: jjm2473 <1129525450@qq.com> Date: Wed, 11 May 2022 14:23:34 +0800 Subject: [PATCH] fix i18n for old package --- .github/workflows/luci.patch | 23 +++++++++++++++++++++++ .github/workflows/main.yml | 1 + 2 files changed, 24 insertions(+) create mode 100644 .github/workflows/luci.patch diff --git a/.github/workflows/luci.patch b/.github/workflows/luci.patch new file mode 100644 index 0000000..609b311 --- /dev/null +++ b/.github/workflows/luci.patch @@ -0,0 +1,23 @@ +From 72f06f906ad22be173a25c3f50b61f9b1a33a16c Mon Sep 17 00:00:00 2001 +From: Liangbin Lian +Date: Fri, 11 Mar 2022 19:16:05 +0800 +Subject: [PATCH] i18n compatible with old luci sources + +Signed-off-by: Liangbin Lian +--- + luci.mk | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/luci.mk b/luci.mk +index b331ebe1c5e..7e9a823b8bd 100644 +--- a/luci.mk ++++ b/luci.mk +@@ -50,6 +50,8 @@ LUCI_LANG.uk=Українська (Ukrainian) + LUCI_LANG.vi=Tiếng Việt (Vietnamese) + LUCI_LANG.zh_Hans=简体中文 (Chinese Simplified) + LUCI_LANG.zh_Hant=繁體中文 (Chinese Traditional) ++LUCI_LANG.zh-cn=$(LUCI_LANG.zh_Hans) ++LUCI_LANG.zh-tw=$(LUCI_LANG.zh_Hant) + + # Submenu titles + LUCI_MENU.col=1. Collections diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d28f820..479c192 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -122,6 +122,7 @@ jobs: ./scripts/feeds update -a grep -lFr '$(call KernelPackage,' feeds/base/package/linux | xargs -rn1 sed -i 's/ FILES:=/ XFILES:=/g' || true grep -lFr '$(call KernelPackage,' feeds/base/package/kernel | xargs -rn1 sed -i 's/ FILES:=/ XFILES:=/g' || true + patch -d feeds/luci -p1 -f -i `pwd`/../apps/.github/workflows/luci.patch if [ "$apps" = "all" ]; then ./scripts/feeds install -a -p apps -d y for repo in `sed -e 's/src-[^ ]* \([^ ]*\) .*/\1/g' ../apps/feeds.conf`