Skip to content

Commit 104c484

Browse files
authored
Fix old localization targets (#572)
1 parent 0ccc01e commit 104c484

File tree

4 files changed

+17
-12
lines changed
  • src
    • Microsoft.SqlTools.ResourceProvider.Core/Localization
    • Microsoft.SqlTools.ResourceProvider.DefaultImpl/Localization
    • Microsoft.SqlTools.ServiceLayer/Localization

4 files changed

+17
-12
lines changed

build.cake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,11 @@ Task("SRGen")
575575
// Update XLF file from new Resx file
576576
var doc = new XliffParser.XlfDocument(outputXlf);
577577
doc.UpdateFromSource();
578+
var outputXlfFile = doc.Files.Single();
579+
foreach (var unit in outputXlfFile.TransUnits)
580+
{
581+
unit.Target = unit.Source;
582+
}
578583
doc.Save();
579584

580585
// Update ResX files from new xliff files

src/Microsoft.SqlTools.ResourceProvider.Core/Localization/sr.xlf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</trans-unit>
1010
<trans-unit id="AzureSubscriptionFailedErrorMessage">
1111
<source>An error occurred while getting Azure subscriptions: {0}</source>
12-
<target state="new">An error occurred while getting Azure subscriptions</target>
12+
<target state="new">An error occurred while getting Azure subscriptions: {0}</target>
1313
<note></note>
1414
</trans-unit>
1515
<trans-unit id="DatabaseDiscoveryFailedErrorMessage">

src/Microsoft.SqlTools.ResourceProvider.DefaultImpl/Localization/sr.xlf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</trans-unit>
1010
<trans-unit id="FailedToGetAzureResourceGroupsErrorMessage">
1111
<source>An error occurred while getting Azure resource groups: {0}</source>
12-
<target state="new">An error occurred while getting Azure resource groups</target>
12+
<target state="new">An error occurred while getting Azure resource groups: {0}</target>
1313
<note></note>
1414
</trans-unit>
1515
<trans-unit id="FailedToGetAzureSqlServersErrorMessage">

src/Microsoft.SqlTools.ServiceLayer/Localization/sr.xlf

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@
316316
</trans-unit>
317317
<trans-unit id="EE_ExecutionInfo_FinalizingLoop">
318318
<source>Batch execution completed {0} times...</source>
319-
<target state="new">Execution completed {0} times...</target>
319+
<target state="new">Batch execution completed {0} times...</target>
320320
<note></note>
321321
</trans-unit>
322322
<trans-unit id="EE_ExecutionInfo_QueryCancelledbyUser">
@@ -336,7 +336,7 @@
336336
</trans-unit>
337337
<trans-unit id="EE_ExecutionInfo_InitializingLoop">
338338
<source>Beginning execution loop</source>
339-
<target state="new">Starting execution loop of {0} times...</target>
339+
<target state="new">Beginning execution loop</target>
340340
<note></note>
341341
</trans-unit>
342342
<trans-unit id="EE_ExecutionError_CommandNotSupported">
@@ -456,7 +456,7 @@
456456
</trans-unit>
457457
<trans-unit id="EditDataUpdateNotPending">
458458
<source>Given row ID does not have pending update</source>
459-
<target state="new">Given row ID does not have pending updated</target>
459+
<target state="new">Given row ID does not have pending update</target>
460460
<note></note>
461461
</trans-unit>
462462
<trans-unit id="EditDataObjectMetadataNotFound">
@@ -471,12 +471,12 @@
471471
</trans-unit>
472472
<trans-unit id="EditDataInvalidFormatBoolean">
473473
<source>Allowed values for boolean columns are 0, 1, "true", or "false"</source>
474-
<target state="new">Boolean columns must be numeric 1 or 0, or string true or false</target>
474+
<target state="new">Allowed values for boolean columns are 0, 1, "true", or "false"</target>
475475
<note></note>
476476
</trans-unit>
477477
<trans-unit id="EditDataCreateScriptMissingValue">
478478
<source>The column '{0}' is defined as NOT NULL but was not given a value</source>
479-
<target state="new">A required cell value is missing</target>
479+
<target state="new">The column '{0}' is defined as NOT NULL but was not given a value</target>
480480
<note>.
481481
Parameters: 0 - colName (string) </note>
482482
</trans-unit>
@@ -524,7 +524,7 @@
524524
</trans-unit>
525525
<trans-unit id="SqlScriptFormatterDecimalMissingPrecision">
526526
<source>Exact numeric column is missing numeric precision or numeric scale</source>
527-
<target state="new">Decimal column is missing numeric precision or numeric scale</target>
527+
<target state="new">Exact numeric column is missing numeric precision or numeric scale</target>
528528
<note></note>
529529
</trans-unit>
530530
<trans-unit id="EditDataComputedColumnPlaceholder">
@@ -1529,7 +1529,7 @@
15291529
</trans-unit>
15301530
<trans-unit id="NonClusteredIndex_LabelPart">
15311531
<source>Non-Clustered</source>
1532-
<target state="new">Non-Clustere</target>
1532+
<target state="new">Non-Clustered</target>
15331533
<note></note>
15341534
</trans-unit>
15351535
<trans-unit id="History_LabelPart">
@@ -1879,7 +1879,7 @@
18791879
</trans-unit>
18801880
<trans-unit id="prototype_db_prop_dateCorrelationOptimization">
18811881
<source>Date Correlation Optimization Enabled</source>
1882-
<target state="new">Date Correlation Optimization Enabledprototype_db_prop_parameterization = Parameterization</target>
1882+
<target state="new">Date Correlation Optimization Enabled</target>
18831883
<note></note>
18841884
</trans-unit>
18851885
<trans-unit id="prototype_db_prop_parameterization_value_forced">
@@ -2258,12 +2258,12 @@
22582258
</trans-unit>
22592259
<trans-unit id="BackupPathIsFolderError">
22602260
<source>Please provide a file path instead of directory path</source>
2261-
<target state="new">The file name specified is also a directory name: {0}</target>
2261+
<target state="new">Please provide a file path instead of directory path</target>
22622262
<note></note>
22632263
</trans-unit>
22642264
<trans-unit id="InvalidBackupPathError">
22652265
<source> The provided path is invalid</source>
2266-
<target state="new"> Cannot verify the existence of the backup file location: {0}</target>
2266+
<target state="new"> The provided path is invalid</target>
22672267
<note></note>
22682268
</trans-unit>
22692269
<trans-unit id="InvalidPathError">

0 commit comments

Comments
 (0)