public string GetText(UDDITextContext context) { switch (context) { case UDDITextContext.API: { return(defaultLocaleText); } case UDDITextContext.UI: { return(ConstructString(Localization.GetString(textName))); } case UDDITextContext.EventLog: { return(defaultLocaleText); } case UDDITextContext.FileLog: { return(defaultLocaleText); } default: { return(defaultLocaleText); } } }
// // GetMessage will localize the exception message depending on who is // using the exception. Currently, in all cases we localize the message // using the server local, except if the exception is coming from the // UI. // public string GetMessage(UDDITextContext context) { return(uddiText.GetText(context)); }