Localization?
-
Hello!
The text above the coupon code is no problem, I can write that in any language I want. But the text below the coupon code… You have this code for that:
$html = sprintf( __( 'This coupon expires on %s shop time.', 'woocommerce' ), date( 'l jS \of F Y', $expiry_timestamp ) );
It doesn’t seem that phrase is translated by Woocommerce’s language files, and the date-time format seems to be hardcoded to english format. Would it be possible to just add another textfield where I as user can write “This coupon expires on:” in any language I want, and then just use the date format from the site’s General settings?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Localization?’ is closed to new replies.