예제 #1
0
        public static string GetTeleProductCode(string language)
        {
            CultureInfo    language2      = new CultureInfo(language);
            UmLanguagePack umLanguagePack = UmLanguagePackUtils.GetUmLanguagePack(language2);

            return(umLanguagePack.TeleProductCode.ToString("B"));
        }
 protected override void InternalValidate()
 {
     TaskLogger.LogEnter();
     base.InternalValidate();
     try
     {
         this.languagePack = UmLanguagePackUtils.GetUmLanguagePack(this.Language);
     }
     catch (UnSupportedUMLanguageException exception)
     {
         base.WriteError(exception, ErrorCategory.InvalidData, null);
     }
     TaskLogger.LogExit();
 }
 protected override void PopulateContextVariables()
 {
     base.PopulateContextVariables();
     this.Language = CultureInfo.CreateSpecificCulture("en-us");
     try
     {
         UmLanguagePack umLanguagePack = UmLanguagePackUtils.GetUmLanguagePack(this.Language);
         this.TeleProductCode  = umLanguagePack.TeleProductCode;
         this.TransProductCode = umLanguagePack.TransProductCode;
         this.TtsProductCode   = umLanguagePack.TtsProductCode;
         this.ProductCode      = umLanguagePack.ProductCode;
     }
     catch (UnSupportedUMLanguageException exception)
     {
         base.WriteError(exception, ErrorCategory.InvalidData, null);
     }
     base.WriteVerbose(Strings.UmLanguagePackProductCode(this.ProductCode));
 }