mirror of https://github.com/zlatinb/muwire
externalize strings in chat room monitor
parent
8262a09734
commit
4bb492bed1
|
@ -454,3 +454,9 @@ CONNECTION_STATUS=Connection Status
|
||||||
SAY_SOMETHING_HERE=Say something here
|
SAY_SOMETHING_HERE=Say something here
|
||||||
SAY=Say
|
SAY=Say
|
||||||
START_PRIVATE_CHAT=Start Private Chat
|
START_PRIVATE_CHAT=Start Private Chat
|
||||||
|
|
||||||
|
## Chat monitor
|
||||||
|
CHAT_ROOMS_WITH_MESSAGES=Chat rooms with unread messages
|
||||||
|
SERVER=Server
|
||||||
|
ROOM=Room
|
||||||
|
MESSAGES=Messages
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package com.muwire.gui
|
package com.muwire.gui
|
||||||
|
|
||||||
import griffon.core.artifact.GriffonView
|
import griffon.core.artifact.GriffonView
|
||||||
|
import static com.muwire.gui.Translator.trans
|
||||||
import griffon.inject.MVCMember
|
import griffon.inject.MVCMember
|
||||||
import griffon.metadata.ArtifactProviderFor
|
import griffon.metadata.ArtifactProviderFor
|
||||||
|
|
||||||
|
@ -32,14 +33,14 @@ class ChatMonitorView {
|
||||||
iconImage : builder.imageIcon("/MuWire-48x48.png").image){
|
iconImage : builder.imageIcon("/MuWire-48x48.png").image){
|
||||||
borderLayout()
|
borderLayout()
|
||||||
panel(constraints : BorderLayout.NORTH) {
|
panel(constraints : BorderLayout.NORTH) {
|
||||||
label("Chat rooms with unread messages")
|
label(trans("CHAT_ROOMS_WITH_MESSAGES"))
|
||||||
}
|
}
|
||||||
scrollPane(constraints : BorderLayout.CENTER) {
|
scrollPane(constraints : BorderLayout.CENTER) {
|
||||||
roomsTable = table(autoCreateRowSorter : true, rowHeight : rowHeight) {
|
roomsTable = table(autoCreateRowSorter : true, rowHeight : rowHeight) {
|
||||||
tableModel(list : model.rooms) {
|
tableModel(list : model.rooms) {
|
||||||
closureColumn(header : "Server", type: String, read : {it.server})
|
closureColumn(header : trans("SERVER"), type: String, read : {it.server})
|
||||||
closureColumn(header : "Room", type : String, read : {it.room})
|
closureColumn(header : trans("ROOM"), type : String, read : {it.room})
|
||||||
closureColumn(header : "Messages", type : Integer, read : {it.count})
|
closureColumn(header : trans("MESSAGES"), type : Integer, read : {it.count})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue