Hi,
Can you please tell me how can i translate the word “Pages” in the search results?
https://www.dropbox.com/s/jkb4l6gz8zj7m8a/search_results.jpg
I’m using the poedit tool but there is no option to translate it.
Hi saquasar!
Please open language file in Poedit and go to Catalog > Update From Sources. It should add missing strings. You can try using this plugin as well http://wordpress.org/plugins/codestyling-localization/
Regards,
Yigit
Hi Yigit,
I am also using codestyling localization and i did the update from sources in poedit but there is no way to translate this word.I am finding a word “Pages” but it’s not the word from the search results.
Hey!
“Pages” is the name of the post type “pages” and wordpress should translate it by default. If the translation doesn’t work because of whatever reasons the easiest solution is to overwrite it with a filter. Add following code to the bottom of functions.php
add_filter('avf_ajax_search_label_names','avia_change_pt_label_name', 10, 1);
function avia_change_pt_label_name($label)
{
if($label == 'Pages') $label = 'your text';
return $label;
}
and instead of “your text” insert your translated text.
Regards,
Peter
Thanks Peter that worked!