mirror of
https://github.com/grocy/grocy.git
synced 2025-10-14 17:24:07 +00:00
Support single quotes in demo data
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user