hello.

I am not too sure what causes this, but if I enable pegoEditor and then i18n, and then go to create a page, a story, etc, I get the following error:

Fatal error: Call to undefined function _i18n_get_lang() in /home/fabjo/public_html/sites/all/modules/pegoeditor/PEGOEditor.module on line 374

any idea?

CommentFileSizeAuthor
#2 PEGOEditor.module.patch318 bytesandpego

Comments

mohammed76’s picture

I did more tests, I installed the pego editor module on a fresh site after I installed and enabled the i18n module on my linux vps, I even tried this on my local wamb and I still get the message when I go to localhost/node/add/page "Fatal error: Call to undefined function _i18n_get_lang() in C:\www\vhosts\localhost\sites\all\modules\pegoeditor\PEGOEditor.module on line 374"

  • i18n version 6.x.1.0
  • pegoeditor v6.x.1.0
  • drupal v6.11
andpego’s picture

Title: i18n and pegoeditor, a possible bug » i18n and pegoeditor, a bug
StatusFileSize
new318 bytes

It's a real bug, tthe function _i18n_get_lang() does not exists (it's i18n_get_lang).
Can you try to apply this patch and tell me if it works?
It just changes the line #374 of PEGOEditor.module removing the underscore before i18n_get_lang().

mohammed76’s picture

Status: Active » Fixed

hi.

yes, thank you. that did it. btw, thank you very much for such a very accessible editor. I am blind and have tested it with my screen reader. I can use it very well. and it's the only editor inside of drupal that works this well with screen readers.

Mohammed.

andpego’s picture

Wow...you'll never know how glad I am to receive such a satisfied comment! You really made me proud of my work!

P.S. Did you know that: Alt+1 goes to the first button row, Alt+2 to the second button row, etc., and Alt+0 return to the editing area.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.