Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

LocalizableString is NOT implemented ILocalizableString #944


User avatar
0
hole7 created

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)
  • User Avatar
    0
    hikalkan created
    Support Team

    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.

  • User Avatar
    0
    hole7 created

    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

  • User Avatar
    0
    hikalkan created
    Support Team

    That's the right way :)