mirror of https://github.com/zlatinb/muwire
translate message for losing router, GitHub issue #123
parent
1dd3820a40
commit
637165012a
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue