Support

Home Forums Event Espresso Premium Unable to Translate labels "State" & "Country" in New Venue

Unable to Translate labels "State" & "Country" in New Venue

Posted: October 31, 2016 at 8:46 am


ardiaful

October 31, 2016 at 8:46 am

When adding a new Venue, I’m definitely unable to translate the labels for “State” and “Country” inside the physical venue box. In the .po file there is not such words alone to translate, and adding these lines to my customization php file have had no effect.

Help is highly appreciated!

function ee_custom_messaging_changes( $translated, $original, $domain ) {
$strings = array(
‘State’ => ‘Provincia’,
‘Country’ => ‘País’,
);
if ( isset( $strings[$original] ) ) {
$translations = get_translations_for_domain( $domain );
$translated = $translations->translate( $strings[$original] );
}
return $translated;
}
add_filter( ‘gettext’, ‘ee_custom_messaging_changes’, 10, 3 );


Tony

  • Support Staff

October 31, 2016 at 9:25 am

Hi there,

Thank you for reporting this, it looks like those strings are currently untranslatable in that location so we will need to push an update to allow translations.

I’ve created a ticket for this will update this thread when that update is released.


Josh

  • Support Staff

November 29, 2016 at 1:51 pm

Update: Event Espresso 4.9.22.p includes some fixes for those strings so they’re translation-ready now.

The support post ‘Unable to Translate labels "State" & "Country" in New Venue’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso