Loading l10n_community/css/editor.css +1 −0 Original line number Diff line number Diff line Loading @@ -166,6 +166,7 @@ td.sid a { } li.translation.no-translation .l10n-string span { font-style: italic; font-weight: normal; color: #666; } Loading l10n_community/src/Form/TranslateForm.php +4 −3 Original line number Diff line number Diff line Loading @@ -573,7 +573,6 @@ class TranslateForm extends FormBase implements TrustedCallbackInterface { // Active radio box is used to pick the approved translation. $form['active'] = [ '#type' => 'radio', // @todo transcribe. // #title does not support render arrays... '#title' => $this->render($this->renderTextarray($string->translation, $is_new ? $this->t('(empty)') : FALSE)), '#return_value' => $string->tid, Loading @@ -583,6 +582,8 @@ class TranslateForm extends FormBase implements TrustedCallbackInterface { // would otherwise not have permission to approve such a string. '#disabled' => !$may_moderate && !$is_active, '#attributes' => ['class' => ['selector']], '#label_attributes' => ['class' => ['l10n-string']], '#title_display' => $is_new ? 'invisible' : 'before', ]; if ($string->tid) { Loading @@ -600,7 +601,7 @@ class TranslateForm extends FormBase implements TrustedCallbackInterface { '#type' => 'textarea', '#cols' => 60, '#rows' => 3, '#default_value' => $this->t('New translation'), '#default_value' => $this->t('<New translation>'), ]); } else { Loading Loading @@ -678,7 +679,7 @@ class TranslateForm extends FormBase implements TrustedCallbackInterface { $element['#attributes']['class'][] = 'no-translation'; // Fallthrough. default: if ($element['active']['#value'] !== '') { if (!empty($element['active']['#value'])) { $element['#attributes']['class'][] = 'is-active default'; } } Loading Loading
l10n_community/css/editor.css +1 −0 Original line number Diff line number Diff line Loading @@ -166,6 +166,7 @@ td.sid a { } li.translation.no-translation .l10n-string span { font-style: italic; font-weight: normal; color: #666; } Loading
l10n_community/src/Form/TranslateForm.php +4 −3 Original line number Diff line number Diff line Loading @@ -573,7 +573,6 @@ class TranslateForm extends FormBase implements TrustedCallbackInterface { // Active radio box is used to pick the approved translation. $form['active'] = [ '#type' => 'radio', // @todo transcribe. // #title does not support render arrays... '#title' => $this->render($this->renderTextarray($string->translation, $is_new ? $this->t('(empty)') : FALSE)), '#return_value' => $string->tid, Loading @@ -583,6 +582,8 @@ class TranslateForm extends FormBase implements TrustedCallbackInterface { // would otherwise not have permission to approve such a string. '#disabled' => !$may_moderate && !$is_active, '#attributes' => ['class' => ['selector']], '#label_attributes' => ['class' => ['l10n-string']], '#title_display' => $is_new ? 'invisible' : 'before', ]; if ($string->tid) { Loading @@ -600,7 +601,7 @@ class TranslateForm extends FormBase implements TrustedCallbackInterface { '#type' => 'textarea', '#cols' => 60, '#rows' => 3, '#default_value' => $this->t('New translation'), '#default_value' => $this->t('<New translation>'), ]); } else { Loading Loading @@ -678,7 +679,7 @@ class TranslateForm extends FormBase implements TrustedCallbackInterface { $element['#attributes']['class'][] = 'no-translation'; // Fallthrough. default: if ($element['active']['#value'] !== '') { if (!empty($element['active']['#value'])) { $element['#attributes']['class'][] = 'is-active default'; } } Loading