packages: fix install translation files

This commit is contained in:
CN_SZTL 2020-02-08 03:03:19 +08:00
parent 2cfc707665
commit d4f607c933
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
3 changed files with 4 additions and 4 deletions

View File

@ -26,7 +26,7 @@ define Package/$(PKG_NAME)/postinst
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)));)
chmod 0755 ${CURDIR}/files/etc/init.d/openclash
chmod -R 0755 ${CURDIR}/files/usr/share/openclash/

View File

@ -22,7 +22,7 @@ define Package/luci-app-clash/description
endef
define Build/Prepare
po2lmo ${CURDIR}/po/zh-cn/clash.po ${CURDIR}/po/zh-cn/clash.zh-cn.lmo
po2lmo ${CURDIR}/po/zh_Hans/clash.po ${CURDIR}/po/zh-cn/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-cn.lmo $(1)/usr/lib/lua/luci/i18n/
$(INSTALL_DATA) ./po/zh-cn/clash.zh_Hans.lmo $(1)/usr/lib/lua/luci/i18n/
endef
$(eval $(call BuildPackage,$(PKG_NAME)))

View File

@ -91,7 +91,7 @@ define Package/luci-app-ssr-plus/install
$(INSTALL_DATA) ./luasrc/controller/*.lua $(1)/usr/lib/lua/luci/controller/
$(INSTALL_DATA) ./luasrc/model/cbi/shadowsocksr/*.lua $(1)/usr/lib/lua/luci/model/cbi/shadowsocksr/
$(INSTALL_DATA) ./luasrc/view/shadowsocksr/* $(1)/usr/lib/lua/luci/view/shadowsocksr/
po2lmo ./po/zh-cn/ssr-plus.po $(1)/usr/lib/lua/luci/i18n/ssr-plus.zh-cn.lmo
po2lmo ./po/zh_Hans/ssr-plus.po $(1)/usr/lib/lua/luci/i18n/ssr-plus.zh_Hans.lmo
endef
define Package/luci-app-ssr-plus/postinst