From 104c484f3a1950e016f687c437c2321950173b2c Mon Sep 17 00:00:00 2001 From: Matt Irvine Date: Tue, 2 Jan 2018 17:01:00 -0500 Subject: [PATCH] Fix old localization targets (#572) --- build.cake | 5 +++++ .../Localization/sr.xlf | 2 +- .../Localization/sr.xlf | 2 +- .../Localization/sr.xlf | 20 +++++++++---------- 4 files changed, 17 insertions(+), 12 deletions(-) diff --git a/build.cake b/build.cake index 74532cad..3bb5e615 100644 --- a/build.cake +++ b/build.cake @@ -575,6 +575,11 @@ Task("SRGen") // Update XLF file from new Resx file var doc = new XliffParser.XlfDocument(outputXlf); doc.UpdateFromSource(); + var outputXlfFile = doc.Files.Single(); + foreach (var unit in outputXlfFile.TransUnits) + { + unit.Target = unit.Source; + } doc.Save(); // Update ResX files from new xliff files diff --git a/src/Microsoft.SqlTools.ResourceProvider.Core/Localization/sr.xlf b/src/Microsoft.SqlTools.ResourceProvider.Core/Localization/sr.xlf index dd771645..9c69950a 100644 --- a/src/Microsoft.SqlTools.ResourceProvider.Core/Localization/sr.xlf +++ b/src/Microsoft.SqlTools.ResourceProvider.Core/Localization/sr.xlf @@ -9,7 +9,7 @@ An error occurred while getting Azure subscriptions: {0} - An error occurred while getting Azure subscriptions + An error occurred while getting Azure subscriptions: {0} diff --git a/src/Microsoft.SqlTools.ResourceProvider.DefaultImpl/Localization/sr.xlf b/src/Microsoft.SqlTools.ResourceProvider.DefaultImpl/Localization/sr.xlf index 1cd1d84b..505d5f4c 100644 --- a/src/Microsoft.SqlTools.ResourceProvider.DefaultImpl/Localization/sr.xlf +++ b/src/Microsoft.SqlTools.ResourceProvider.DefaultImpl/Localization/sr.xlf @@ -9,7 +9,7 @@ An error occurred while getting Azure resource groups: {0} - An error occurred while getting Azure resource groups + An error occurred while getting Azure resource groups: {0} diff --git a/src/Microsoft.SqlTools.ServiceLayer/Localization/sr.xlf b/src/Microsoft.SqlTools.ServiceLayer/Localization/sr.xlf index a0108e0c..4aff52ab 100644 --- a/src/Microsoft.SqlTools.ServiceLayer/Localization/sr.xlf +++ b/src/Microsoft.SqlTools.ServiceLayer/Localization/sr.xlf @@ -316,7 +316,7 @@ Batch execution completed {0} times... - Execution completed {0} times... + Batch execution completed {0} times... @@ -336,7 +336,7 @@ Beginning execution loop - Starting execution loop of {0} times... + Beginning execution loop @@ -456,7 +456,7 @@ Given row ID does not have pending update - Given row ID does not have pending updated + Given row ID does not have pending update @@ -471,12 +471,12 @@ Allowed values for boolean columns are 0, 1, "true", or "false" - Boolean columns must be numeric 1 or 0, or string true or false + Allowed values for boolean columns are 0, 1, "true", or "false" The column '{0}' is defined as NOT NULL but was not given a value - A required cell value is missing + The column '{0}' is defined as NOT NULL but was not given a value . Parameters: 0 - colName (string) @@ -524,7 +524,7 @@ Exact numeric column is missing numeric precision or numeric scale - Decimal column is missing numeric precision or numeric scale + Exact numeric column is missing numeric precision or numeric scale @@ -1529,7 +1529,7 @@ Non-Clustered - Non-Clustere + Non-Clustered @@ -1879,7 +1879,7 @@ Date Correlation Optimization Enabled - Date Correlation Optimization Enabledprototype_db_prop_parameterization = Parameterization + Date Correlation Optimization Enabled @@ -2258,12 +2258,12 @@ Please provide a file path instead of directory path - The file name specified is also a directory name: {0} + Please provide a file path instead of directory path The provided path is invalid - Cannot verify the existence of the backup file location: {0} + The provided path is invalid