In WindowsPhone application i can use localization in this way:
string LocalizedString = LocaleResource.MyPreciousString;
But can i refer to localized resources by string code, not property name?
I want to do something like that:
string LocalizedString = LocaleResource.GetLocalizedStringByCode("MyPreciousString");
Ok, so “Use Reflection, Luke”! This code should help:
So, we can use this method in some Translator class and get localized string by it’s code represented as string.