Translation is incomplete whereas it says 100%
-
Hello,
I have noticed that the French translation is incomplete.
The fields “Name” and “Credit card…” need to be translated in the popup.
https://snipboard.io/RD9Qjy.jpg
I can solve the issue by changing the line
<label for="billing_name"><?php echo esc_html( _x( 'Name', 'Customer name', 'stripe-payments' ) ); ?></label>
to something else.
Same for
<label for="card-element"><?php esc_html_e( 'Credit card or debit card', 'stripe-payments' ); ?></label>
I don’t know where I can add_filter to change the translation without changing the code in the plugin. Tried Loco translate, but that does not work, it says that for French language we have everything already translated.
Tried to filter with
add_filter( 'gettext', function($translated_text, $text, $domain) { switch ( $translated_text ) { case 'Name' : $translated_text = 'Votre nom'; break; //other translations... } return $translated_text; }, 20, 3 );
but that does not work either.
- The topic ‘Translation is incomplete whereas it says 100%’ is closed to new replies.