- ๐ท๐บRussia DenisVS
The same issue, Drupal 10.1.3
Parent term names in original language. - Merge request !5961Solved Taxonomy term Parent terms field displays the term names in original language โ (Open) created by DenisVS
- Status changed to Needs review
11 months ago 9:29am 27 December 2023 - ๐ท๐บRussia DenisVS
Solved #5 ๐ Taxonomy term Parent terms field displays the term names in original language Needs review
- ๐ฎ๐ณIndia Kanchan Bhogade
Hi,
Tried to reproduce the issue using the given steps, but unable to reproduce it.
Followed steps:
1. add at least 2 languages to the site (for example: English and Spanish)
2. enable translation and enable users to choose the original language for taxonomy vocabulary
3. create a term 1 in Spanish
4. translate that term 1 to English
5. create a term 2 in English
6. translate term 2 to Spanish
7. change the site language to English,
8. again open the form where you can add terms.Can you please share the reproducing steps in detail?
- Status changed to Needs work
11 months ago 5:19pm 28 December 2023 - ๐บ๐ธUnited States smustgrave
Issue summary has some sections that are missing.
What's the solution, ui changes, api changes?
Also will need a failing test case to show the problem.
- ๐ฎ๐ณIndia prashant.c Dharamshala
Prashant.c โ made their first commit to this issueโs fork.
- ๐ฎ๐ณIndia prashant.c Dharamshala
1. I successfully replicated the issue using the steps outlined in the "Steps to reproduce." In essence, the "Parent terms" section under "Relations" is displaying term names for all languages in the term list.
2. The patch/MR addressing this problem ensures that only terms relevant to the respective language are listed in the "Parent terms" section.
3. The code has been refactored and requires both code review and thorough testing, including manual and automated tests.Thank you.
- First commit to issue fork.
- ๐ฎ๐ณIndia arisen Goa
Added the functional test case for parents translation under the TermTranslationTest Suite.
1) Drupal\Tests\taxonomy\Functional\TermTranslationTest::testParentTermsTranslation Behat\Mink\Exception\ResponseTextException: The text "translatedOne" was not found anywhere in the text of the current page. /var/www/html/vendor/behat/mink/src/WebAssert.php:811 /var/www/html/vendor/behat/mink/src/WebAssert.php:262 /var/www/html/web/core/modules/taxonomy/tests/src/Functional/TermTranslationTest.php:134 /var/www/html/vendor/phpunit/phpunit/src/Framework/TestResult.php:728 ERRORS! Tests: 8, Assertions: 692, Errors: 1.
- ๐ฎ๐ณIndia arisen Goa
Fixed the spellcheck issues in the test. But spellcheck now failing since I rebased.