$this->
read($language,
$type,
$key),
$data ??
[] );
} if ($merge) { $tmp =
$this->
read($language,
$type);
$tmp[$key] =
$data;
$data =
$tmp;
} $serializedData =
$this->
filterData($type,
$data,
$merge ?
$key : null
);
if (!
empty($data)) { $sql = '
INSERT INTO `s_core_translations` (
`objecttype`, `objectdata`, `objectkey`, `objectlanguage`, `dirty`
) VALUES (
:type, :data, :key, :language, 1
) ON DUPLICATE KEY UPDATE `objectdata`=VALUES(`objectdata`), `dirty` = 1;
';
$this->connection->
executeQuery( $sql,
[