Problem/Motivation

I have tried to translate Join group and Leave group from the translation interface but that didn't work for me, seems the t() function was missing.

Proposed resolution

fix.
$build = Link::createFromRoute(t('Join group'), 'entity.group.join', $link_params)->toString();
$build = Link::createFromRoute(t('Leave group'), 'entity.group.leave', $link_params)->toString();

Comments

youkho created an issue. See original summary.

youkho’s picture

Status: Fixed » Needs review

  • LOBsTerr committed 807983d5 on 1.0.x
    Issue #3361118 by LOBsTerr: Strings not translatable
    

  • LOBsTerr committed e00b64f1 on 2.0.x
    Issue #3361118 by LOBsTerr: Strings not translatable
    

  • LOBsTerr committed 436a86f0 on 3.0.x
    Issue #3361118 by LOBsTerr: Strings not translatable
    
lobsterr’s picture

Status: Needs review » Fixed

Thank you for your contribution

Status: Fixed » Closed (fixed)

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