includes/clientside/static/l10n.js
changeset 391 85f91037cd4f
parent 387 92664d2efab8
child 461 717e71109645
--- a/includes/clientside/static/l10n.js	Tue Jan 29 17:29:08 2008 -0500
+++ b/includes/clientside/static/l10n.js	Tue Jan 29 23:15:44 2008 -0500
@@ -9,9 +9,18 @@
   if ( typeof(enano_lang[lang_id]) != 'object' )
     return false;
   this.strings = enano_lang[lang_id];
+  this.lang_id = lang_id;
   
   this.get = function(string_id, subst)
   {
+    if ( window.console )
+    {
+      try {
+        window.console.log('$lang(' + this.lang_id + '): requested string: ' + string_id);
+      }
+      catch(e)
+      {}
+    }
     var catname = string_id.substr(0, string_id.indexOf('_'));
     var string_name = string_id.substr(string_id.indexOf('_') + 1);
     if ( typeof(this.strings[catname]) != 'object' )