Hi,
I am trying to translante a word inside the search.asp (I am testing the version 3), but I canīt find it inside the code.
the sentense is:
10 results found.
I need to translate the 'results' word. All the other translation were made... but i canīt find where in the code, i translate this.
shouldnīt it be around here:
?'Display search results
Response.Write("<div class=""summary"">")
if matches = 0 Then
Response.Write("não foi encontrado resultado para a pesquisa efetuada.")
elseif numwords > 1 AND andq = 0 then
SomeTermMatches = matches - fullmatches
Response.Write(PrintNumResults(fullmatches) & " found containing all search terms. ")
if (SomeTermMatches > 0) then
Response.Write(PrintNumResults(SomeTermMatches) & " found containing some search terms.")
end if
elseif numwords > 1 AND andq = 1 then
Response.Write(PrintNumResults(fullmatches) & " found containing all search terms.")
else
Response.Write(PrintNumResults(matches)
& " encontrados.")
end if
Thanks
We recommend you use Version 4.0 for the language file / translation feature. This requires no changes to be made to the search script itself in order to translate the text on the page.
For more information about this feature, see Chapter 6.2 of our Users Guide:
http://www.wrensoft.com/zoom/usersguide.html
Version 4.0 is available here:
http://www.wrensoft.com/zoom/index.html
Thanks Ray, but I donīt wanna test version 4 now, i am trying with the version 3, can u please help me in my question ?Originally Posted by Ray
found it already...
Code:Function PrintNumResults(num) if (num = 0) then PrintNumResults = "No results" elseif (num = 1) then PrintNumResults = num & " result" else PrintNumResults = num & " resultados" end if End Function
I should point out that using the language files in V4 eliminates the need to apply your translations everytime you upgrade to a new build (eg. for a bug fix, etc). It also avoids the risk of breaking script functionality when you make these changes, or when you port them over.