externalize server disconnect and reconnect message

java-i2p-warning
Zlatin Balevsky 2022-08-29 12:58:09 +01:00
parent 1359a0d1af
commit a14d0023b2
No known key found for this signature in database
GPG Key ID: A72832072D525E41
2 changed files with 4 additions and 2 deletions

View File

@ -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()
}

View File

@ -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