At core/modules/taxonomy/src/VocabularyForm.php, "Terms language" should be "Term's language". Edit: "Term language" would be consistent with "Vocabulary language" on the same form.

issue

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kari.kaariainen created an issue. See original summary.

neeraprajapati’s picture

Assigned: Unassigned » neeraprajapati

I am working on that, will update it soon.

neeraprajapati’s picture

Assigned: neeraprajapati » Unassigned
Status: Active » Needs review
FileSize
655 bytes

Patch applied.

swels’s picture

Status: Needs review » Needs work

after analyzing the core code via regex,
it seems that its more common to use wrapping double quotes - instead to escaping single quotes
e.g.
->t("The Drupal term IDs of the term's parents.")

kari.kaariainen’s picture

True. According to coding standards, in this case it should be
->t("Term's language")

https://www.drupal.org/docs/develop/standards/coding-standards#quotes

neeraprajapati’s picture

FileSize
654 bytes

Thanks for sharing coding standards link, I have applied a new patch.

neeraprajapati’s picture

Status: Needs work » Needs review
nkoporec’s picture

Hi, tested the patch and I think it looks good.Great job!

kari.kaariainen’s picture

Status: Needs review » Reviewed & tested by the community
alexpott’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: +String change in 8.6.0
+++ b/core/modules/taxonomy/src/VocabularyForm.php
@@ -89,7 +89,7 @@ public function form(array $form, FormStateInterface $form_state) {
-        '#title' => $this->t('Terms language'),
+        '#title' => $this->t("Term's language"),

Yep this is wrong but I think Term language would be more consistent. We have Vocabulary language just above. I don't think the possessive is necessary.

bhanuprakashnani’s picture

Status: Needs work » Needs review
FileSize
652 bytes

If it should be Term language, I have made the change and uploaded the patch.

alexpott’s picture

@bhanuprakashnani can be single quotes again now.

nkoporec’s picture

Created a new patch with single quotes.

kari.kaariainen’s picture

Title: "Terms language" should be "Term's language" » "Terms language" should be "Term's language" or "Term language"
Issue summary: View changes
mcgovernm’s picture

Status: Needs review » Reviewed & tested by the community
plach’s picture

Title: "Terms language" should be "Term's language" or "Term language" » Change "Terms language" label to "Term language" in the Vocabulary default form

Saving credits

  • plach committed 3e1d6c2 on 8.6.x
    Issue #2956067 by neeraprajapati, nkoporec, bhanuprakashnani, kari....
plach’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.