Changing a string in WordPress

suklee

Diamond Member
Oct 9, 1999
4,575
10
81
I'm trying to change "Tag" to "Brand" on WooCommerce. I've Googled, read about gettext, tried several other options but none have worked.

The line of code in the theme is

PHP:
	<?php echo $product->get_tags( ', ', '<span class="tagged_as">' . _n( 'Tag:', 'Tags:', $tag_count, 'woocommerce' ) . ' ', '.</span>' ); ?>

What's the most proper (upgrade-proof) way to change that word "Tag"? Do I edit the .mo and .po files? I edited the .po but it didn't take on the change (I'm supposed to generate a .mo somehow... ???) o_O

Other links said to add a filter to my wp theme's functions.php... totally confused and frustrated how such a simple edit can take so long to figure out :\

Tried the plugin recommended here http://docs.woothemes.com/document/woocommerce-localization/, but my server is out of memory or something and can't complete the rescan process.

wpid-875d1374620718t-grom-here-jackie-chan-my-brain-full-fuck-meme-blank-template-lol-wtf.jpeg
 
Last edited: