Open Closed

LocalizableString is NOT implemented ILocalizableString #944


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)
  • 0
    hikalkan created

    Hi,

    See localization document: http://www.aspnetboilerplate.com/Pages/ ... DocGetText Localization manager also gets string arguments, rather than ILocalizableString.

  • 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

  • 0
    hikalkan created

    That's the right way :)