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…
The page I need help with: [log in to see the link]
- The topic ‘Translating a hardcoded plug in string’ is closed to new replies.