Community Forums

ATutor Bug Reports

Search in multilingual documentation


You must be signed-in to post.

AuthorSubject
 
Page: 1
lchavet
Subject: Search in multilingual documentationQuote this post in your reply
Hi,

version of ATutor - 1.6
versions of php - 5

We are currently installing a French documentation. When I searched through it, the French search feature was looking into the English files.

The problem is in /documentation/common/search.php
if ($req_lang == 'en') {
$files = glob('../'.$section . '/*.php');
} else {
$files = glob('../'.$section . '/'.$req_lang.'/*.php');
}
if (is_array($files)) {
foreach ($files as $filename) {
$count = 0;
$filename = basename($filename);
$contents = strtolower(file_get_contents('../'.$section.'/'.$filename));

so $contents never uses the $req_lang to specify the language.
$contents = strtolower(file_get_contents($filename));
$filename = basename($filename);

Thanks
Posted: 2008-05-12 14:55:45
cindy

Avatar for cindy
Subject: Re: Search in multilingual documentationQuote this post in your reply
Hi, this is fixed and included in 1.6.1

Thanks.
Posted: 2008-05-21 11:57:58
 
Page: 1

You must be signed-in to post.

Related Articles