frook1 / gettext-js

Automatically exported from code.google.com/p/gettext-js
MIT License
0 stars 0 forks source link

error str is not found exception #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

This library is not working, when I run the "index.html" example I got "error 
str is not found exception"

this is in line 54:

this.LCmessages[lang] = new jsGettext.Parse(str);

Where str variable is come from?

I've use gettext.js version 0.1.0 from svn on Firefox 3.6.3 - Ubuntu GNU/Linux

Original issue reported on code.google.com by jcubic...@gmail.com on 25 Jul 2010 at 9:55

GoogleCodeExporter commented 9 years ago
This is only when you try to use this library on local drive.

Original comment by jcubic...@gmail.com on 25 Jul 2010 at 10:33

GoogleCodeExporter commented 9 years ago
Change line 40 of gettext.js:
from:
console.log.apply(console, arguments);
to:
console.log.apply(this,arguments);

This resolves the issue. 

Original comment by padraics...@gmail.com on 27 Aug 2013 at 8:52