I've started to translate some of the static content on a multi lingual site, but I've run into a problem with dictionary items not showing up after being replaced with the placeholder. It only happens with one language thus far (because I haven't gotten to the 3rd language of the site) and only one translated node appears while the rest have gone missing.
I'm not sure where the problem(s) lies, but here's the xslt:
Hi. Daniel, how do you set a current culture for the request? Keep in mind that umbraco localisation through dictionaries doesn't have any fallback mechanics (though it's already not the case in U5) and if you set the locale with a custom method (e.g. from the accept-languages header, user's cookie or geotargeting) you should always make sure that this locale has a corresponding dictionary.
Jan and Rodion, I have already set the culture of the root nodes as well as the specific domain for each language. I have also, of course, added the translated text to the dictionary. This is why I'm stumped to find that it's not working properly.
Hmmm. I've just looked into your code and got a thought - it's just a shot in the dark, though. Maybe to try to get rid of national characters ('ø') in the dictionary key names? I have absolutely no clue how it can affect the bevaviour of the dictionary, but who knows - for me they look a bit suspicious.
Missing umbracoDictionaryItem output
I've started to translate some of the static content on a multi lingual site, but I've run into a problem with dictionary items not showing up after being replaced with the placeholder. It only happens with one language thus far (because I haven't gotten to the 3rd language of the site) and only one translated node appears while the rest have gone missing.
I'm not sure where the problem(s) lies, but here's the xslt:
Is there anything wrong with my xslt? Where else could the issue be?
Hi Daniel
I suppose you have created the different languages and added the translated text to those in the dictionary, right?
Have you also set the culture by right clicking the root nodes and select "manage hostnames" where you need to add a host name + a culture?
/Jan
Hi. Daniel, how do you set a current culture for the request? Keep in mind that umbraco localisation through dictionaries doesn't have any fallback mechanics (though it's already not the case in U5) and if you set the locale with a custom method (e.g. from the accept-languages header, user's cookie or geotargeting) you should always make sure that this locale has a corresponding dictionary.
Jan and Rodion, I have already set the culture of the root nodes as well as the specific domain for each language. I have also, of course, added the translated text to the dictionary. This is why I'm stumped to find that it's not working properly.
Hmmm. I've just looked into your code and got a thought - it's just a shot in the dark, though. Maybe to try to get rid of national characters ('ø') in the dictionary key names? I have absolutely no clue how it can affect the bevaviour of the dictionary, but who knows - for me they look a bit suspicious.
I mean of course to rename them in both the code and the dictionary.
I'll give that a shot, could very possibly be something like that.
No, the problem still persists, it seems.
is working on a reply...