Results 1 to 6 of 6

Thread: Spanish Language

  1. #1
    Join Date
    Jul 2004
    Location
    Spain
    Posts
    18

    Smile Spanish Language

    Hi all,

    After a lot of headaches because a lot of terms in the original spanish.php were wrong or misspelled, I decided to translate completely the file adequating it to spanish and latinamerican users with sentences having sense...

    Now, I think is OK, but there are a lot of words and sentences in the other files. I´m still working in the site, but will be ready soon with all corrections made. Will post a link to download a spanish version complete as soon I finished it.

    Cheers,

    Hugo

    PS. Just rename the file to .php
    Attached Files Attached Files

  2. #2
    Join Date
    Jul 2004
    Posts
    1

    Red face Help Me!! How can I change default LANGUAGE

    Hola Hugo!!
    Acá desde Chile. Yo estoy un paso atrás que tú. Instalé un sitio de prueba con el Open-Realty automáticamente a través de la aplicación "Fantástico" que tiene mi Hosting. Eso creo me ahorró varios problemas de instalación.
    Mi problema ahora es que no sé cómo personalizarlo, quiero comenzar por que el lenguaje por defecto sea el Español (y eventualmente tenga la opción de Inglés). Sé donde están los archivos de lenguaje, etc... pero no encontré dónde se configura para que tome el Español en lugar de Inglés.
    ¿¿¿¿Me ayudas tú o alguien por favor????? Con ese dato podré darle utilidad a tu nueva versión del archivo spanish.php Gracias!!

    ENGLISH: Please someone help me how to customize the application to set Spanish as default language.
    Thanks a lot!!

    EL DITI...


    Quote Originally Posted by hsad10
    Hi all,

    After a lot of headaches because a lot of terms in the original spanish.php were wrong or misspelled, I decided to translate completely the file adequating it to spanish and latinamerican users with sentences having sense...

    Now, I think is OK, but there are a lot of words and sentences in the other files. I´m still working in the site, but will be ready soon with all corrections made. Will post a link to download a spanish version complete as soon I finished it.

    Cheers,

    Hugo

    PS. Just rename the file to .php

  3. #3
    Join Date
    Jun 2004
    Posts
    50

    Wink yo que tu me leía primero las instrucciones...

    yo que tu me leía primero las instrucciones de instalación de openrealty (el archivo readme.html)

    si quieres cambiar la configuración (el idioma por ejemplo) en el archivo common.php que está dentro de la carpeta include, ahí vas a ver en una línea que pone english.php la cambias.

    y por último esta versión no es multilenguaje aunque hay algún truco para hacer algo parecido

  4. #4
    Join Date
    Aug 2004
    Posts
    3

    Default Language Translation

    Quote Originally Posted by hsad10
    Hi all,

    After a lot of headaches because a lot of terms in the original spanish.php were wrong or misspelled, I decided to translate completely the file adequating it to spanish and latinamerican users with sentences having sense...

    Now, I think is OK, but there are a lot of words and sentences in the other files. I´m still working in the site, but will be ready soon with all corrections made. Will post a link to download a spanish version complete as soon I finished it.

    Cheers,

    Hugo

    PS. Just rename the file to .php
    HI, could someone explain step by step how to change the default language to Spanish using the file Hugo translated?
    Thanks in advance.

  5. #5
    Join Date
    Aug 2004
    Posts
    1

    Default Change Languaje Multilenguage

    Cual Seria ese truco ????

    Quote Originally Posted by asitudela
    yo que tu me leía primero las instrucciones de instalación de openrealty (el archivo readme.html)

    si quieres cambiar la configuración (el idioma por ejemplo) en el archivo common.php que está dentro de la carpeta include, ahí vas a ver en una línea que pone english.php la cambias.

    y por último esta versión no es multilenguaje aunque hay algún truco para hacer algo parecido

  6. #6
    Join Date
    Aug 2004
    Posts
    21

    Default another option

    after doing a little searching on the option of making the OR website internationalized, we ran across an interesting website that may open many possibilities....
    forstarters.. check out the language translation setup heremtnprops it uses google and altavista to translate entire webpages on the fly.. although its not completely accurate (85% at best) it works better than having the customer goto another site to see what is offered in their own language.

    after looking at this a thought or 2 arose an we started doing a little net searching.. when we came across this website geobytes this is the free portion of the service that allows redirection based on IP localization.

    What does this mean for language customization?....
    rather than having the person required to clik on a link that translates the page manually.. they can automatically be redirected to a language translated page based on the IP address!

    this is cool.. and will implement this in the very near future

    some of the possibilities of changing the common.php file and a couple of the template files.. could redirect the user to an already "properly" translated webpage with content translation already performed at the time the listing was created (in the case of MLS your just plain stuck with using google/altavista)

    if this gives anyone some good idea's, i'd be more than willing to discuss some further development into automatic language redirection params

    <<edited>>

    OK.. the javascript is in place and so far it's only been tested with the US/CA countries... if anyone out there could give me feedback on how well it works from another country... it would be greatly appreciated.


    for those of you who are interesested seeing what the actuall code looks like on the index page.. here it is:


    PHP Code:
    <?php      include("include/common.php");      include("$config[template_path]/user_top.html");  ?>  <head>  <script language="Javascript" src="http://gd.geobytes.com/Gd?after=-1"></script>  <script language="javascript">  var sSpanishLocations="ES,MX,GT,SV,HN,NI,CR,EC,PE,CU,DO,PR,PA,VE,CO,BO,AR,CL,PY,UY";  var sGermanLocations="DE,AT,CH";  var sFrenchLocations="FR,BE";  var sItalianLocations="IT";  var sPortugueseLocations="PO,BR";  var sDutchLocations="NL";  var sRussianLocations="RU,SK,,BY,SI,UZ";  if(typeof(sGeobytesLocationCode)!="undefined")  {     var sCountryCode=sGeobytesLocationCode.substring(0,2);     if(sCountryCode!="US"&&sCountryCode!="CA")     {        if(sSpanishLocations.indexOf(sCountryCode)>=0)        {           // Spanish Visitors would go here           document.write("<META HTTP-EQUIV='Refresh' CONTENT='0; URL=http://translate.google.com/translate?u=http%3A%2F%2Fmtnprops.freeprohost.com%2Findex.php&langpair=en%7Ces&hl=en&ie=UTF-8&oe=UTF-8'>");        }else if(sGermanLocations.indexOf(sCountryCode)>=0)        {           // German Visitors would go here           document.write("<META HTTP-EQUIV='Refresh' CONTENT='0; URL=http://translate.google.com/translate?u=http%3A%2F%2Fmtnprops.freeprohost.com%2Findex.php&langpair=en%7Cde&hl=en&ie=UTF-8&oe=UTF-8'>");        }else if(sFrenchLocations.indexOf(sCountryCode)>=0)        {           // French Visitors would go here           document.write("<META HTTP-EQUIV='Refresh' CONTENT='0; URL=http://translate.google.com/translate?u=http%3A%2F%2Fmtnprops.freeprohost.com%2Findex.php&langpair=en%7Cfr&hl=en&ie=UTF-8&oe=UTF-8'>");        }else if(sItalianLocations.indexOf(sCountryCode)>=0)        {           // italian Visitors would go here           document.write("<META HTTP-EQUIV='Refresh' CONTENT='0; URL=http://translate.google.com/translate?u=http%3A%2F%2Fmtnprops.freeprohost.com%2Findex.php&langpair=en%7Cit&hl=en&ie=UTF-8&oe=UTF-8'>");        }else if(sKoreanLocations.indexOf(sCountryCode)>=0)        {           // potuguese Visitors would go here           document.write("<META HTTP-EQUIV='Refresh' CONTENT='0; URL=http://translate.google.com/translate?u=http%3A%2F%2Fmtnprops.freeprohost.com%2Findex.php&langpair=en%7Cpt&hl=en&ie=UTF-8&oe=UTF-8'>");        }else if(sChineseLocations.indexOf(sCountryCode)>=0)        {           // dutch Visitors would go here           document.write("<META HTTP-EQUIV='Refresh' CONTENT='0; URL=http://world.altavista.com/babelfish/trurl_pagecontent?url=http%3A%2F%2Fmtnprops.freeprohost.com%2Findex.php&lp=en_nl'>");        }else if(sGermanLocations.indexOf(sCountryCode)>=0)        {           // russian Visitors would go here           document.write("<META HTTP-EQUIV='Refresh' CONTENT='0; URL=http://world.altavista.com/babelfish/trurl_pagecontent?url=http%3A%2F%2Fmtnprops.freeprohost.com%2Findex.php&lp=en_ru'>");        }else        {           // World Visitors would go here           document.write("<META HTTP-EQUIV='Refresh' CONTENT='0; URL=http://mtnprops.freeprohost.com/listing_browse.php'>");        }     }  }  </script>  </head>
    or try this:

    <?php
    include("include/common.php");
    include("$config[template_path]/user_top.html");
    ?>
    <head>
    <script language="Javascript" src="http://gd.geobytes.com/Gd?after=-1"></script>
    <script language="javascript">
    var sSpanishLocations="ES,MX,GT,SV,HN,NI,CR,EC,PE,CU,D O,PR,PA,VE,CO,BO,AR,CL,PY,UY";
    var sGermanLocations="DE,AT,CH";
    var sFrenchLocations="FR,BE";
    var sItalianLocations="IT";
    var sPortugueseLocations="PO,BR";
    var sDutchLocations="NL";
    var sRussianLocations="RU,SK,,BY,SI,UZ";
    if(typeof(sGeobytesLocationCode)!="undefined")
    {
    var sCountryCode=sGeobytesLocationCode.substring(0,2);
    if(sCountryCode!="US"&&sCountryCode!="CA")
    {
    if(sSpanishLocations.indexOf(sCountryCode)>=0)
    {
    // Spanish Visitors would go here
    document.write("<META HTTP-EQUIV='Refresh' CONTENT='0; URL=http://translate.google.com/translate?u=http%3A%2F%2Fmtnprops.freeprohost.com% 2Findex.php&langpair=en%7Ces&hl=en&ie=UTF-8&oe=UTF-8'>");
    }else if(sGermanLocations.indexOf(sCountryCode)>=0)
    {
    // German Visitors would go here
    document.write("<META HTTP-EQUIV='Refresh' CONTENT='0; URL=http://translate.google.com/translate?u=http%3A%2F%2Fmtnprops.freeprohost.com% 2Findex.php&langpair=en%7Cde&hl=en&ie=UTF-8&oe=UTF-8'>");
    }else if(sFrenchLocations.indexOf(sCountryCode)>=0)
    {
    // French Visitors would go here
    document.write("<META HTTP-EQUIV='Refresh' CONTENT='0; URL=http://translate.google.com/translate?u=http%3A%2F%2Fmtnprops.freeprohost.com% 2Findex.php&langpair=en%7Cfr&hl=en&ie=UTF-8&oe=UTF-8'>");
    }else if(sItalianLocations.indexOf(sCountryCode)>=0)
    {
    // italian Visitors would go here
    document.write("<META HTTP-EQUIV='Refresh' CONTENT='0; URL=http://translate.google.com/translate?u=http%3A%2F%2Fmtnprops.freeprohost.com% 2Findex.php&langpair=en%7Cit&hl=en&ie=UTF-8&oe=UTF-8'>");
    }else if(sKoreanLocations.indexOf(sCountryCode)>=0)
    {
    // potuguese Visitors would go here
    document.write("<META HTTP-EQUIV='Refresh' CONTENT='0; URL=http://translate.google.com/translate?u=http%3A%2F%2Fmtnprops.freeprohost.com% 2Findex.php&langpair=en%7Cpt&hl=en&ie=UTF-8&oe=UTF-8'>");
    }else if(sChineseLocations.indexOf(sCountryCode)>=0)
    {
    // dutch Visitors would go here
    document.write("<META HTTP-EQUIV='Refresh' CONTENT='0; URL=http://world.altavista.com/babelfish/trurl_pagecontent?url=http%3A%2F%2Fmtnprops.freepr ohost.com%2Findex.php&lp=en_nl'>");
    }else if(sGermanLocations.indexOf(sCountryCode)>=0)
    {
    // russian Visitors would go here
    document.write("<META HTTP-EQUIV='Refresh' CONTENT='0; URL=http://world.altavista.com/babelfish/trurl_pagecontent?url=http%3A%2F%2Fmtnprops.freepr ohost.com%2Findex.php&lp=en_ru'>");
    }else
    {
    // World Visitors would go here
    document.write("<META HTTP-EQUIV='Refresh' CONTENT='0; URL=http://mtnprops.freeprohost.com/listing_browse.php'>");
    }
    }
    }
    </script>
    </head>

    all of this is inserted just bewfore the first <body> tag
    Last edited by flipside72; 11-03-2004 at 06:06 PM. Reason: php quote not right

Bookmarks

Posting Permissions

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