PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

Multi language

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

  • Multi language

    How about a multi language search page en website?

  • #2
    You'll need to give more details about what you want. Do you want a search form per language? Or do you want a search function that covers multiple languages? Or do you want to change the language of the text used on the search form?

    Anyway, have a look at this page,
    http://www.wrensoft.com/zoom/support/languages.html
    it covers common language questions.

    -----
    David

    Comment


    • #3
      Multi language

      We use the multiview in Apache to serve the language the browser likes the most. Hence, we have index.html.en, index.html.de, index.html.nl, etc.

      Does Zoom search send the prefered language to get to correct language while indexing on line? If not, can it be added to the http request. It is rather trival, but very essential!

      Arjen

      Comment


      • #4
        Zoom does not currently send an "Accept-language" header when requesting pages in spider mode. We will look into adding this for a future version, and allow the user to specify the preferred language.

        Note that this would still only allow you to create a single index per language. Combining multiple language versions in a single index would not be possible due to the nature of the URLs being the same from the client-side (despite being indexed with different preferred languages).

        An alternative, if possible, is to use Offline indexing. You can then index all the files (index.html.en, index.html.de, etc.) as they are physically on your hard disk. However, this would not work for sites which use server-side scripting (eg. PHP or ASP driven sites).
        --Ray
        Wrensoft Web Software
        Sydney, Australia
        Zoom Search Engine

        Comment


        • #5
          Multilanguage

          Off line indexing starts with a base url http://xxx.html.de. However, this index has no linking to xxxy.html.de but to xxxy only of xxxy.html. So the spider finds nothing.

          In the end we have to add all pages as startpoint which is rather clumsy.

          But, is there an other way?

          Arjen

          Comment


          • #6
            Not sure what you mean. Offline mode does not use a spider, and does not depend on links. It simply scans all the files under a certain folder on your local hard disk (permitted by your Scan/Skip Options in the Config window). So how you are linking should not affect what pages are found or not, nor should the base URL.

            You might want to take a look at chapter 2 of the Users Guide:
            http://www.wrensoft.com/zoom/usersguide.html
            --Ray
            Wrensoft Web Software
            Sydney, Australia
            Zoom Search Engine

            Comment


            • #7
              Multi language

              Thank you for your optimistic answer.

              However, I am not able to index a file with the extension .html.de or .html.en. A file with .html will index correctly.

              Zoomsearch will not find a file if the extension has a double .? I am correct?

              Arjen

              Comment


              • #8
                Zoom will index files regardless of how many dots are in the filename.

                What you should note is that, when a file is named "something.html.de", the file extension is actually ".de", and NOT ".html.de"

                So you should make sure that you have ".de" and ".en" in your extensions list of files to scan (in the Configuration window, under the Scan Options tab). If you had mistakenly only entered ".html.de" here instead, it will not scan that file.
                --Ray
                Wrensoft Web Software
                Sydney, Australia
                Zoom Search Engine

                Comment


                • #9
                  Preferred language

                  Oke, I am using the pro version and I give every language its own directory:
                  searchen, searchde, etc. Every language has its own domain: www.molca.com, www.molca.de, etc. No problem, but ..

                  Very browser can select the favourite language in the http header and I do not know in advance the preferred language. So I have to index all the languages. No problem. But the search page displays all languages. So I made a category of each language including a default one. However, I can not choose the priority of the category. That is on www.molca.com (English) the English category should be the first one, on www.molca.de (Deutsch) the German language should be the first category.

                  Is there a way to specify the priority of the displayed category?

                  Can I make multiple search pages -one for every language- and still use the same index files?

                  Arjen

                  Comment


                  • #10
                    You can create your own search forms, see this FAQ:
                    http://www.wrensoft.com/zoom/support...tml#searchform

                    By doing so, you can create one with English as the selected category, one with German as the selected category, etc. and display the appropriate search pages as required.

                    You could even exclude the Category dropdown HTML from your customized search forms and just hard-code each to a specific category (see the "Defining a search form for a categories enabled website" section from the above FAQ). That way, each search page will be restricted to a specific language category that you define.
                    --Ray
                    Wrensoft Web Software
                    Sydney, Australia
                    Zoom Search Engine

                    Comment


                    • #11
                      Rename Category

                      Is it possible to rename the name category to Language (without hacking)?

                      Arjen

                      Comment


                      • #12
                        Yes, in the languages file you can change this text.

                        For English, the language file is English.zlang

                        The line you want to change is
                        STR_FORM_CATEGORY=Category:

                        You can get access to the languages files from the languages tab in the Zoom configuration window.

                        ----
                        David

                        Comment


                        • #13
                          Multi language search template

                          After some experimenting we would like to have one (1) search 'database' with several search templates each in the correct language.

                          We need only the template in the local language as the user can specify the search language in the form.

                          Currently, we have to scan the web 6 times for 6 languages to link the template to the 'database'.

                          Is there a way to scan once and only change the template for each language?

                          Comment


                          • #14
                            There are several ways you could implement this.

                            One simple way would be to have a different sub-directory on the server per language and copy all search files, except the template, to each directory. So you would index once and then copy the resulting files a few times.

                            Another method would be to customise our script to use different templates based on a paramter that you pass into the script.

                            Another method would be also empty out the template file of language dependant text and instead provide your own search page (per language). See,
                            http://www.wrensoft.com/zoom/support...tml#searchform

                            ----
                            David

                            Comment

                            Working...
                            X