Support single quotes in demo data

This commit is contained in:
Bernd Bestel
2018-11-24 20:39:17 +01:00
parent 2f7b78bc40
commit 8041dd9c26
2 changed files with 80 additions and 74 deletions

View File

@@ -96,6 +96,12 @@ class LocalizationService
return $localizedText;
}
public function LocalizeForSqlString(string $text, ...$placeholderValues)
{
$localizedText = $this->Localize($text, $placeholderValues);
return str_replace("'", "''", $localizedText);
}
public function GetLocalizations()
{
return $this->StringsMerged;