PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

Translate Question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment


    • #3
      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 ?

      Comment


      • #4
        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

        Comment


        • #5
          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

          Comment

          Working...
          X