From 50a728d29ccaf21f0a361a7e1e0042b17046a60a Mon Sep 17 00:00:00 2001 From: Zlatin Balevsky Date: Thu, 1 Oct 2020 17:07:24 +0100 Subject: [PATCH] externalize more enum names --- gui/griffon-app/i18n/messages.properties | 3 +++ gui/griffon-app/views/com/muwire/gui/MainFrameView.groovy | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/gui/griffon-app/i18n/messages.properties b/gui/griffon-app/i18n/messages.properties index 2c9d568b..952012fa 100644 --- a/gui/griffon-app/i18n/messages.properties +++ b/gui/griffon-app/i18n/messages.properties @@ -498,3 +498,6 @@ SUCCESSFUL=Successful REJECTED=Rejected DISCONNECTED=Disconnected IDLE=Idle +UPDATED=Updated +UPDATING=Updating +UPDATE_FAILED=Update Failed diff --git a/gui/griffon-app/views/com/muwire/gui/MainFrameView.groovy b/gui/griffon-app/views/com/muwire/gui/MainFrameView.groovy index 0db05d20..87c00963 100644 --- a/gui/griffon-app/views/com/muwire/gui/MainFrameView.groovy +++ b/gui/griffon-app/views/com/muwire/gui/MainFrameView.groovy @@ -550,7 +550,7 @@ class MainFrameView { closureColumn(header : trans("NAME"), preferredWidth: 200, type: String, read : {it.persona.getHumanReadableName()}) closureColumn(header : trans("TRUSTED"), preferredWidth : 20, type: Integer, read : {it.good.size()}) closureColumn(header : trans("DISTRUSTED"), preferredWidth: 20, type: Integer, read : {it.bad.size()}) - closureColumn(header : trans("STATUS"), preferredWidth: 30, type: String, read : {it.status.toString()}) + closureColumn(header : trans("STATUS"), preferredWidth: 30, type: String, read : {trans(it.status.name())}) closureColumn(header : trans("LAST_UPDATED"), preferredWidth: 200, type : Long, read : { it.timestamp }) } }