Hi,
I'm confusing about LocalizableString class, that, why it's not implemented interface ILocalizableString?
Because, we're using ILocalizableString to define on setting for localization but when I'd like to get back the value I cannot use GetString of ILocalizationManager because it just accepts a parameter with type LocalizableString.
Please see image in attached. [http://pasteboard.co/2CB1iVcu.png])
Thanks Ho Le
3 Answer(s)
-
0
Hi,
See localization document: <a class="postlink" href="http://www.aspnetboilerplate.com/Pages/Documents/Localization#DocGetText">http://www.aspnetboilerplate.com/Pages/ ... DocGetText</a> Localization manager also gets string arguments, rather than ILocalizableString.
-
0
Hi hikalkan,
For getting by string, I know how to do that but in my case I'm having a ILocalizableString object (which is DisplayName of notification definition) and I want to get back the localization string before sending back to client :)
By the way, I had solution, I injected ILocalizationContext and then use Localize extension
Thanks
-
0
That's the right way :)