translate message for losing router, GitHub issue #123

dbus-notify
Zlatin Balevsky 2022-03-05 10:10:27 +00:00
parent 1dd3820a40
commit 637165012a
No known key found for this signature in database
GPG Key ID: A72832072D525E41
2 changed files with 8 additions and 2 deletions

View File

@ -685,6 +685,10 @@ CHAT_SERVERS_ADD=Add
CHAT_SERVERS_DELETE=Delete
CHAT_SERVERS_CONNECT=Connect
## Router disconnect error message
LOST_ROUTER_BODY=MuWire lost connection to the I2P router and will now exit
LOST_ROUTER_TITLE=Connection to I2P router lost
## Tooltips
TOOLTIP_FILE_FEED_DISABLED=Your file feed is disabled

View File

@ -20,6 +20,8 @@ import javax.swing.tree.DefaultTreeModel
import javax.swing.tree.TreeModel
import javax.swing.tree.TreeNode
import static com.muwire.gui.Translator.trans
import com.muwire.core.Core
import com.muwire.core.InfoHash
import com.muwire.core.Persona
@ -792,8 +794,8 @@ class MainFrameModel {
if (core.getShutdown().get())
return
runInsideUIAsync {
JOptionPane.showMessageDialog(null, "MuWire lost connection to the I2P router and will now exit.",
"Connection to I2P router lost", JOptionPane.WARNING_MESSAGE)
JOptionPane.showMessageDialog(null, trans("LOST_ROUTER_BODY"),
trans("LOST_ROUTER_TITLE"), JOptionPane.WARNING_MESSAGE)
view.closeApplication()
}
}