Author: johnh
Date: Wed Jun 17 20:00:32 2009
New Revision: 785770

URL: http://svn.apache.org/viewvc?rev=785770&view=rev
Log:
Shim for prefs.getString(".lang"), commonly used by way-old gadgets to get 
language.


Modified:
    incubator/shindig/trunk/features/src/main/javascript/features/core/prefs.js

Modified: 
incubator/shindig/trunk/features/src/main/javascript/features/core/prefs.js
URL: 
http://svn.apache.org/viewvc/incubator/shindig/trunk/features/src/main/javascript/features/core/prefs.js?rev=785770&r1=785769&r2=785770&view=diff
==============================================================================
--- incubator/shindig/trunk/features/src/main/javascript/features/core/prefs.js 
(original)
+++ incubator/shindig/trunk/features/src/main/javascript/features/core/prefs.js 
Wed Jun 17 20:00:32 2009
@@ -150,6 +150,7 @@
  * @return {String} The preference; if not set, an empty string
  */
 gadgets.Prefs.prototype.getString = function(key) {
+  if (key === ".lang") { key = "lang"; }
   return prefs[key] ? esc(prefs[key]) : "";
 };
 


Reply via email to