Browse Source
Merge pull request #9631 from abpframework/auto-merge/rel-4-4/491
Merge branch dev with rel-4.4
pull/9636/head
maliming
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
3 deletions
-
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/TranslateCommand.cs
|
|
|
@ -59,7 +59,7 @@ namespace Volo.Abp.Cli.Commands |
|
|
|
Logger.LogInformation("Target culture: " + targetCulture); |
|
|
|
Logger.LogInformation("Reference culture: " + referenceCulture); |
|
|
|
Logger.LogInformation("Output file: " + outputFile); |
|
|
|
|
|
|
|
|
|
|
|
if (allValues) |
|
|
|
{ |
|
|
|
Logger.LogInformation("Include all keys"); |
|
|
|
@ -195,8 +195,11 @@ namespace Volo.Abp.Cli.Commands |
|
|
|
var targetText = targetLocalizationInfo.Texts.FirstOrDefault(x => x.Name == text.LocalizationKey); |
|
|
|
if (targetText != null) |
|
|
|
{ |
|
|
|
Logger.LogInformation($"Update translation: {targetText.Name} => " + text.Target); |
|
|
|
targetText.Value = text.Target; |
|
|
|
if (!text.Target.IsNullOrEmpty()) |
|
|
|
{ |
|
|
|
Logger.LogInformation($"Update translation: {targetText.Name} => " + text.Target); |
|
|
|
targetText.Value = text.Target; |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
|