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

  1. Write a patch
  2. Review
  3. Commit

User interface changes

None.

API changes

None.

Data model changes

None.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

idebr created an issue. See original summary.

idebr’s picture

Status: Active » Needs review
FileSize
748 bytes

Attached patch implements a variable placeholder when rendering 'Total votes' in the Poll results, so translators get the context required for a good translation.

Status: Needs review » Needs work

The last submitted patch, 2: poll-variable_placeholder-2979858-2.patch, failed testing. View results

idebr’s picture

Status: Needs work » Needs review
FileSize
396 bytes
739 bytes

Leaving the div-wrapper in this time.

Status: Needs review » Needs work

The last submitted patch, 4: poll-variable_placeholder-2979858-4.patch, failed testing. View results

idebr’s picture

Status: Needs work » Needs review
FileSize
3.18 KB
2.4 KB

Removed the double spaces from the test

Status: Needs review » Needs work

The last submitted patch, 6: poll-variable_placeholder-2979858-6.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

idebr’s picture

Removed more spaces.

idebr’s picture

Status: Needs review » Needs work
Issue tags: +Needs reroll

Patch no longer applies.

idebr’s picture

Status: Needs work » Needs review
Issue tags: -Needs reroll
FileSize
8.15 KB

Reroll after #3090356: Convert tests to phpunit was committed.

Lendude’s picture

Rerolled (sorta, was easier to just redo from scratch)

Lendude’s picture

Status: Needs review » Reviewed & tested by the community

LOL, 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!

  • Berdir committed 5693128 on 8.x-1.x authored by idebr
    Issue #2979858 by idebr, Lendude: Use variable placeholder when...
Berdir’s picture

Status: Reviewed & tested by the community » Fixed

Thanks. 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 ;)

Status: Fixed » Closed (fixed)

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