i tried to load dictionary value from asmx webservice class that i'm using.
the webservice using dictionary items, but the problem is that is always get only english values and not the current culture that defined for the hostname.
fot example, i call the function from the webservice like this:
Just replied to your other forum post about the CurrentUICulture question. It should be set to the culture selected for your language/hostname.
Having an overload for the GetDictionaryItem method might be useful, but I think you have a different problem with your install/set-up? (but not sure what exactly).
In the meantime, if you need an overload - then you can roll your own XSLT extension for GetDictionaryItem?
public static string GetDictionaryItem(string key, int cultureId)
{
return new Dictionary.DictionaryItem(key).Value(cultureId);
}
add overload to umbraco.library.GetDictionaryItem
Hi,
i tried to load dictionary value from asmx webservice class that i'm using.
the webservice using dictionary items, but the problem is that is always get only english values and not the current culture that defined for the hostname.
fot example, i call the function from the webservice like this:
when i open the source of the function GetDictionaryItem i see that ifit calls:
i think that although "CurrentUICulture" is not always the current culture that defined to the current hostname, and that makes all the problems.
i think maybe it will be good idea also to add overload function that will pass it also culture id:
if you have another idea how to solve this problem i would like to hear. if not, i think that adding an overload will be the best to solve that.
Thanks,
Eran.
Hi Eran,
Just replied to your other forum post about the CurrentUICulture question. It should be set to the culture selected for your language/hostname.
Having an overload for the GetDictionaryItem method might be useful, but I think you have a different problem with your install/set-up? (but not sure what exactly).
In the meantime, if you need an overload - then you can roll your own XSLT extension for GetDictionaryItem?
Cheers, Lee.
the topic is solved.
please take a look at the other forum post that is related.
never the less, i think its a good idea to add overload to this method..
Thanks,
Eran
is working on a reply...