Title: Translating a hardcoded plug in string
Last modified: May 2, 2019

---

# Translating a hardcoded plug in string

 *  [adminmax](https://wordpress.org/support/users/adminmax/)
 * (@adminmax)
 * [7 years ago](https://wordpress.org/support/topic/translating-a-hardcoded-plug-in-string/)
 * if(empty($icon_only)) {
    $button .= ‘<span>’.esc_html__(‘Quick View’, ‘woo-quick-
   view’).'</span>’; }
 * in my plug in woo-commerce-quickview ( XT Woo Commerce Quickview )
 * This is hard coded, and the button says “Quick View” . i would like to edit this
   to make it that when my website is in fr_CA , it says “Apercu” instead.
    (actually
   right now it says Apercu, probably because of the cache… anyway i would like 
   to know how to re-write this so that i input one string of text for fr_CA and
   another for en_CA .)
 * Thanks!
 * PS. I found this <?php _e(“[:fr_CA]Les réseaux sociaux[:en_CA]Social Media[:]”);?
   >
 * But it gives me an error and I try to insert it, I don’t know how to properly
   insert that…
    -  This topic was modified 7 years ago by [adminmax](https://wordpress.org/support/users/adminmax/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ftranslating-a-hardcoded-plug-in-string%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [7 years ago](https://wordpress.org/support/topic/translating-a-hardcoded-plug-in-string/#post-11490461)
 * There are two woocommerce quick view related plugins:
 * [WooCommerce Quick View](https://wordpress.org/plugins/woo-quickview/)
 * [XT WooCommerce Quick View](https://wordpress.org/plugins/xt-woo-quick-view-lite/)
 * Please identify exactly which plugin you are using and then post in that plugin’s
   dedicated forum via its page in the [Plugin Repository](https://wordpress.org/plugins/)
   so the plugin’s developers and support community can help you with this.
 *  Thread Starter [adminmax](https://wordpress.org/support/users/adminmax/)
 * (@adminmax)
 * [7 years ago](https://wordpress.org/support/topic/translating-a-hardcoded-plug-in-string/#post-11490489)
 * I am asking here for a general solution for a hard-coded string translation. 
   I already asked the developer of the plugin to no avail. In the original post
   I also already specified which plug in exactly it is. (XT Woocommerce Quick View)
 * Thanks to anyone who can help me with this!
 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [7 years ago](https://wordpress.org/support/topic/translating-a-hardcoded-plug-in-string/#post-11490564)
 * > it is. (XT Woocommerce Quick View)
 * I recommend asking at [https://wordpress.org/support/plugin/xt-woo-quick-view-lite/?view=all](https://wordpress.org/support/plugin/xt-woo-quick-view-lite/?view=all)
   so the plugin’s developers and support community can help you with this.
 * >  I already asked the developer of the plugin to no avail.
 * I don’t see any thread created by you on that plugin’s dedicated [forum](https://wordpress.org/support/plugin/xt-woo-quick-view-lite/?view=all)!!!
   
   Where did you ask?
    -  This reply was modified 7 years ago by [t-p](https://wordpress.org/support/users/t-p/).
 *  Thread Starter [adminmax](https://wordpress.org/support/users/adminmax/)
 * (@adminmax)
 * [7 years ago](https://wordpress.org/support/topic/translating-a-hardcoded-plug-in-string/#post-11490679)
 * Directly, through their support on the plug in page.
 * But i am asking here because I believe I might come across this issue again with
   something else. Therefore I would enjoy a general way to write a string of text
   that will adapt itself to my site languages, right in the php file.

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

The topic ‘Translating a hardcoded plug in string’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [adminmax](https://wordpress.org/support/users/adminmax/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/translating-a-hardcoded-plug-in-string/#post-11490679)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
