luci-app-diskman: sync with upstream source

This commit is contained in:
CN_SZTL 2020-03-10 22:36:54 +08:00
parent 8a8369da24
commit ea5c07a8d8
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
2 changed files with 9 additions and 3 deletions

View File

@ -265,8 +265,8 @@ btn_umount.render = function(self, section, scope)
end
btn_umount.write = function(self, section, value)
local res
if not _mount_point.mount_point or not _mount_point.device then return end
if value == translate("Mount") then
if not _mount_point.mount_point or not _mount_point.device then return end
luci.util.exec("mkdir -p ".. _mount_point.mount_point)
res = luci.util.exec(dm.command.mount .. " ".. _mount_point.device .. (_mount_point.fs and (" -t ".. _mount_point.fs )or "") .. (_mount_point.mount_options and (" -o " .. _mount_point.mount_options.. " ") or " ").._mount_point.mount_point .. " 2>&1")
elseif value == translate("Umount") then

View File

@ -62,7 +62,13 @@ msgid "End Sector"
msgstr "Sektor końcowy"
msgid "Usage"
msgstr "Użycie"
msgstr "Wykorzystane"
msgid "Used"
msgstr "Zajęte"
msgid "Free Space"
msgstr "Wolna przestrzeń"
msgid "Model"
msgstr "Model urządzenia"
@ -194,7 +200,7 @@ msgid "The source path for create the snapshot"
msgstr "Ścieżka źródłowa do utworzenia obrazu"
msgid "The path where you want to store the snapshot"
msgstr "Ścieżka, w której chcesz przechowywać obraz"
msgstr "Ścieżka w której chcesz przechowywać obraz"
msgid "Please input Source Path of snapshot, Source Path must start with '/'"
msgstr "Proszę podać ścieżkę źródłową dla obrazu, ścieżka musi zaczynać się od '/'"