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.
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.
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.
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
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?
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!
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.
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
Of course.
At the top of that file just set
Then retrieve the log file in App_Data/Logs
Ahh, thanks! :-)
Tried setting it to Debug as you described and checked the log. It gives a lot of these:
And all of my other dictionary items :-/
Can you mail me the log?
sgay <at> pilotine.com
is working on a reply...