Updated double quotes logic (#7268)

This commit is contained in:
Arjun Balgovind
2020-10-14 09:03:45 -07:00
committed by GitHub
parent 944e605f06
commit 70bc967219
19 changed files with 58 additions and 58 deletions

View File

@@ -110,8 +110,8 @@ Foreach-Object {
$content = $line -split "=", 2
$culture = [System.Globalization.CultureInfo]::GetCultureInfo('en-US')
# Each resource is named as IDS_ResxResourceName, in uppercase
$lineInRCFormat = "IDS_" + $content[0].ToUpper($culture) + " L`"" + $content[1] + "`""
# Each resource is named as IDS_ResxResourceName, in uppercase. Escape occurrences of double quotes in the string
$lineInRCFormat = "IDS_" + $content[0].ToUpper($culture) + " L`"" + $content[1].Replace("`"", "`"`"") + "`""
$newLinesForRCFile = $newLinesForRCFile + "`r`n " + $lineInRCFormat
# Resource header file needs to be updated only for one language