diff --git a/gui/griffon-app/i18n/messages.properties b/gui/griffon-app/i18n/messages.properties index b21cc997..d69de6e4 100644 --- a/gui/griffon-app/i18n/messages.properties +++ b/gui/griffon-app/i18n/messages.properties @@ -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 diff --git a/gui/griffon-app/models/com/muwire/gui/MainFrameModel.groovy b/gui/griffon-app/models/com/muwire/gui/MainFrameModel.groovy index b3159b1b..a159612d 100644 --- a/gui/griffon-app/models/com/muwire/gui/MainFrameModel.groovy +++ b/gui/griffon-app/models/com/muwire/gui/MainFrameModel.groovy @@ -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() } }