Exemplo n.º 1
0
        public async Task UpdateLanguageText(UpdateLanguageTextInput input)
        {
            CultureInfo         cultureInfoByChecking = this.GetCultureInfoByChecking(input.LanguageName);
            ILocalizationSource source = this.LocalizationManager.GetSource(input.SourceName);

            await this._applicationLanguageTextManager.UpdateStringAsync(this.AbpSession.TenantId, source.Name, cultureInfoByChecking, input.Key, input.Value);
        }
 /// <summary>
 ///     修改语言的文本内容
 /// </summary>
 /// <param name="input"></param>
 /// <returns></returns>
 public async Task UpdateLanguageText(UpdateLanguageTextInput input)
 {
     var culture = CultureHelper.GetCultureInfo(input.LanguageName);
     var source  = LocalizationManager.GetSource(input.SourceName);
     await _languageTextManager.UpdateStringAsync(AbpSession.TenantId, source.Name, culture, input.Key,
                                                  input.Value);
 }
Exemplo n.º 3
0
 public async Task UpdateLanguageText(UpdateLanguageTextInput input)
 {
     var culture = GetCultureInfoByChecking(input.LanguageName);
     var source  = LocalizationManager.GetSource(input.SourceName);
     await _applicationLanguageTextManager.UpdateStringAsync(InfrastructureSession.TenantId, source.Name, culture, input.Key, input.Value);
 }