コード例 #1
0
ファイル: core.cs プロジェクト: hadkins1/Windows-Server-2003
        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);
            }
            }
        }
コード例 #2
0
ファイル: core.cs プロジェクト: hadkins1/Windows-Server-2003
 //
 // 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));
 }