Language

Language

Jacob Romeyn-mit -
Antal besvarelser: 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?

 

Gennemsnitsbedømmelse: -
I svar til Jacob Romeyn

Re: Language

Martin Dougiamas-mit -
Core developers-ip assinga Documentation writers-ip assinga Moodle HQ-ip assinga Particularly helpful Moodlers-ip assinga Plugin developers-ip assinga Testers-ip assinga
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.
I svar til Martin Dougiamas

Re: Language

Jacob Romeyn-mit -

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?