Loading l10n_community/src/Form/TranslateForm.php +1 −1 Original line number Diff line number Diff line Loading @@ -885,7 +885,7 @@ class TranslateForm extends FormBase implements TrustedCallbackInterface { if (isset($options['value']) && is_array($options['value'])) { foreach ($options['value'] as $key => $value) { $all_values++; if ($value === t('<New translation>')) { if ($value === (string) t('<New translation>')) { $options['value'] = ''; $empty_values++; } Loading l10n_server/src/L10nPo.php +3 −0 Original line number Diff line number Diff line Loading @@ -391,6 +391,9 @@ class L10nPo { * @param bool $force * Force replacing a suggestion if it already exists. * * @return int * Translation ID. * * @throws \Exception */ public static function addSuggestion(int $sid, string $translation, string $langcode, int $uid_attribution, int $uid_user, string $medium, bool $force = FALSE) { Loading Loading
l10n_community/src/Form/TranslateForm.php +1 −1 Original line number Diff line number Diff line Loading @@ -885,7 +885,7 @@ class TranslateForm extends FormBase implements TrustedCallbackInterface { if (isset($options['value']) && is_array($options['value'])) { foreach ($options['value'] as $key => $value) { $all_values++; if ($value === t('<New translation>')) { if ($value === (string) t('<New translation>')) { $options['value'] = ''; $empty_values++; } Loading
l10n_server/src/L10nPo.php +3 −0 Original line number Diff line number Diff line Loading @@ -391,6 +391,9 @@ class L10nPo { * @param bool $force * Force replacing a suggestion if it already exists. * * @return int * Translation ID. * * @throws \Exception */ public static function addSuggestion(int $sid, string $translation, string $langcode, int $uid_attribution, int $uid_user, string $medium, bool $force = FALSE) { Loading