- π¬π§United Kingdom opdavies Wales
We should probably use
StringTranslationTrait
for this so we can use$this->t()
instead of the global function. - Status changed to Needs review
almost 2 years ago 11:12pm 2 May 2023 - πΊπΈUnited States papagrande US West Coast
@opdavies, good catch. Drupal\Core\Plugin\PluginBase already has the trait so we can use it.
I know you're not supposed to pass variables through
t()
, but this quick and dirty approach has worked for years in patch #2. - πΊπΈUnited States papagrande US West Coast
Linking to the core issue (#2546212) that if it ever gets committed, is the "correct" way to make configuration items translatable.
@opdavies, how can I help get this committed to 2.0.x? It's a blocker for me to upgrade.
-
opdavies β
committed fdf9c2b1 on 2.x authored by
PapaGrande β
Issue #3071457 by PapaGrande, opdavies: Add Translation of Text
-
opdavies β
committed fdf9c2b1 on 2.x authored by
PapaGrande β
- Status changed to Fixed
over 1 year ago 9:21pm 5 November 2023 Automatically closed - issue fixed for 2 weeks with no activity.