Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 32

Thread: Multilingual add-on for Open-Realty v.3.x

  1. #11
    Join Date
    Jun 2004
    Location
    Beauceville, Quebec, Canada
    Posts
    132

    Default Re: Multilingual add-on for Open-Realty v.3.x

    Couldnt get this to work but it was worth a try. Maybe i did something wrong

  2. #12
    Join Date
    Jul 2005
    Location
    Sao Paulo, BRAZIL
    Posts
    3,763

    Default Re: Multilingual add-on for Open-Realty v.3.x

    Quote Originally Posted by mroyusa View Post
    Couldnt get this to work but it was worth a try. Maybe i did something wrong
    I installed the add-on for a client and it is working just fine (property2.realestatecostarican.com - O-R v.3.0.12p1).
    If you don't say wich was the problem you had, it is impossible to help.

    Eduardo
    Last edited by ebmarques; 02-26-2011 at 07:15 PM. Reason: typo

    Open-Realty® DOCs
    We can easily forgive a child who is afraid of the dark; the real tragedy of life is when men are afraid of the light. (Author Unknown)

  3. #13
    Join Date
    Dec 2010
    Posts
    8

    Default Re: Multilingual add-on for Open-Realty v.3.x

    Quote Originally Posted by ebmarques View Post
    Hi Angelo,

    I was expecting a question like yours!
    Congrats... you did very well creating Site Template folders named "en", "es" and "fr".
    BUT... there is more to do. There is a "home work". You need to edit ALL yours HTML template files (yes, at all folders - main files, listing detail files, search files, etc...) and replace hardcoded texts with language tags. The add-on will not do that for you... For example, at yours "main.html" (3 files, one at each folder) you will find:

    Code:
    <li><a href="{url_index}">HOME</a></li>
    <li><a href="{page_link_3}">ABOUT US</a></li>
    <li><a href="{page_link_2}">CONTACT US</a></li>
    Replace to:

    Code:
    <li><a href="{url_index}" title="{lang_menu_home}">{lang_menu_home}</a></li>
    <li><a href="{page_link_3}" title="{lang_menu_about_us}">{lang_menu_about_us}</a></li>
    <li><a href="{page_link_2}" title="{lang_menu_contact_us}">{lang_menu_contact_us}</a></li>
    Voilá! You have your menu translated.

    BUT... notice this add-on is at a very early stage!!! Notice I have just released version 1.0.2 (update using the Add-on Manager). So far, I am working only at "frontend". I haven't "arrived" at the search page. Many add-on releases will follow and I bet it will take MONTHS to have the add-on working as we wish.

    Do you wish to help us to get this add-on developed? If yes, keep trying and bringing problems.

    Eduardo
    __________________________________________________ _________
    I Eduardo,
    I am sorry for not replying sooner. I had to put this project on the back burner for some time. I want to thank you very much for your reply, this worked like a chram.
    I modified other pages with great success.

    The only page I have a hard time getting to work properly is the detail listing. All the tags Address, City, Post Code, etc... They seem to be displayed using the {feature1} and {feature2} tags and I can't figure out how those ones get translated?

    If you have any ideas (I'm sure you do) it will help me a lot.

    Again THANK YOU very much for your help.

    Angelo

  4. #14
    Join Date
    Jul 2005
    Location
    Sao Paulo, BRAZIL
    Posts
    3,763

    Default Re: Multilingual add-on for Open-Realty v.3.x

    Hi Angelo,

    What you ask should be already at the help file. But I am still writing it. With the next release it will be there. So here goes a copy/paste from the help file that will be attached at the add-on:

    With this add-on, "you cannot" have section tags at your LISTING DETAIL HTML template files. You will need to replace those tags with add-on tags - one add-on tag for each field that should be included at the section tags.

    Insert the add-on tag {addon_multilingual_listfield_#} at your LISTING DETAIL HTML template files replacing the "Listing Template Sections" tags (for example: {top_left}, {top_right}, {center}, etc) with this add-on tag. Where "#" is the LISTING FIELD NAME to be translated. Be sure you have the correspondent PHP language variables at the language files. This add-on tag also works (exactly the same way) at the SEARCH RESULT HTML template files.

    Assuming LAZULI site template and "listing_detail_default.html" template file we have for example:
    Code:
    <div class="float_left_half">
        {top_left}
    </div>
    Replace/remove the section tag "{top_left}" so you will end with:
    Code:
    <div class="float_left_half">
        {listing_field_address_block}{addon_multilingual_listfield_address}{/listing_field_address_block}
        {listing_field_city_block}{addon_multilingual_listfield_city}{/listing_field_city_block}
        {listing_field_state_block}{addon_multilingual_listfield_state}{/listing_field_state_block}
    </div>
    Follow the same procedure and logic for all others section tags.

    ATTENTION: For each add-on tag {addon_multilingual_listfield_#} you are going to use, if you don't have previously created PHP language variables for each field name (and field elements if the case) the Multilingual add-on will detect the missing PHP language variable and will print at your pages this text: "NOT TRANSLATED". The Multilingual add-on will NOT translate the field elements for the following field types: "date", "decimal", "number", "email", "price", "latitude", "longitude", "text", "textarea" and "url" - so for those field elements you shall NOT have correspondent PHP language variables.
    For the field type "email" the Multilingual add-on will automatically OBFUSCATE the email address printed at your pages. For the field type "url" the Multilingual add-on will automatically include "rel=external" at the HTML code link (it will be handled by jQuery, loaded by default at Open-Realty®).

    Once you have previously created and configured listing classes, listing fields, agent fields and member fields, now you need to be sure the language files have the correspondent translations (PHP variables).
    In spite of editing the Open-Realty® language files, in fact it is HIGHLY recommended to CREATE custom language files (yours own language files) placed at "../include/language/xx/custom/" - for example, at each "custom" folder you can create NEW language files and name them as "my_lang.inc.php". Doing this way you will not have any file replaced when updating Open-Realty®. The easiest way: just RENAME the default "example.inc.php" language files you will find inside the "custom" folders. Assuming you have renamed those files to "my_lang.inc.php", now you will have this file at each language "custom" folder and those are the files you will need to edit.

    Lets say you have created the following listing field:
    listing field name: home_features
    with this field caption: Home Features
    and with these field elements: Balcony||Patio/Deck||Waterfront||Gas Range
    That means you will need to have at yours "my_lang.inc.php" language files these PHP variables:

    $lang['Home Features'] = 'Home Features'; // <-- field CAPTION
    $lang['Balcony'] = 'Balcony'; // <-- field ELEMENT
    $lang['Patio/Deck'] = 'Patio/Deck'; // <-- field ELEMENT
    $lang['Waterfront'] = 'Waterfront'; // <-- field ELEMENT
    $lang['Gas Range'] = 'Gas Range'; // <-- field ELEMENT
    So you can use the add-on tag "{addon_multilingual_listfield_home_features}" at your HTML template files (more details about it in another topic).

    IMPORTANT:
    - notice you are going to use the field NAME at the add-on tag but at the language file you will use field CAPTION and ELEMENTS (also notice they are "case sensitive");
    - repeat the above procedure for ALL listing, agent and members fields you have previously created;
    - this add-on will NOT translate field elements for the following field types: "date", "decimal", "number", "email", "price", "latitude", "longitude", "text", "textarea" and "url" - so for those field types you shall NOT have any correspondent PHP language variables for its field elements.

    Eduardo

    Open-Realty® DOCs
    We can easily forgive a child who is afraid of the dark; the real tragedy of life is when men are afraid of the light. (Author Unknown)

  5. #15
    Join Date
    Dec 2010
    Posts
    8

    Default Re: Multilingual add-on for Open-Realty v.3.x

    Hi Eduardo,

    Thank you again for your help.

    I did what you posted above and I have to say that it works great for the Spanish site and doesn't sow up in the French site??? Can't understand why? I compared the two translation files (es and fr) and they bothe contain the same translation variables so It's beyond me to understand exactly what is goign on?

    You can check for yourself using this link: http://servicespremium.com/openrealty

    Also, you will see that the language combo is screwed up. there is like a frame around it and I can't get rid of it. If you know what to do to remove it I will be very happy ;-))

    Other than that I am starting to understand how everything communicates and it's helping me to make intelligent changes to my template.

    Thank you again,

    Angelo

  6. #16
    Join Date
    Jul 2005
    Location
    Sao Paulo, BRAZIL
    Posts
    3,763

    Default Re: Multilingual add-on for Open-Realty v.3.x

    Angelo,

    Quote Originally Posted by aciciotti View Post
    ...you will see that the language combo is screwed up...
    I see at your "template/en/main.html" the tag {addon_multilingual_select}. Where you saw that's the tag to be used? Are you sure your add-on is for O-R v.3.x and it is the latest version 1.0.5?
    The tag to be used is {addon_multilingual_select_frontend}


    Quote Originally Posted by aciciotti View Post
    I did what you posted above and I have to say that it works great for the Spanish site and doesn't sow up in the French site???
    If it works for Spanish but not in French, then it is quite obvious you are doing something wrong.

    Eduardo

    Open-Realty® DOCs
    We can easily forgive a child who is afraid of the dark; the real tragedy of life is when men are afraid of the light. (Author Unknown)

  7. #17
    Join Date
    Dec 2010
    Posts
    8

    Default Re: Multilingual add-on for Open-Realty v.3.x

    Hello Eduardo,

    For the multilangual addon, I have version 1.01 installed. I will try to upgrade.

    As for the french site not working, I will try to find what I am doing wrong and will let you know what I find...

    Again, thank you so much for your help

    Angelo

  8. #18
    Join Date
    Dec 2010
    Posts
    8

    Default Re: Multilingual add-on for Open-Realty v.3.x

    Eduardo,

    just a little update on the situation.
    I updated my multilangual addon and EVERYTHING is working fine. The combo for the language selection is ok and the french section translates normally now.

    Thank you,

    Angelo

  9. #19
    Join Date
    Dec 2010
    Posts
    8

    Default Re: Multilingual add-on for Open-Realty v.3.x

    Hi Eduardo,

    After looking at the pages for the listing details (on all 3 anguages) I realised that all the captions have changed to NOT TRANSLATED and I can't remember what I did that could of changed that?

    Can you tell me what I might of done to triger this?
    I got them working before.

    How can I get them back?

    Thank you so much for your help

    Angelo

  10. #20
    Join Date
    Jul 2005
    Location
    Sao Paulo, BRAZIL
    Posts
    3,763

    Default Re: Multilingual add-on for Open-Realty v.3.x

    Quote Originally Posted by aciciotti View Post
    Can you tell me what I might of done to triger this?
    What you have done "wrong" nobody can say!
    But the instructions about "how to do it right" are at my post#14 above.

    [EDITED]Forgot to say something very important: the Multilingual Add-on IS NOT compatible with Open-Realty v.3.1.0 or greater.[/EDITED]

    Eduardo
    Last edited by ebmarques; 03-29-2011 at 01:36 AM. Reason: Multilingual Add-on IS NOT compatible with Open-Realty v.3.1.0 or greater

    Open-Realty® DOCs
    We can easily forgive a child who is afraid of the dark; the real tragedy of life is when men are afraid of the light. (Author Unknown)

Similar Threads

  1. Upgrading Open-Realty 2.x Templates For Open-Realty 3.x
    By greengiant in forum Announcements
    Replies: 0
    Last Post: 06-24-2010, 03:16 PM
  2. U.M.P. - Unofficial Multilingual Patch for Open-Realty®
    By ebmarques in forum Language help, ideas, discussion & Releases (CLOSED)
    Replies: 566
    Last Post: 06-17-2010, 11:31 PM
  3. Replies: 0
    Last Post: 05-31-2010, 04:19 PM
  4. Open-Realty 1.1.5b to Open-Realty 2.0 Upgrade Notes.
    By greengiant in forum HELP (CLOSED)
    Replies: 20
    Last Post: 12-07-2007, 11:58 PM
  5. U.M.P. - Unofficial Multilingual Patch for Open-Realty®
    By ebmarques in forum General Discussion
    Replies: 0
    Last Post: 02-16-2007, 12:46 PM

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
  •