Hi amazing code wizards,
I am busy with some translations and came across the following:
Normally you can change the translation string in:
wp-content/themes/rehub-theme/lang/rehub-theme.pot
If we look closely at the following string:
wp-content/themes/rehub-theme/woocommerce/brandarchive.php
Line: 50
<?php
if($brandurl){
echo '<a class="blockstyle mt15 rehub_main_btn width-100p wpsm-button" data-cashbacknotice="'.$cashback_notice.'" href="'.esc_url($brandurl).'" target="_blank" rel="nofollow" data-url="'.esc_url($brandurl).'" data-merchant="'.$tagname.'"><i class="far fa-external-link"></i> '.__('Go to shop', 'rehub-theme').'</a>';
}
if($brandshortdesc){
echo '<div class="mt15 font80 lineheight20 text-left-align rtltext-right-align">'.wp_specialchars_decode( $brandshortdesc, ENT_QUOTES ).'</div>';
}
?>
The 'Go to shop', is hardcoded and not visible via any po/mo/pot file. This means you cant properly translate it. You can change it in the file itself but with every update, it's referred back to initial wording.
Is there a possibility you add this to the pot file instead of hardcoding it?
You guys rock!
//Mistermeij
__('Go to shop', 'rehub-theme') - this code is clearly visible as translation https://developer.wordpress.org/reference/functions/__/
Go to shop is available in translation file. Simply create and update localization file as described in documentation. In current point you didn't update localization