I have created a few dictonary items. I have deleted the default language (English) and installed Danish as the only language (this was done right after installation and before i created the dictonary items).
I am now trying to get those dictonary items from my template with;
Make sure that the Danish language is the default Culture, easiest to do that is assign the domain name + language to the root node of your site. On the root node right click and select the assign domainnames menu item.
We have a customer site where the customer has 4 domains (4 languages), and our tree consists of 5 nodes (one for each language + english).
Each of the language nodes has a domain and language set to them but not the english, since this should utilize the default language (en). But somehow the default language is never referenced when browsing to this node, and the domain language is used instead. Our node tree looks like this;
root/ ..en/ (no domain name) ..se/ (domain and swedish language) ..dk/ (domain and danish language) ..no/ (domain and norwegian language) ..fi/ (domain and finish language)
when on our swedish site viewing enlish {domain}.nu/en/home.aspx, danish {domain}.dk/en/home.aspx and so one. Default language is set to "en" in our webconfig in our umbraco app settings (as default).
You should choose one approach or the other... either use domains or use the /en or /se folders. I don't recommend using both.
In other words, use a single domain and the culture sub-folders (domain.com/en, domain.com/se, etc.)
Or, use domains only (domain.com, domain.se, etc.)
You will need to set the umbracoHideTopLevelNodeFromPath (in web.config) and the useDomainPrefixes (in /config/umbracoSettings.congif) appropriately for these to work properly. Lots of forum posts about that if you need more info.
Dictonary?
I have created a few dictonary items. I have deleted the default language (English) and installed Danish as the only language (this was done right after installation and before i created the dictonary items).
I am now trying to get those dictonary items from my template with;
But it does not return anything (ie. empty string) - am i missing something?
No suggestions?
Hi,
Make sure that the Danish language is the default Culture, easiest to do that is assign the domain name + language to the root node of your site. On the root node right click and select the assign domainnames menu item.
Cheers,
Richard
I knew i was missing something with setting the default language, but could not for the life of me remember/figure out where to do it.
Your suggestion, of course, worked like a charm - many thx :-)
Similar problem here.
We have a customer site where the customer has 4 domains (4 languages), and our tree consists of 5 nodes (one for each language + english).
Each of the language nodes has a domain and language set to them but not the english, since this should utilize the default language (en).
But somehow the default language is never referenced when browsing to this node, and the domain language is used instead.
Our node tree looks like this;
root/
..en/ (no domain name)
..se/ (domain and swedish language)
..dk/ (domain and danish language)
..no/ (domain and norwegian language)
..fi/ (domain and finish language)
when on our swedish site viewing enlish {domain}.nu/en/home.aspx, danish {domain}.dk/en/home.aspx and so one.
Default language is set to "en" in our webconfig in our umbraco app settings (as default).
Anyone got ideas ?
I always set a language and domain for all sites, even for the Default/English site. That should resolve any ambiguity and make things work properly.
cheers,
doug.
@Douglas:
Even if we set a domain and a language for (swedish site) {domain}.nu/en/ and map that to english-Us it takes the swedish dictionary.
You should choose one approach or the other... either use domains or use the /en or /se folders. I don't recommend using both.
In other words, use a single domain and the culture sub-folders (domain.com/en, domain.com/se, etc.)
Or, use domains only (domain.com, domain.se, etc.)
You will need to set the umbracoHideTopLevelNodeFromPath (in web.config) and the useDomainPrefixes (in /config/umbracoSettings.congif) appropriately for these to work properly. Lots of forum posts about that if you need more info.
cheers,
doug.
is working on a reply...