Copied to clipboard

Flag this post as spam?

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


  • Andreas Pfanner 196 posts 314 karma points
    Jun 10, 2011 @ 13:25
    Andreas Pfanner
    0

    Multi language issues

    Hi,

    I have the following structure on my Umbraco 4.6.1 install:

    Content

    -- site1.com (Hostname: www.site1.com, Language: de-DE)
    ---- de (Hostname: www.site1.com/de, Language: de-DE) 
    ---- en (Hostname: www.site1.com/en, Language: en-UK)

    -- site2.com (Hostname: www.site2.com, Language: de-DE)
    ---- de (Hostname: www.site2.com/de, Language: de-DE) 
    ---- en (Hostname: www.site2.com/en, Language: en-UK)

    site1.com and site2.com are contents using a master document type (just holding general properties about the sites and have no template assigned), while the de/en contents are the "real" home pages of each site in each language.

    On the master document type (e.g. site1.com), I use umbracoInternalRedirectId in order to get to the default language version (in that case de-DE). 

    Works great so far, but: On the english pages (/en), the german (de-DE) dictionary entries are used (I guess because of the hostname mapping set to de-DE in the master content). But why does the language setting en-UK of the /en pages isn't applied when I AM on /en? Why the parent/master setting is used for all sub pages??

    How can I solve that? Removing the master mappings www.site1.com and www.site2.com causes that calls on the domain only (without language code /de or /en) are not going to the right site anymore, so thats no option.. :-(


    Best Regards

    Andreas

  • Andreas Pfanner 196 posts 314 karma points
    Jun 17, 2011 @ 17:19
    Andreas Pfanner
    0

    Nobody? :(

  • Mathijs 27 posts 60 karma points
    Jun 17, 2011 @ 20:20
    Mathijs
    0

    I experienced that Umbraco does not always intepretate literarly the given hostnames for a node. In other words. If you enter www.site2.com/de as a hostname it will be intepretated as www.site2.com

    So my guess is that you'll need to do some server side interaction to be able to have multiple sites with multiple languages. According my experience Umbraco is currently designed to run just one site with some different languages. However.. maybe subdomains can help you out.. de.site1.com en.site1.com de.site2.com etcetera.

    Mathijs

     

  • Andreas Pfanner 196 posts 314 karma points
    Jun 17, 2011 @ 20:48
    Andreas Pfanner
    0

    What a pity - I was already afraid of such an answer, but thanks for your comment. Unfortunately sub domains are no option. 

    In my case it absolutely makes sense to place 2 sites on the same installation, since they are pretty similar and share some functionality (macros,..), which can so be kept and maintained on one place. As you said, multiple sites are no problem, but in combination with multiple languages it unfortunately behaves unexpected..

    As a workaround solution I am currently thinking about removing the "master mappings" and using an IIS rewriting for each site to do a transparent redirect to the default language. Not very elegant but it should work.. Would be too great if umbraco could handle this..

    Best Regards

    Andreas 

Please Sign in or register to post replies

Write your reply to:

Draft