aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared
diff options
context:
space:
mode:
authorCinder2015-06-05 08:52:25 -0600
committerDiva Canto2015-06-13 07:27:01 -0700
commit6f71d5c2c65802bd6b0196e825cabbfe8d34fe9e (patch)
treecbf18dd1caee32b0c2c9571e7f18466de1da87cc /OpenSim/Region/ScriptEngine/Shared
parentRemoving parts that escaped from the lab - thanks AliciaRaven (diff)
downloadopensim-SC-6f71d5c2c65802bd6b0196e825cabbfe8d34fe9e.zip
opensim-SC-6f71d5c2c65802bd6b0196e825cabbfe8d34fe9e.tar.gz
opensim-SC-6f71d5c2c65802bd6b0196e825cabbfe8d34fe9e.tar.bz2
opensim-SC-6f71d5c2c65802bd6b0196e825cabbfe8d34fe9e.tar.xz
Support for Linden AgentPreferences capability and friends (UpdateAgentLanguage and UpdateAgentInformation) and Mantis #7157
Signed-off-by: Diva Canto <diva@metaverseink.com>
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs16
1 files changed, 11 insertions, 5 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 53c198e..b50f429 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -6147,12 +6147,18 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6147 6147
6148 public LSL_String llGetAgentLanguage(string id) 6148 public LSL_String llGetAgentLanguage(string id)
6149 { 6149 {
6150 // This should only return a value if the avatar is in the same region 6150 // This should only return a value if the avatar is in the same region, but eh. idc.
6151 //ckrinke 1-30-09 : This needs to parse the XMLRPC language field supplied
6152 //by the client at login. Currently returning only en-us until our I18N
6153 //effort gains momentum
6154 m_host.AddScriptLPS(1); 6151 m_host.AddScriptLPS(1);
6155 return "en-us"; 6152 IAgentPreferencesModule ap = World.RequestModuleInterface<IAgentPreferencesModule>();
6153 if (ap != null)
6154 {
6155 UUID key = new UUID();
6156 if (UUID.TryParse(id, out key))
6157 {
6158 return ap.GetLang(key);
6159 }
6160 }
6161 return new LSL_String("en-us");
6156 } 6162 }
6157 /// <summary> 6163 /// <summary>
6158 /// http://wiki.secondlife.com/wiki/LlGetAgentList 6164 /// http://wiki.secondlife.com/wiki/LlGetAgentList