Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
The total votes is displayed as two separate strings. This makes it harder for translators to get the context required for a good translation.
Proposed resolution
Use a variable placeholder when rendering 'Total votes' in the Poll results.
Remaining tasks
- Write a patch
- Review
- Commit
User interface changes
None.
API changes
None.
Data model changes
None.
Comment | File | Size | Author |
---|---|---|---|
#11 | 2979858-10.patch | 8.15 KB | Lendude |
| |||
#8 | poll-variable_placeholder-2979858-8.patch | 9.96 KB | idebr |
#8 | interdiff-6-8.txt | 6.55 KB | idebr |
Comments
Comment #2
idebr CreditAttribution: idebr at ezCompany commentedAttached patch implements a variable placeholder when rendering 'Total votes' in the Poll results, so translators get the context required for a good translation.
Comment #4
idebr CreditAttribution: idebr at ezCompany commentedLeaving the div-wrapper in this time.
Comment #6
idebr CreditAttribution: idebr at ezCompany commentedRemoved the double spaces from the test
Comment #8
idebr CreditAttribution: idebr at iO commentedRemoved more spaces.
Comment #9
idebr CreditAttribution: idebr at iO commentedPatch no longer applies.
Comment #10
idebr CreditAttribution: idebr at iO commentedReroll after #3090356: Convert tests to phpunit was committed.
Comment #11
LendudeRerolled (sorta, was easier to just redo from scratch)
Comment #12
LendudeLOL, only just saw that I didn't refresh the page before uploading and that the reroll was already done! Ignore #11
But that does allow me to review this :D
So, looks great!
Comment #14
BerdirThanks. This will break existing translations but can't do anything about that, it will also not fix it for people with a customized template, but same, if they did that then the translation worked for them or they fixed it themself there ;)