X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=modules%2Fadmin-full%2Fluasrc%2Fmodel%2Fcbi%2Fadmin_system%2Ffstab.lua;h=e55c44c885af3fc4ea7eae7fabe7a00d45f8c52c;hp=aa4f12e554ce979e207a7869bd3e977a8702944b;hb=7c765875884d6866c53b63757731b079bace2e9b;hpb=8fcd841aa9af96c8a4a4d3c1a555d2d1ed42332c diff --git a/modules/admin-full/luasrc/model/cbi/admin_system/fstab.lua b/modules/admin-full/luasrc/model/cbi/admin_system/fstab.lua index aa4f12e55..e55c44c88 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_system/fstab.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_system/fstab.lua @@ -29,17 +29,17 @@ for i, dev in ipairs(devices) do end -m = Map("fstab", translate("a_s_fstab")) +m = Map("fstab", translate("Mount Points")) local mounts = luci.sys.mounts() -v = m:section(Table, mounts, translate("a_s_fstab_active")) +v = m:section(Table, mounts, translate("Mounted file systems")) -fs = v:option(DummyValue, "fs", translate("filesystem")) +fs = v:option(DummyValue, "fs", translate("Filesystem")) -mp = v:option(DummyValue, "mountpoint", translate("a_s_fstab_mountpoint")) +mp = v:option(DummyValue, "mountpoint", translate("Mount Point")) -avail = v:option(DummyValue, "avail", translate("a_s_fstab_avail")) +avail = v:option(DummyValue, "avail", translate("Available")) function avail.cfgvalue(self, section) return luci.tools.webadmin.byte_format( ( tonumber(mounts[section].available) or 0 ) * 1024 @@ -48,7 +48,7 @@ function avail.cfgvalue(self, section) ) end -used = v:option(DummyValue, "used", translate("a_s_fstab_used")) +used = v:option(DummyValue, "used", translate("Used")) function used.cfgvalue(self, section) return ( mounts[section].percent or "0%" ) .. " (" .. luci.tools.webadmin.byte_format( @@ -58,29 +58,29 @@ end -mount = m:section(TypedSection, "mount", translate("a_s_fstab_mountpoints"), translate("a_s_fstab_mountpoints1")) +mount = m:section(TypedSection, "mount", translate("Mount Points"), translate("Mount Points define at which point a memory device will be attached to the filesystem")) mount.anonymous = true mount.addremove = true mount.template = "cbi/tblsection" mount:option(Flag, "enabled", translate("enable")).rmempty = false -dev = mount:option(Value, "device", translate("device"), translate("a_s_fstab_device1")) +dev = mount:option(Value, "device", translate("Device"), translate("The device file of the memory or partition (e.g. /dev/sda1)")) for i, d in ipairs(devices) do dev:value(d, size[d] and "%s (%s MB)" % {d, size[d]}) end -mount:option(Value, "target", translate("a_s_fstab_mountpoint")) -mount:option(Value, "fstype", translate("filesystem"), translate("a_s_fstab_fs1")) -mount:option(Value, "options", translate("options"), translatef("manpage", "siehe '%s' manpage", "mount")) +mount:option(Value, "target", translate("Mount Point")) +mount:option(Value, "fstype", translate("Filesystem"), translate("The filesystem that was used to format the memory (e.g. ext3)")) +mount:option(Value, "options", translate("Options"), translatef("see \'%s\' manpage"%s' manpage", "mount")) -swap = m:section(TypedSection, "swap", "SWAP", translate("a_s_fstab_swap1")) +swap = m:section(TypedSection, "swap", "SWAP", translate("If your physical memory is insufficient unused data can be temporarily swapped to a swap-device resulting in a higher amount of usable RAM. Be aware that swapping data is a very slow process as the swap-device cannot be accessed with the high datarates of the RAM.")) swap.anonymous = true swap.addremove = true swap.template = "cbi/tblsection" swap:option(Flag, "enabled", translate("enable")).rmempty = false -dev = swap:option(Value, "device", translate("device"), translate("a_s_fstab_device1")) +dev = swap:option(Value, "device", translate("Device"), translate("The device file of the memory or partition (e.g. /dev/sda1)")) for i, d in ipairs(devices) do dev:value(d, size[d] and "%s (%s MB)" % {d, size[d]}) end