mirror of https://github.com/zlatinb/muwire
externalize server disconnect and reconnect message
parent
1359a0d1af
commit
a14d0023b2
|
@ -292,7 +292,7 @@ class ChatRoomController {
|
|||
|
||||
runInsideUIAsync {
|
||||
long timestamp = System.currentTimeMillis()
|
||||
String toDisplay = DataHelper.formatTime(timestamp) + " You reconnected to the server\n" // TODO translate
|
||||
String toDisplay = DataHelper.formatTime(timestamp) + " " + trans("YOU_RECONNECTED") + "\n"
|
||||
view.appendGreen(toDisplay)
|
||||
trimLines()
|
||||
}
|
||||
|
@ -304,7 +304,7 @@ class ChatRoomController {
|
|||
view.membersTable?.model?.fireTableDataChanged()
|
||||
|
||||
long timestamp = System.currentTimeMillis()
|
||||
String toDisplay = DataHelper.formatTime(timestamp) + " You disconnected from the server\n" // TODO translate
|
||||
String toDisplay = DataHelper.formatTime(timestamp) + " " + trans("YOU_DISCONNECTED") + "\n"
|
||||
view.appendRed(toDisplay)
|
||||
trimLines()
|
||||
}
|
||||
|
|
|
@ -582,6 +582,8 @@ NOT_USER_COMMAND={0} is not a command
|
|||
JOINED_ROOM={0} joined the chat room
|
||||
LEFT_ROOM={0} left the chat room
|
||||
USER_DISCONNECTED={0} disconnected
|
||||
YOU_DISCONNECTED=You disconnected from the server
|
||||
YOU_RECONNECTED=You reconnected to the server
|
||||
|
||||
## Chat monitor
|
||||
CHAT_ROOMS_WITH_MESSAGES=Chat rooms with unread messages
|
||||
|
|
Loading…
Reference in New Issue