Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 65051

Translating a hardcoded plug in string

$
0
0

Replies: 0

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 15 minutes ago by adminmax.

Viewing all articles
Browse latest Browse all 65051

Trending Articles