I have modified the following two php:
/src/views/v2/components/subscribe-links/list.php
<?php echo esc_html__( 'Subscribe to calendar', 'the-events-calendar' ); ?>
/src/Tribe/Views/V2/iCalendar/Links/Link_Abstract.php
public function filter_tec_views_v2_single_subscribe_links( $links, $view ) {
$class = sanitize_html_class( 'tribe-events-' . static::get_slug() );
$links[] = '<a class="tribe-events-button ' . $class
. '" href="' . esc_url( $this->get_uri( $view ) )
. '" title="' . esc_attr__( $this->get_single_label( $view ), 'the-events-calendar' )
. '">+ ' . esc_html__( $this->get_single_label( $view ), 'the-events-calendar' ) . '</a>';
return $links;
}
Hi @whoisuncle,
Those are new strings that have been added in the last release (v5.12.0). I am able to see them being translated when using Dutch or Spanish, which are the first two languages that are 100% translated (https://translate.wordpress.org/projects/wp-plugins/the-events-calendar/stable/)
Which language are you having trouble with?
Just for reference, here’s a list of handy articles about translations that can help you solve the problem.
Hope that helps 🙂
Hi @vicskf thanks for your reply.
I am creating zh_HK from the pot file and I am not using WPML.
Hi @whoisuncle
The strings on the single event page “Add to Google Calendar” and “Add to iCalendar” (without the + sign) are translateable already.
As for the dropdown, if the string is translateable in the code, then it will take the WordPress.org translation system a bit of time to pick it up, as far as I know.
If it is in the .pot file, then you should be able to update your .po/.mo files from that with the PoEdit software or the Loco Translate plugin.
Let us know if this helps.
Cheers,
Andras
Hi @aguseo
I did updated the translation in .po/.mo and all others phrases work except the ones I mentioned.
Until I updated the source code in the second reply, it works.
Happy to hear @whoisuncle
Sounds like this is resolved, so I’m going to mark it as such.
In case you bump into anything else, please open a new thread.
Cheers,
Andras