Not sure if that can be done, but would love it if...
# contributing
s
Not sure if that can be done, but would love it if it can be made to work with the translation files (for defaults) and maybe the possibility to overrule with dictionary items.
m
I'm using it in my controllers (copied the code as I needed to change the message) and that works like a charm. The GetDictionaryValue method already accepts a fallback message, so this could be either the hardcoded value as follows, GetDictionaryValue("Member is locked out", "Member is locked out"), or fallback to the translation file (have to see how to do that)
If I do it without the translation file the functionality will stay as it is, however users can override the message from the Umbraco Backoffice.
The translation files can be accessed trough the ILocalizedTextService?
2 Views