- Issue created by @chizh273
- 🇺🇦Ukraine chizh273
chizh273 → changed the visibility of the branch 3476898-the-result-summary to hidden.
- 🇺🇦Ukraine chizh273
chizh273 → changed the visibility of the branch 3476898-the-result-summary to active.
- Merge request !9611Issue #3476898 by chizh273: The "Result summary" has a non-translatable description → (Closed) created by chizh273
- Merge request !9613Issue #3476898 by chizh273: The "Result summary" has a non-translatable description → (Closed) created by chizh273
- 🇧🇷Brazil kleiton_rodrigues Americana/SP
LGFM ++
'@start -- ' . $this->t('the initial record number in the set'), '@end -- ' . $this->t('the last record number in the set'), '@total -- ' . $this->t('the total records in the set'), '@label -- ' . $this->t('the human-readable name of the view'), '@per_page -- ' . $this->t('the number of items per page'), '@current_page -- ' . $this->t('the current page number'), '@current_record_count -- ' . $this->t('the current page record count'), '@page_count -- ' . $this->t('the total page count'),
- 🇳🇿New Zealand quietone
Even though this is straightforward, there should be manual testing to prove this works as expected. Adding tag.
- Issue was unassigned.
- Status changed to Needs work
13 days ago 2:40pm 26 July 2025 - 🇧🇷Brazil anapaulagoetze
Hi,
I've been working on the manual test to validate that this feature works as expected, and I believe everything is functioning correctly.
Please check the evidence attached below for confirmation.1. Prepare Content
1.1 Go to Content.
1.2Create a new Article to be displayed on the View.2. Add and Set New Language
2.1Go to /admin/config/regional/language.
2.1.1 If this page does not exist, install the “Translation” module.
2.2 Click “+ Add language”.
2.3 After adding, set that language as the default and Save.3. Edit the View
3.1Go to Structure > Views.
3.2 Find and edit the view displaying the content.
3.3 In the Header section:
3.4 Click Add > select Result summary.
3.5 Click Configure next to it.4. Check Translation
4.1 Confirm if the description and tag text are already translated.
4.2 If they are not translated automatically:5. Add Custom Translation
5.1 Go back to /admin/config/regional/language.
5.2 Click on the Translate percentage number.
5.2.1 You will be redirected to a page like (/admin/config/regional/translate?langcode=pt-br.)
5.3 Search for the exact phrase/tag text used in the result summary.
5.4 Add the correct translation for the selected tag and Save.6. Recheck the View
6.1 Return to the View edit page.
6.2 Click on the Result summary element (the one you added to the header).
6.3 Confirm that the tag text now appears correctly translated. - 🇺🇸United States xjm
Thanks @anapaulagoetze! Excellent writeup.
I followed the same testing steps with French, and I noticed that different variations of the same strings already exist. For example:
The current string has:
the number of items per page
But core already has this existing string:
The number of items per page.
If we update the merge request to match this (capitalize it and add a period), then the existing string translation will just start working here, without translators needing to do additional work. This would also better match our content standards. The same is also true for at least
the total page count
if we change it toThe total page count.
So, I think we should also update the merge request to capitalize all the strings and add periods to the end of them. Thanks!
- 🇧🇷Brazil brandonlira
Great, I'll take a look at that. Thanks @xjm for the guidance.
- 🇧🇷Brazil brandonlira
Hi @xjm, I’ve updated the MR !9611 with capitalised strings and periods as suggested.
It’s ready for review!
Let me know if anything else is needed.
Thanks! - 🇮🇳India himanshu raj Noida
Hi, I ran the same test on a clean Drupal 11.0 site with English installed and French set as the default language . After enabling Interface Translation and adding Result summary to the view header, the strings showed up in French automatically no manual translations required.
I also scanned the string list and found only the capitalised version (“The number of items per page.”), with no lowercase duplicate. Everything looks consistent and working as expected.
Screenshot of the French UI is attached for reference. - 🇺🇸United States xjm
I tested manually, and confirmed that the two strings that already exist in core are now automatically translated, and that the rest follow our content style guidelines. Nice work!
As an aside, I learned that the Russian translation for "header" is "шапка", which means "hat", and I find that absolutely delightful.
@himanshu raj, your screenshot in #17 seems to be without the patch applied?
- 🇮🇳India himanshu raj Noida
Hi @brandonlira, I manually applied the code from the referenced merge request/PR !9611 to the core module on a local copy of Drupal and cleared caches
The updated code compiled without errors and the result which i'm getting is in the ss below. - 🇺🇸United States xjm
Thanks @himanshu raj. For next time, please embed your screenshots in your comment (see mine above for an example), and indicate which of your screenshots are before the MR and which are after.
Also, we don't need to know that the code compiled without errors or need screenshots of your IDE; the automated testing tells us that. 🙂 thanks!
- 🇧🇷Brazil uesli Balneário Camboriú, SC
Hi, @xjm and @brandonlira
I can perform manual tests if still needed!
- 🇺🇸United States xjm
Thanks @uesliI think we're good on manual testing now since @himanshu raj's tenth screenshot appears to be with the MR applied and a confirmation of my result. The last thing we need for this to be RTBC is a general review (code review, confirmation that the changes meet Drupal style guidelines and translation best practices, etc.) Thanks!
- 🇮🇳India himanshu raj Noida
Thank you @xjm for the feedback! I’ll keep all these points in mind for future . Appreciate the guidance!
- 🇺🇸United States xjm
Sorry I keep trying and failing to remove the tag; crossposts and d.o timeouts. 😀
- 🇺🇸United States xjm
Reviewed locally with
git diff --staged --color-words
just to confirm that there weren't any changes other than the addedt()
calls, the capitalization, and the periods:
Since it adds new translatable strings for the other translations, I've committed it to 11.x only. Thanks everyone for working on this and congratulations @anapaulagoetze on your first core issue credit!