@arbremojo,
Thank you for clarifying.
I went over the replies above again and I now realize that the issue is not with the translation file. The file loads fine.
The problem is that the labels of the contact info ( phone, fax… ) are being called dynamically from the location meta database table into the results template file. Because of that, they cannot be translated via a translation file. The labels that you did find in the translation file are being used elsewhere in the plugin where they are not being loaded dynamically.
To translate the labels in the search results you will need to use the custom function below. Just add the functions to the functions.php file of your theme and change the labels ( “phone label”, “fax label”… ) as you wish:
function gmw_custom_translate_contact_labels( $labels ) {
return array(
'phone' => 'Phone Label',
'fax' => 'Fax Label',
'email' => 'Email Label',
'website' => 'Website Label',
);
}
add_filter( 'gmw_get_location_meta_list_labels', 'gmw_custom_translate_contact_labels', 50 );
Regarding the “Get Directions” label. I just tested it with a translation file and it works fine. Note that there are 2 “get directions” strings in the PO file, so
please make sure to translate both and check again if it is working.
let me know how it goes.