diff options
author | Sean E. Russell <ser@ser1.net> | 2020-06-20 16:47:48 -0500 |
---|---|---|
committer | Sean E. Russell <ser@ser1.net> | 2020-06-20 16:47:48 -0500 |
commit | 23364aa754c836b8a5fbc69adbdbd49abd183a57 (patch) | |
tree | 51f9137e2bd2090ffdd938fd7c1a7b4b71c56402 /devices/temp_freebsd.go | |
parent | 9a56571373eb5a9ea9261afb39bebaf7ddeb700f (diff) |
More strings moved to translations
Diffstat (limited to 'devices/temp_freebsd.go')
-rw-r--r-- | devices/temp_freebsd.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/devices/temp_freebsd.go b/devices/temp_freebsd.go index 3e659be..e87dcb3 100644 --- a/devices/temp_freebsd.go +++ b/devices/temp_freebsd.go @@ -13,7 +13,7 @@ import ( func init() { if len(devs()) == 0 { - log.Println("temp: no thermal sensors found") + log.Println(tr.Value("error.nodevfound", "thermal sensors")) return } RegisterTemp(update) @@ -58,13 +58,13 @@ func devs() []string { // Check that thermal sensors are really available; they aren't in VMs bs, err := exec.Command("sysctl", "-a").Output() if err != nil { - log.Printf("temp: failure to get system information %s", err.Error()) + log.Printf(tr.Value("error.fatalfetch", "temp", err.Error())) return []string{} } for k, _ := range sensorOIDS { idx := strings.Index(string(bs), k) if idx < 0 { - log.Printf("temp: no device %s found", k) + log.Printf(tr.Value("error.nodevfound", k)) } else { rv = append(rv, k) } |