Merge pull request #370 from 981213/pull_request
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 27 Apr 2015 13:08:21 +0000 (15:08 +0200)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 27 Apr 2015 13:08:21 +0000 (15:08 +0200)
Fix some Simplified Chinese translations in luci.

modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/fstab.lua

index fd61758..d4e834d 100644 (file)
@@ -190,7 +190,12 @@ dev.cfgvalue = function(self, section)
        if v then return "Label: %s" % v end
 
        v = Value.cfgvalue(self, section) or "?"
-       return size[v] and "%s (%s MB)" % {v, size[v]} or v
+       e = v and devices[v]
+       if v and e and e.size then
+               return "%s (%s MB)" % {v, e.size}
+       else
+               return v
+       end
 end
 
 return m