Localize ICE failed message and add "no relay found"

fix-message-formatting 5217
Ingo Bauersachs 12 years ago
parent ae167a48d6
commit 979d99145e

@ -805,6 +805,8 @@ service.gui.avatar.imagepicker.WEBCAM_ERROR=Webcam error
service.gui.security.encryption.required=Encryption required!
service.protocol.ICE_FAILED=Could not establish connection (ICE failed and no relay found)
# impl.protocol.ssh
#Contact Details Seperator(must not be part of contact data stored as persistent
# data)

@ -1082,8 +1082,10 @@ public void propertyChange(PropertyChangeEvent evt)
/* check the state of ICE processing and throw exception if failed */
if(IceProcessingState.FAILED.equals(iceAgent.getState()))
{
String msg = JabberActivator.getResources()
.getI18NString("service.protocol.ICE_FAILED");
throw new OperationFailedException(
"Could not establish connection (ICE failed)",
msg,
OperationFailedException.GENERAL_ERROR);
}
}

Loading…
Cancel
Save