/// <param name="isPublic">Share language info with scripts</param>
public void UpdateAgentLanguage(String language, boolean isPublic)
{
try
{
UpdateAgentLanguageMessage msg = new UpdateAgentLanguageMessage();
msg.Language = language;
msg.LanguagePublic = isPublic;
URI url = Client.network.getCurrentSim().Caps.CapabilityURI("UpdateAgentLanguage");
CapsHttpClient request = new CapsHttpClient(url);
request.BeginGetResponse(msg.Serialize(), OSDFormat.Xml, Client.settings.CAPS_TIMEOUT);
}
catch (Exception ex)
{
JLogger.error("Failes to update agent language" + Utils.getExceptionStackTraceAsString(ex));
}