luci-app-argon-config: luci2 i18n

This commit is contained in:
sbwml 2023-05-27 18:51:17 +08:00
parent bc35bc65d9
commit 0987ed7dc7
3 changed files with 6 additions and 26 deletions

View File

@ -22,25 +22,6 @@ define Package/luci-app-argon-config
DEPENDS:=+luci-compat
endef
define Build/Prepare
endef
define Build/Compile
endef
define Package/luci-app-argon-config/install
$(INSTALL_DIR) $(1)/usr/lib/lua/luci
cp -pR ./luasrc/* $(1)/usr/lib/lua/luci
$(INSTALL_DIR) $(1)/
cp -pR ./root/* $(1)/
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/i18n
po2lmo ./po/zh-cn/argon-config.po $(1)/usr/lib/lua/luci/i18n/argon-config.zh-cn.lmo
endef
$(eval $(call BuildPackage,luci-app-argon-config))
# call BuildPackage - OpenWrt buildroot signature

View File

@ -139,7 +139,7 @@ http.setfilehandler(
end
if not fd then
um.value = translate('Create upload file error.')
um.value = translate('Create upload file error')
return
end
end
@ -157,7 +157,7 @@ http.setfilehandler(
if http.formvalue('upload') then
local f = http.formvalue('ulfile')
if #f <= 0 then
um.value = translate('No specify upload file.')
um.value = translate('No specify upload file')
end
end

View File

@ -80,9 +80,8 @@ msgstr "选择本地文件:"
msgid "Couldn't open file:"
msgstr "无法打开文件:"
msgid "Create upload file error."
msgstr "创建上传文件失败。"
msgid "Create upload file error"
msgstr "创建上传文件失败"
msgid "File name"
msgstr "文件名"
@ -102,8 +101,8 @@ msgstr "属性"
msgid "Modify time"
msgstr "修改时间"
msgid "No specify upload file."
msgstr "未指定上传文件"
msgid "No specify upload file"
msgstr "未指定上传文件"
msgid "Path on Route:"
msgstr "路由根目录:"