and I again get the sequence contains no elements error.
Am I missing something? I have a dictionary with actual words and translations.
This does work:
UmbracoHelper helper = new UmbracoHelper(umbracoContext); var dictionaryValue = helper.GetDictionaryValue("Jaar");
..but I want to programatically get translations for different languages and this solution won't let me do that. It always returns the translation of the "current" language (probably based on the umbracoContext).
V6: LocalizationService.GetDictionaryItemByKey
I'm trying to insert dictionary items from code using the new API's.
What I've got so far is:
which returns: "Sequence contains no elements". Which doens't make sense as I do have a "Phone" key in my Dictionary items.
Hope somebody can shed some light / write some documentation.
ok than back to using umbraco.library.GetDictionaryItem("Phone")
I have tried
as an alternative, but I get the same sequence contains no elements error.
And I tried
and I also get the sequence contains no elements error.
And I tried
and I again get the sequence contains no elements error.
Am I missing something? I have a dictionary with actual words and translations.
This does work:
..but I want to programatically get translations for different languages and this solution won't let me do that. It always returns the translation of the "current" language (probably based on the umbracoContext).
I ended up writing this to get Dictionart Items based on key and ISO code
Same here. LocalizationService just keep giving me "sequence contains no elements"
Umbraco 6.1.6
The bug has been aknowledged, here's to hoping it will be fixed soon :-)
http://issues.umbraco.org/issue/U4-2640
is working on a reply...