Problem

Socialbase contains an overwrite for the like_and_dislike_service to change how we display likes and dislikes. It contains an if statement that call Drupal.t which makes translation more difficult and increases the number of occurrences of "like" in translation files.

Solution

Use Drupal.formatPlural so that we can re-use the translation of @count like and @count likes

Comments

Kingdutch created an issue. See original summary.

kingdutch’s picture

Assigned: kingdutch » Unassigned
Status: Active » Needs review

jaapjan’s picture

Status: Needs review » Fixed

Will be in 4.x.

  • jaapjan committed 2e6c56f on 8.x-5.x authored by Kingdutch
    Issue #3042119 by Kingdutch: The socialbase like_and_dislike_service...

  • fd6a867 committed on 8.x-4.x
    Issue #3042119 by Kingdutch, bramtenhove, jaapjan: The socialbase...

Status: Fixed » Closed (fixed)

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