Language

Language

par Jacob Romeyn,
Nombre de réponses : 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?

 

Moyenne des évaluations  -
En réponse à Jacob Romeyn

Re: Language

par Martin Dougiamas,
Avatar Core developers Avatar Documentation writers Avatar Moodle HQ Avatar Particularly helpful Moodlers Avatar Plugin developers Avatar 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.
En réponse à Martin Dougiamas

Re: Language

par 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?