Commit 5e9e1c9f authored by Felip Manyer i Ballester's avatar Felip Manyer i Ballester
Browse files

Issue #3282696: Port of l10n_community: translation form (actions and suggestions)

parent 2c555c1e
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -607,9 +607,10 @@ class TranslateForm extends FormBase implements TrustedCallbackInterface {
      else {
        if ($this->accessManager->check('submit suggestions')) {
          $form['edit'] = [
            '#markup' => $this->t('Edit a copy'),
            '#prefix' => '<label title="' . $this->t('Edit a copy') . '">',
            '#suffix' => '</label>',
            '#type' => 'html_tag',
            '#tag' => 'label',
            '#value' => $this->t('Edit a copy'),
            '#attributes' => ['title' => $this->t('Edit a copy')],
          ];
        }
        if (isset($string->username)) {
+1 −1
Original line number Diff line number Diff line
@@ -226,7 +226,7 @@ class L10nTranslator {
    $query->condition('t.suggestion', 1);
    $query->orderBy('t.created');

    return $query->execute();
    return $query->execute()->fetchAll();
  }

}