Title: Localization?
Last modified: November 14, 2019

---

# Localization?

 *  Resolved [TStone](https://wordpress.org/support/users/tstone/)
 * (@tstone)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/localization-153/)
 * 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)

 *  Plugin Author [Chris Bibby](https://wordpress.org/support/users/cmbibby/)
 * (@cmbibby)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/localization-153/#post-12135540)
 * Good point. I have already made to note to look at date localisation as there
   are some improvements in 5.3 working with dates.
 * > [Date/Time component improvements in WordPress 5.3](https://make.wordpress.org/core/2019/09/23/date-time-improvements-wp-5-3/)
 * Leave it with me, and will look into the translation issue as well.
 *  Plugin Author [Chris Bibby](https://wordpress.org/support/users/cmbibby/)
 * (@cmbibby)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/localization-153/#post-12139915)
 * Addressed in 1.1.1

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Localization?’ is closed to new replies.

 * ![](https://ps.w.org/thankyou-coupons-for-wc/assets/icon-256x256.png?rev=2190573)
 * [Thankyou Coupons for WooCommerce](https://wordpress.org/plugins/thankyou-coupons-for-wc/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/thankyou-coupons-for-wc/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/thankyou-coupons-for-wc/)
 * [Active Topics](https://wordpress.org/support/plugin/thankyou-coupons-for-wc/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/thankyou-coupons-for-wc/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/thankyou-coupons-for-wc/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Chris Bibby](https://wordpress.org/support/users/cmbibby/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/localization-153/#post-12139915)
 * Status: resolved