Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Lauris Stephani 2 posts 22 karma points
    May 17, 2010 @ 15:48
    Lauris Stephani
    0

    No easy way to do multilingual

    I've read the documentation and forums and I've seen two ways of doing multilingual websites (on a single domain name):

    1. 1:1 with as many trees as languages supported and a xslt content/children selector
    2. nodes properties with as many tabs as languages supported

    I'll try to explain our website's peculiarity:

    • This is no 1:1 content, some pages won't have other languages equivalent.
    • Language tabs mean you have to add a new tab to every document type when adding a language.
    • There are usercontrols which are translated using umbraco framework and dictionary depending on thread's current culture. Doesn't need 1:1 trees or tabs.
    • Language selection is done with a dropdown usercontrol which changes thread's current culture.

    Why is it that there is no simple multilingual answer for umbraco websites?

    Any advices on how to implement localization in this case?

  • Morten Bock 1867 posts 2140 karma points MVP 2x admin c-trib
    May 17, 2010 @ 17:35
    Morten Bock
    0

    Do you want different url's for the languages?

  • dandrayne 1138 posts 2262 karma points
    May 17, 2010 @ 17:55
    dandrayne
    1

    Hi Lauris

    Starting with a structure such as this...

    Home
    - Page
    - Page
    - Page


    1.  Create the first version of the website
    2.  Copy the homepage node under content, you now have duplicated the entire website.  I rename the homepage nodes to be the language 2-letter ISO code
    3.  Assign hostnames to the two homepage nodes, choosing the relevent url (e.g.  yoursite.com/en) and language
    4.  Replace hard coded text in your templates/macros with dictionary items

    - En
        - page
        - page
        - page

    - Es
        - page
        - page
        - page

       
    Now you have a 1:1 website but there is no reason why it must remain as such.  The sites can be as different as necessary, and in my case 1:1 sites are never appropriate in the first place.  Using tabs for language text is also a path to madness as it just doesnt scale very well.

    Does this explain further?  You can see an example of this approach at www.pindar.com

       

  • Morten Bock 1867 posts 2140 karma points MVP 2x admin c-trib
    May 17, 2010 @ 18:12
    Morten Bock
    0

    I'm guessing that the challenge is that all sites will have the same navigation, but some sites will be a mix of english and translated content. And that particular scenario will need some sort of customized development in order to get it working nicely.

  • Chris Dunn 210 posts 401 karma points
    May 17, 2010 @ 20:06
    Chris Dunn
    0

    Dan,

    Not sure if pindar.com is live or development but the french version pindar.fr was not found.  Don't know if you recently registered it or not.  Just FYI.

    -Chris

  • dandrayne 1138 posts 2262 karma points
    May 18, 2010 @ 10:31
    dandrayne
    0

    eurgh, looks like the client forgot to renew their domain.  thanks!

  • Lauris Stephani 2 posts 22 karma points
    May 18, 2010 @ 13:38
    Lauris Stephani
    0

    Morten Bock > we'd rather go with a single url.

    Thank you for your help dandrayne, sadly, 1:1 structure doesn't seem to fit our website's needs.

    We'll probably try out a single tree structure with translated pages under the same parent node. which would look like

    - Home
    - page_en
    - page_fr
    - page_ru
    - Buy
    - Sell
    - etc.

    Now, following on the dropdown change usercontrol system, do you think it could be feasible to create properties in a doctype for redirections. i.e. when thread's current culture changes, the uc accesses the page property and redirects to the relevant localized clone.

  • dandrayne 1138 posts 2262 karma points
    May 18, 2010 @ 13:45
    dandrayne
    0

    Hi Lauris

    Using that method, you are not tied to a 1:1 structure at all.  Copying and pasting a site structure gives you a starting point but no requirement to keep the structure the same.  You could start afresh with the new site just by creating a new homepage under the root node and not copying and pasting - same result.

    Using the method such as

    - Home
     
    - page_en
     
    - page_fr
     
    - page_ru

    Would end up being a pain, as

    * you'll need to set hostnames every time you create a new page
    * You won't be able to restrict user access to "only french pages"
    * The tree will become fairly messy pretty quickly
    * Creating navigation based on chosen language could become laborious



  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies