Tagged: enfold, Localization
These strings: “Meanwhile lets just say that we are proud %s contributed a whooping %s entries.” and “Edit the profile description here.” are not translated even though they are specified in the .po and .mo files. This is strange. If the .mo file is changed and saved, it should reflect the localized site. So, I had to change the code directly in loop-about-author.php. Why the .mo file doesn’t reflect the localization? All other parts look OK. Only these two sentences are left without translations.
Thanks!
Hi,
I uploaded an updated pot file here: http://www.mediafire.com/?3d6hhhxy3dihf1z – it’s compatible with Enfold 2.0. Please use it to update your po file (eg use PoEdit: http://www.poedit.net/ to update the existing po file).
Hi Dude,
I downloaded your updated pot file. I had to convert the pot file into UTF-8 before I can edit with Poedit. But I still saw “Meanwhile lets just say that we are proud %s contributed a whooping %s entries.” and “Edit the profile description here.” in English.
I found the solution now… In loop-about-author.php, the second argument for __() function was missing. Changing
$description .= ‘</br>’.sprintf( __( ‘Meanwhile lets just say that we are proud %s contributed a whooping %s entries.’ ), $name, count_user_posts( $author_id ) );
if(current_user_can(‘edit_users’) || get_current_user_id() == $author_id)
{
$description .= “</br>“.__( ‘Edit the profile description here.’ ).”“;
to
$description .= ‘</br>’.sprintf( __( ‘Meanwhile lets just say that we are proud %s contributed a whooping %s entries.’,’avia_framework’ ), $name, count_user_posts( $author_id ) );
if(current_user_can(‘edit_users’) || get_current_user_id() == $author_id)
{
$description .= “</br>“.__( ‘Edit the profile description here.’,’avia_framework’ ).”“;
fixed the issue!
I hope this fix is included in the next version of Enfold.
Thanks!