|Date||Mon, 2 Apr 2007 21:46:32 +1200|
|Subject||Re: [greenstone-users] Translation question...|
>For example when I do a search I get the following string:
In Greenstone, query result is generated by the server through the macro _resultline_, which is in the query.dm file in the macros directory. It is composed by the number of matching documents ( i.e. 27 in this case, which is dynamically returned from the server) plus another macro _textlotsdocs_ in the corresponding macro file (in the case of English, english.dm). If the number of matching documents exceeds the up-to limit (it is set in the 'preferences' page), another macro called _textmorethan_ (again, in english.dm) will be prefixed before the matching number (eg. 27), resulting in "more than xx documents matched the query".
Finally, you need to work out how to invoke your translation function when the page is loaded. For example, window.onload=''your_function_name".