Ravindra ponugupati
Ravindra ponugupati

Reputation: 1

Dictionary Item is not invoking from MVC View page

In Umbraco I created dictionary items for language translations. When I am calling the dictionary, translation is not working. It is displaying the original text only.
I have created Dictionary items like

MainMenu.SubMenu.Message
English : Welcome
Denmark : velkomst

I am calling the dictionary item from view level

@Html.Raw(@umbraco.library.GetDictionaryItem("MainMenu.SubMenu.Message"))

Output: Welcome

How to resolve this issue?

Upvotes: 0

Views: 98

Answers (1)

Tim
Tim

Reputation: 4257

Do you have the page that is loading set to Danish language? If not, it will fall back to the default language. You can set the languages on pages by right clicking on the root node of your Danish site, and selecting "Culture & Hostnames". Select Danish, and then when you look at the pages in that section, it should pull out the Danish value instead of the English one.

Upvotes: 0

Related Questions