packages: fix Chinese translations

This commit is contained in:
CN_SZTL 2020-02-08 03:27:39 +08:00
parent d4f607c933
commit 73ed153724
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
44 changed files with 22 additions and 22 deletions

View File

@ -44,7 +44,7 @@ define Package/luci-app-adguardhome/install
$(INSTALL_DIR) $(1)/
cp -pR ./root/* $(1)/
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/i18n
po2lmo ./po/zh-cn/AdGuardHome.po $(1)/usr/lib/lua/luci/i18n/AdGuardHome.zh-cn.lmo
po2lmo ./po/zh_Hans/AdGuardHome.po $(1)/usr/lib/lua/luci/i18n/AdGuardHome.zh_Hans.lmo
endef
define Package/luci-app-adguardhome/postinst

View File

@ -24,7 +24,7 @@ endef
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
$(CP) ./* $(PKG_BUILD_DIR)/
po2lmo $(PKG_BUILD_DIR)/po/airwhu.zh-cn.po $(PKG_BUILD_DIR)/po/airwhu.zh-cn.lmo
po2lmo $(PKG_BUILD_DIR)/po/airwhu.zh_Hans.po $(PKG_BUILD_DIR)/po/airwhu.zh_Hans.lmo
endef
define Build/Compile
@ -45,7 +45,7 @@ define Package/luci-app-airwhu/install
$(INSTALL_BIN) ./files/root/bin/ipv6masq.sh $(1)/bin/ipv6masq.sh
$(INSTALL_DATA) ./files/root/usr/lib/lua/luci/model/cbi/airwhu.lua $(1)/usr/lib/lua/luci/model/cbi/airwhu.lua
$(INSTALL_DATA) ./files/root/usr/lib/lua/luci/controller/airwhu.lua $(1)/usr/lib/lua/luci/controller/airwhu.lua
$(INSTALL_DATA) $(PKG_BUILD_DIR)/po/airwhu.zh-cn.lmo $(1)/usr/lib/lua/luci/i18n/airwhu.zh-cn.lmo
$(INSTALL_DATA) $(PKG_BUILD_DIR)/po/airwhu.zh_Hans.lmo $(1)/usr/lib/lua/luci/i18n/airwhu.zh_Hans.lmo
endef
$(eval $(call BuildPackage,luci-app-airwhu))

View File

@ -39,7 +39,7 @@ define Package/$(PKG_NAME)/install
# $(INSTALL_DIR) $(1)/
# cp -pR ./root/* $(1)/
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/i18n
po2lmo ./po/zh-cn/diskman.po $(1)/usr/lib/lua/luci/i18n/diskman.zh-cn.lmo
po2lmo ./po/zh_Hans/diskman.po $(1)/usr/lib/lua/luci/i18n/diskman.zh_Hans.lmo
po2lmo ./po/pl/diskman.po $(1)/usr/lib/lua/luci/i18n/diskman.pl.lmo
endef

View File

@ -39,7 +39,7 @@ define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1)/
cp -pR ./root/* $(1)/
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/i18n
po2lmo ./po/zh-cn/dockerman.po $(1)/usr/lib/lua/luci/i18n/dockerman.zh-cn.lmo
po2lmo ./po/zh_Hans/dockerman.po $(1)/usr/lib/lua/luci/i18n/dockerman.zh_Hans.lmo
endef
$(eval $(call BuildPackage,$(PKG_NAME)))

View File

@ -64,7 +64,7 @@ define Package/luci-app-koolproxyR/install
$(INSTALL_DATA) ./files/usr/lib/lua/luci/model/cbi/koolproxy/rss_rule.lua $(1)/usr/lib/lua/luci/model/cbi/koolproxy/rss_rule.lua
$(INSTALL_DATA) ./files/usr/lib/lua/luci/controller/koolproxy.lua $(1)/usr/lib/lua/luci/controller/koolproxy.lua
$(INSTALL_DATA) ./files/usr/lib/lua/luci/view/koolproxy/* $(1)/usr/lib/lua/luci/view/koolproxy/
$(INSTALL_DATA) ./files/usr/lib/lua/luci/i18n/koolproxy.zh-cn.lmo $(1)/usr/lib/lua/luci/i18n/koolproxy.zh-cn.lmo
$(INSTALL_DATA) ./files/usr/lib/lua/luci/i18n/koolproxy.zh_Hans.lmo $(1)/usr/lib/lua/luci/i18n/koolproxy.zh_Hans.lmo
$(INSTALL_BIN) ./files/usr/sbin/* $(1)/usr/sbin/
$(INSTALL_BIN) ./files/usr/share/koolproxy/data/gen_ca.sh $(1)/usr/share/koolproxy/data/
$(INSTALL_DATA) ./files/usr/share/koolproxy/data/openssl.cnf $(1)/usr/share/koolproxy/data/

View File

@ -155,7 +155,7 @@ define Package/luci-app-ssr-plus-Jo/install
$(INSTALL_DIR) $(1)/
cp -pR ./root/* $(1)/
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/i18n
cp -pR ./po/zh-cn/ssr-plus.zh-cn.lmo $(1)/usr/lib/lua/luci/i18n/ssr-plus.zh-cn.lmo
cp -pR ./po/zh_Hans/ssr-plus.zh_Hans.lmo $(1)/usr/lib/lua/luci/i18n/ssr-plus.zh_Hans.lmo
endef
define Package/luci-app-ssr-plus-Jo/postinst

View File

@ -78,7 +78,7 @@ define Package/luci-app-vssr/install
$(INSTALL_DIR) $(1)/
cp -pR ./root/* $(1)/
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/i18n
po2lmo ./po/zh-cn/vssr.po $(1)/usr/lib/lua/luci/i18n/vssr.zh-cn.lmo
po2lmo ./po/zh_Hans/vssr.po $(1)/usr/lib/lua/luci/i18n/vssr.zh_Hans.lmo
endef
define Package/luci-app-vssr/postinst

View File

@ -22,7 +22,7 @@ define Package/luci-app-clash/description
endef
define Build/Prepare
po2lmo ${CURDIR}/po/zh_Hans/clash.po ${CURDIR}/po/zh-cn/clash.zh_Hans.lmo
po2lmo ${CURDIR}/po/zh_Hans/clash.po ${CURDIR}/po/zh_Hans/clash.zh_Hans.lmo
endef
define Build/Configure
@ -146,7 +146,7 @@ define Package/$(PKG_NAME)/install
$(INSTALL_DATA) ./luasrc/controller/*.lua $(1)/usr/lib/lua/luci/controller/
$(INSTALL_DATA) ./luasrc/model/cbi/clash/*.lua $(1)/usr/lib/lua/luci/model/cbi/clash/
$(INSTALL_DATA) ./luasrc/view/clash/* $(1)/usr/lib/lua/luci/view/clash/
$(INSTALL_DATA) ./po/zh-cn/clash.zh_Hans.lmo $(1)/usr/lib/lua/luci/i18n/
$(INSTALL_DATA) ./po/zh_Hans/clash.zh_Hans.lmo $(1)/usr/lib/lua/luci/i18n/
endef
$(eval $(call BuildPackage,$(PKG_NAME)))

View File

@ -37,13 +37,13 @@ define Package/luci-app-eqos/description
Luci interface for the eqos.
endef
define Package/luci-i18n-eqos-zh-cn
define Package/luci-i18n-eqos-zh_Hans
SECTION:=luci
CATEGORY:=LuCI
TITLE:=luci-app-eqos - zh-cn translation
TITLE:=luci-app-eqos - zh_Hans translation
HIDDEN:=1
DEPENDS:=luci-app-eqos
DEFAULT:=LUCI_LANG_zh-cn
DEFAULT:=LUCI_LANG_zh_Hans
PKGARCH:=all
endef
@ -90,11 +90,11 @@ uci -q get ucitrack.@eqos[0] > /dev/null && {
}
endef
define Package/luci-i18n-eqos-zh-cn/install
define Package/luci-i18n-eqos-zh_Hans/install
$(INSTALL_DIR) $(1)$(LUCI_DIR)/i18n
po2lmo ./files/po/zh-cn/eqos.po $(1)$(LUCI_DIR)/i18n/eqos.zh-cn.lmo
po2lmo ./files/po/zh_Hans/eqos.po $(1)$(LUCI_DIR)/i18n/eqos.zh_Hans.lmo
endef
$(eval $(call BuildPackage,eqos))
$(eval $(call BuildPackage,luci-app-eqos))
$(eval $(call BuildPackage,luci-i18n-eqos-zh-cn))
$(eval $(call BuildPackage,luci-i18n-eqos-zh_Hans))

View File

@ -64,7 +64,7 @@ define Package/luci-app-koolproxy/install
$(INSTALL_DATA) ./files/usr/lib/lua/luci/model/cbi/koolproxy/rss_rule.lua $(1)/usr/lib/lua/luci/model/cbi/koolproxy/rss_rule.lua
$(INSTALL_DATA) ./files/usr/lib/lua/luci/controller/koolproxy.lua $(1)/usr/lib/lua/luci/controller/koolproxy.lua
$(INSTALL_DATA) ./files/usr/lib/lua/luci/view/koolproxy/* $(1)/usr/lib/lua/luci/view/koolproxy/
$(INSTALL_DATA) ./files/usr/lib/lua/luci/i18n/koolproxy.zh-cn.lmo $(1)/usr/lib/lua/luci/i18n/koolproxy.zh-cn.lmo
$(INSTALL_DATA) ./files/usr/lib/lua/luci/i18n/koolproxy.zh_Hans.lmo $(1)/usr/lib/lua/luci/i18n/koolproxy.zh_Hans.lmo
$(INSTALL_BIN) ./files/usr/sbin/* $(1)/usr/sbin/
$(INSTALL_BIN) ./files/usr/share/koolproxy/data/gen_ca.sh $(1)/usr/share/koolproxy/data/
$(INSTALL_DATA) ./files/usr/share/koolproxy/data/openssl.cnf $(1)/usr/share/koolproxy/data/

View File

@ -34,7 +34,7 @@ rm -rf /tmp/luci*
endef
define Build/Prepare
$(foreach po,$(wildcard ${CURDIR}/i18n/zh-cn/*.po), \
$(foreach po,$(wildcard ${CURDIR}/i18n/zh_Hans/*.po), \
po2lmo $(po) $(PKG_BUILD_DIR)/$(patsubst %.po,%.lmo,$(notdir $(po)));)
endef

View File

@ -23,7 +23,7 @@ define Package/$(PKG_NAME)/description
endef
define Build/Prepare
$(foreach po,$(wildcard ${CURDIR}/i18n/zh-cn/*.po), \
$(foreach po,$(wildcard ${CURDIR}/i18n/zh_Hans/*.po), \
po2lmo $(po) $(PKG_BUILD_DIR)/$(patsubst %.po,%.lmo,$(notdir $(po)));)
endef

View File

@ -21,7 +21,7 @@ define Package/default-settings
CATEGORY:=LuCI
TITLE:=LuCI support for Default Settings
PKGARCH:=all
DEPENDS:=+luci-base +@LUCI_LANG_zh-cn \
DEPENDS:=+luci-base +@LUCI_LANG_zh_Hans \
+bash
endef

View File

@ -5,7 +5,7 @@ msgstr ""
"PO-Revision-Date: 2017-03-28 04:15+0800\n"
"Last-Translator: \n"
"Language-Team: player131 <player1311@gmail.com>\n"
"Language: zh_CN\n"
"Language: zh_Hans\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

View File

@ -124,7 +124,7 @@ define Package/$(PKG_NAME)/install
cp -pR ./luasrc/* $(1)/usr/lib/lua/luci/
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/i18n
po2lmo ./po/zh-cn/passwall.po $(1)/usr/lib/lua/luci/i18n/passwall.zh-cn.lmo
po2lmo ./po/zh_Hans/passwall.po $(1)/usr/lib/lua/luci/i18n/passwall.zh_Hans.lmo
endef
define Package/$(PKG_NAME)/postinst