当前位置: 首页>>代码示例>>C#>>正文


C# ILocalizationManager.GetTextTranslationTEST方法代码示例

本文整理汇总了C#中ILocalizationManager.GetTextTranslationTEST方法的典型用法代码示例。如果您正苦于以下问题:C# ILocalizationManager.GetTextTranslationTEST方法的具体用法?C# ILocalizationManager.GetTextTranslationTEST怎么用?C# ILocalizationManager.GetTextTranslationTEST使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ILocalizationManager的用法示例。


在下文中一共展示了ILocalizationManager.GetTextTranslationTEST方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: VetumaBaseHelper

        /// <summary>
        /// Overloaded class contructor 
        /// Translates text that are necessary for Vetuma auth/payment actions
        /// Use PROD and TEST translations cases -> Feature name: VetumaTextModel
        /// </summary>
        /// <param name="localManager">ILocalizationManager Instance</param>
        public VetumaBaseHelper(ILocalizationManager localManager)
        {
            if (localManager == null)
            {
                return;
            }

            this.TxtModel = new VetumaTextModel();
            string featureName = typeof(VetumaTextModel).Name;

            #if !PROD
            this.TxtModel.PaymentDescription = localManager.GetTextTranslationTEST("PaymentDescription", featureName);
            this.TxtModel.MessageToSeller = localManager.GetTextTranslationTEST("MessageToSeller", featureName);
            this.TxtModel.VetumaButtonInstructions = localManager.GetTextTranslationTEST("VetumaButtonInstructions", featureName);
            this.TxtModel.VetumaButtonText = localManager.GetTextTranslationTEST("VetumaButtonText", featureName);
            #else
            this.TxtModel.PaymentDescription = localManager.GetTextTranslationPROD("PaymentDescription", FeatureName);
            this.TxtModel.MessageToSeller = localManager.GetTextTranslationPROD("MessageToSeller", FeatureName);
            this.TxtModel.VetumaButtonInstructions = localManager.GetTextTranslationPROD("VetumaButtonInstructions", FeatureName);
            this.TxtModel.VetumaButtonText = localManager.GetTextTranslationPROD("VetumaButtonText", FeatureName);
            #endif
        }
开发者ID:targitaj,项目名称:m3utonetpaleyerxml,代码行数:28,代码来源:VetumaBaseHelper.cs


注:本文中的ILocalizationManager.GetTextTranslationTEST方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。