Language

Language

by Jacob Romeyn -
Number of replies: 3

I have almost completed the translation to dutch and during the editing I must have created an error but I can not find it.

Everything still seems to work fine but it says:

Parse error: parse error in /var/www/html/ne/moodle/lib/moodlelib.php(1889) : eval()'d code on line 1

And the only files I worked in was in the lang directory.   If I choose an other language the error does not show.

When I looked at line 1889 I found this code: 

if ($result = get_string_from_file($identifier, $langfile, "\$resultstring")) {

1889        eval($result);
1890        return $resultstring;

But I cheched all the strings in they seem to be ok..  I am not sure what the last part "code on line 1"   which line 1?

 

Average of ratings: -
In reply to Jacob Romeyn

Re: Language

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
The problem is definitely in the strings files somewhere (well, I'm 99% sure). Did you edit them using the web interface or directly?

I use a PHP-mode in vi which spots these things really fast (because the color highlighting stuffs up).

Email the langpack to me as a zip file if you like, and I'll check it.
In reply to Martin Dougiamas

Re: Language

by Jacob Romeyn -

I have isolated it to the moodle.php file.

I edited the files using the web interface.

 

If  all the strings    $a    are the same as the the original than it should be ok is it not?

If  that is correct I like to take an other look at it, it seems alright.   Should I look for something else?