Add translation functions for every string in checkout

Created on 29 August 2018, about 7 years ago
Updated 18 August 2025, 2 months ago

I discover that the string "Card number" in checkout doesn't use the t() function to localize it.
I propose to pass every string in checkout through the t() function, like this

 $form['credit_card']['number'] = array(
    '#type' => 'item',
    '#markup' => '<label for="card-element">'.t('Card number').'</label><div data-stripe="number" id="card-element"></div>',
  );
🐛 Bug report
Status

Closed: outdated

Version

3.0

Component

Code

Created by

🇮🇪Ireland rollingnet

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024