Warning: include_once(/www/templates/gt/parts/blogs/groupertips/first.php) [function.include-once]: failed to open stream: No such file or directory in /www/gt/docs/grouper/tips/2004/09/when-searching-in-non-english-language.php on line 19

Warning: include_once() [function.include]: Failed opening '/www/templates/gt/parts/blogs/groupertips/first.php' for inclusion (include_path='.:/usr/local/lib/php') in /www/gt/docs/grouper/tips/2004/09/when-searching-in-non-english-language.php on line 19

Monday, September 06, 2004

When searching in a non-English language... 

When using Grouper to search Google News in a non-English language, remember to change not only the language setting:

GrouperSourceConf('language','fr');

...but also to update the value of the "toss before" setting as needed. For example, in English, this setting tells Grouper to ignore everything that appears on the results page before the words "by date". In French, "by date" changes to "tri par date". The following setting adjusts for the language change:

GrouperSourceConf('tossbefore','Tri par date');

// posted by Antone Roundy @ 11:20 AM

2 Comments:

By 123netguide.com, at September 07, 2004 10:52 AM  

This post has been removed by a blog administrator.

By Antone Roundy, at October 07, 2004 5:27 PM  

Here's a more complete example:

<?php
require_once "/path/to/grouper.php";
GrouperSourceConf('language','fr');
GrouperSourceConf('tossbefore','Tri par date');
GrouperShow("search terms","name_of_cache_file");
?>

Post a Comment

http://grouper.docs.geckotribe.com/tips/2004/09/when-searching-in-non-english-language.php

This page is powered by Blogger. Isn't yours?


Warning: include_once(/www/templates/gt/parts/blogs/groupertips/second.php) [function.include-once]: failed to open stream: No such file or directory in /www/gt/docs/grouper/tips/2004/09/when-searching-in-non-english-language.php on line 74

Warning: include_once() [function.include]: Failed opening '/www/templates/gt/parts/blogs/groupertips/second.php' for inclusion (include_path='.:/usr/local/lib/php') in /www/gt/docs/grouper/tips/2004/09/when-searching-in-non-english-language.php on line 74
ARCHIVES

Warning: include_once(/www/templates/gt/parts/blogs/groupertips/third.php) [function.include-once]: failed to open stream: No such file or directory in /www/gt/docs/grouper/tips/2004/09/when-searching-in-non-english-language.php on line 81

Warning: include_once() [function.include]: Failed opening '/www/templates/gt/parts/blogs/groupertips/third.php' for inclusion (include_path='.:/usr/local/lib/php') in /www/gt/docs/grouper/tips/2004/09/when-searching-in-non-english-language.php on line 81