Results 1 to 5 of 5

Thread: Translate Question

  1. #1
    Join Date
    Dec 2004
    Posts
    617

    Default Translate Question

    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

  2. #2
    Join Date
    Dec 2004
    Location
    Sydney, Australia
    Posts
    3,573

    Default

    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
    --Ray
    Wrensoft Web Software
    Sydney, Australia
    Zoom Search Engine

  3. #3
    Join Date
    Dec 2004
    Posts
    617

    Default

    Quote Originally Posted by Ray
    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 ?

  4. #4
    Join Date
    Dec 2004
    Posts
    617

    Default

    found it already...

    Code:
    Function PrintNumResults&#40;num&#41;
        if &#40;num = 0&#41; then
            PrintNumResults = "No results"
        elseif &#40;num = 1&#41; then
            PrintNumResults = num & " result"
        else
            PrintNumResults = num & " resultados"
        end if
    End Function

  5. #5
    Join Date
    Dec 2004
    Location
    Sydney, Australia
    Posts
    3,573

    Default

    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.
    --Ray
    Wrensoft Web Software
    Sydney, Australia
    Zoom Search Engine

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •