Hi,
I've just updated from 7.4.1 to 7.4.3. I don't know if that caused the problem, but I have two branches with different domain and language. When I'm in either domain Umbraco.CultureDictionary.Culture.Name always return "en-US" in a SurfaceController/Action. What could be causing this? I mean I should be getting different CultureInfo. It's as if I have only one language.I've looked up at the database, and everything is there, got both domains. Domain.GetDomains()` returns only one domain. I'm confused what could be causing this.
Have you checked that both hostnames are still correct on your homepage nodes in the backoffice when viewing the "Culture and hostnames" information on those?
Hi Jan,
I pass the Culture Name from the View to the Surface Action, and it is Ok(I'm getting the right culture). But in the controller, if i try to access the culture name I only get "en-US". I do not what could be causing this
Just to be clear - I talk about the culture and hostnames settings you set in the backoffice of Umbraco on your homepage nodes - Not code. Sorry if I'm misunderstanding your reply but it seems to me that you're in thinking in code? :)
I suspect you need to setup cultures for you root-nodes in the content section of Umbraco.
Domain culture
Hi, I've just updated from 7.4.1 to 7.4.3. I don't know if that caused the problem, but I have two branches with different domain and language. When I'm in either domain
Umbraco.CultureDictionary.Culture.Name
always return "en-US" in a SurfaceController/Action. What could be causing this? I mean I should be getting different CultureInfo. It's as if I have only one language.I've looked up at the database, and everything is there, got both domains.Domain.GetDomains
()` returns only one domain. I'm confused what could be causing this.Hi Krum
Have you checked that both hostnames are still correct on your homepage nodes in the backoffice when viewing the "Culture and hostnames" information on those?
/Jan
Hi Jan, I pass the Culture Name from the View to the Surface Action, and it is Ok(I'm getting the right culture). But in the controller, if i try to access the culture name I only get "en-US". I do not what could be causing this
Hi Krum
Just to be clear - I talk about the culture and hostnames settings you set in the backoffice of Umbraco on your homepage nodes - Not code. Sorry if I'm misunderstanding your reply but it seems to me that you're in thinking in code? :)
I suspect you need to setup cultures for you root-nodes in the content section of Umbraco.
/Jan
is working on a reply...