Improving Translation of Continue Reading in Atahualpa 3.4.6 Theme of WordPress

There is a little modification that needs to be added to the Atahualpa theme in order to support for multi language of the string: Continue reading %post-title%. As we know, this string has the same function with Read More tag in WordPress. You can see its demo from this website that support for English and Indonesian language. So, in order to translate that string to another language, especially if your site supports for multi language, then you have to modify this following code. Please note that this modification applied to Atahualpa version 3.4.6.

Open your /themes/{youratahualpathemedirectory}/bfa_post_parts.php file, and find this code:

121
		$bfa_ata_more_tag_final = str_replace("%post-title%", the_title('', '', false), $bfa_ata['more_tag']);

then replace with this following code:

121
		$bfa_ata_more_tag_final = str_replace("%post-title%", the_title('', '', false), __($bfa_ata['more_tag'], 'atahualpa') );

The conclusion of this modification is that you have to add the __() function to the $bfa_ata['more_tag'] string, become: __($bfa_ata['more_tag'], ‘atahualpa’) . Hopefully this will help you.

Share

646 viewsPrint This Post Print This Post

Speak Your Mind

*


*