This may sound as a bit of a strange request. But it is possible to directly select a specific language in the dictionary, overriding any top-level definitions?
Something like @Dictionary.Home.English or @Dictionary["Home"].English
It is for bulk emails - I use Umbraco to render the html. The user have a list of recipients and sets language for each list. But when the html renders, it always use the user-setting...
Dictionary - select SPECIFIC language
Hi
This may sound as a bit of a strange request. But it is possible to directly select a specific language in the dictionary, overriding any top-level definitions?
Something like @Dictionary.Home.English or @Dictionary["Home"].English
It is for bulk emails - I use Umbraco to render the html. The user have a list of recipients and sets language for each list. But when the html renders, it always use the user-setting...
Hi Jesper,
You can just make use of @umbraco.library.GetDictionayItem("Home") after setting the language type.Or if am not mistaken you can also try using
if (currentLanguage.Contains(en)) {
@:Some text
}
}
Not sure what you aare looking to achive but hope this helps
Hi again
Yes, I ended up doing something similar:
After this I could just use the dictionary as usual, although my overall culture-setting is different.
Great but perhaps you can also remove US from the Culture Info and make use of only 2 characters instead
//Fuji
is working on a reply...