Language

Language

- Jacob Romeyn の投稿
返信数: 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?

 

Jacob Romeyn への返信

Re: Language

- Martin Dougiamas の投稿
画像 Core developers 画像 Documentation writers 画像 Moodle HQ 画像 Particularly helpful Moodlers 画像 Plugin developers 画像 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.
Martin Dougiamas への返信

Re: Language

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