aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-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