Copied to clipboard

Flag this post as spam?

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


  • Bo Damgaard Mortensen 719 posts 1207 karma points
    Feb 01, 2013 @ 16:43
    Bo Damgaard Mortensen
    0

    Umbraco ignores selected language in manage hostnames

    Hi all,

    Currently developing a site running Umbraco version 4.11.1 and having some trouble with the dictionary and managed hostnames. I've set up two languages (danish and english) with a fair amount of dictionary items for buttons and other "static" elements on the site. 

    When I set the domain under "manage hostnames" and select danish as the language for the site (running multiple sites: one site for the danish site and then a copy of that site for the english site) Umbraco seem to ignore the selected language and only outputs the english words from the dictionary.

    Has anyone experienced this aswell? :-)

    Thanks in advance.

    - Bo

  • Stephen 767 posts 2273 karma points c-trib
    Feb 01, 2013 @ 16:46
    Stephen
    0

    So you have one node with one hostname + language "english", and another node with one different hostname + language "danish". Right?

    How do you retrieve the dictionary values?

  • Bo Damgaard Mortensen 719 posts 1207 karma points
    Feb 01, 2013 @ 16:49
    Bo Damgaard Mortensen
    0

    Hi Stephen,

    Thanks for chimin' in! :-)

    Yup, that's my structure right there. 

    I'm retrieving the dictionary values the good ol' fashioned way in Razor: @umbraco.library.GetDictionaryItem("Newsletter")

    Thanks again!

  • Stephen 767 posts 2273 karma points c-trib
    Feb 01, 2013 @ 16:54
    Stephen
    0

    Can you set log4net debug level to Debug (in log4net.config) then retrieve a node on both domains, and copy the relevant part of the log here? It should show whether the culture is properly detected or not.

  • Bo Damgaard Mortensen 719 posts 1207 karma points
    Feb 01, 2013 @ 17:30
    Bo Damgaard Mortensen
    0

    Hi Stephen,

    Not sure I understand how to change the debug level in the log4net.config (have never touched that cfg file actually) ;-) Sorry!

    Can you point me in the direction of what exactly should be added/changed there? :-) I had a peek at the log table too, but no errors are logged there when calling the GetDictionary method.

    Thanks again.

    - Bo

  • Stephen 767 posts 2273 karma points c-trib
    Feb 01, 2013 @ 17:54
    Stephen
    0

    Of course.

    At the top of that file just set

    <priority value="Debug"/>

    Then retrieve the log file in App_Data/Logs

  • Bo Damgaard Mortensen 719 posts 1207 karma points
    Feb 01, 2013 @ 18:32
    Bo Damgaard Mortensen
    0

    Ahh, thanks! :-)

    Tried setting it to Debug as you described and checked the log. It gives a lot of these:

    2013-01-30 15:44:18,060 [5] WARN  Umbraco.Web.Dictionary.DefaultCultureDictionary - [Thread 6] Error returning dictionary item 'Newsletter'

    And all of my other dictionary items :-/

  • Stephen 767 posts 2273 karma points c-trib
    Feb 01, 2013 @ 18:47
    Stephen
    0

    Can you mail me the log?

    sgay <at> pilotine.com

Please Sign in or register to post replies

Write your reply to:

Draft