Copied to clipboard

Flag this post as spam?

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


  • Marek 2 posts 21 karma points
    Jul 01, 2009 @ 12:35
    Marek
    1

    Manage Hostnames and Language overwriting

    Umbraco Version: 4.0.2.1
    ASP.NET 3.5

    Microsoft Server 2008
    Microsoft IIS 7.0 (Web Server)

    I host several domains in umbraco. So the structure looks like this:

    Content
    * firstdomain.com
    ** en
    ** pl
    *seconddomain.com
    ** en
    ** pl

    Manage Hostnames configuration:

    1) For firstdomain.com (http://www.firstdomain.com, English (United States))
    2) For firstdomain.com/en (http://www.firstdomain.com/en, English (United States))
    3) For firstdomain.com/pl (http://www.firstdomain.com/pl, Polish (Poland))

    Now - where is the problem?

    Even that firstdomain.com/pl is configured as Polish (Poland) the dictionary is returning texts in English. When I change the language of the root (firstdomain.com) to Polish (Poland) everything is in polish - even firstdomain.com/en
    The same solution worked well in umbraco 3

  • Richard Soeteman 3875 posts 12037 karma points MVP
    Jul 01, 2009 @ 12:59
    Richard Soeteman
    0

    I had the same thing the other day. The firstdomain.com/pl  will not work.  This post (on the old forum) helped me http://forum.umbraco.org/yaf_postst9122_Advice-requested-on-multilingual-site-implementation.aspx 

    Most important things:

    In web.config set umbracoHideTopLevelNodeFromPath to false <add key="umbracoHideTopLevelNodeFromPath" value="false" />

    In UmbracoSettings.config set UseDomainprefixes to false <useDomainPrefixes>false</useDomainPrefixes>

    Also don't assign the real domain names, when the domain name firstdomain.com is found  on 1 of the rootnodes that rootnode will be used. I've ended up assigning NL as  the dutch domain and En as the English domain. Then added nl as the rootnode for the dutch site and en as the rootnode for the english site. Then I could simply browse to http://mydomain.com/nl.aspx which will give me the dutch site and http://mydomain.com/en.aspx for the english site.

    The link above also provides a solution for extensionless url's.

    Hope this helps you,

    Richard
     

  • Marek 2 posts 21 karma points
    Jul 01, 2009 @ 13:28
    Marek
    0

    Hmmm... What I expect is that when I overwrite the Language in Manage Hostnames of a node it will be the most important for its childs. In my opinion it should work exactly like "Recursive" option... And it worked so in umbraco 3.

    That's why I suspect it is a bug...

    So summarizing:
    The configuration described on the top is working well, but when I'm getting texts from umbraco dictionary it returns me the text in languge which is set in the Manage Hostnames of the root - instead of returning it in the language redefined later.

  • Richard Soeteman 3875 posts 12037 karma points MVP
    Jul 01, 2009 @ 21:00
    Richard Soeteman
    0

    Agree with you that it should work different  and your summarize is right. You can always add an Issue to Codeplex to change this.

    Cheers,

    Richard

  • 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