Skip to content

Commit

Permalink
Fix project link
Browse files Browse the repository at this point in the history
  • Loading branch information
psrpinto committed Apr 18, 2024
1 parent 4baa113 commit 3c4c4a6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions templates/event.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

namespace Wporg\TranslationEvents;

use GP_Locales;
use WP_User;
use Wporg\TranslationEvents\Attendee\Attendee;
use Wporg\TranslationEvents\Attendee\Attendee_Repository;
Expand Down Expand Up @@ -156,9 +157,9 @@
<a href="<?php echo esc_url( gp_url_project( $row->project ) ); ?>"><?php echo esc_html( $project_name ); ?></a> <small> to
<?php
foreach ( explode( ',', $row->locales ) as $_locale ) {
$_locale = \GP_Locales::by_slug( $_locale );
$_locale = GP_Locales::by_slug( $_locale );
?>
<a href="<?php echo esc_url( gp_url_project_locale( $row->project, $_locale, 'default' ) ); ?>"><?php echo esc_html( $_locale->english_name ); ?></a>
<a href="<?php echo esc_url( gp_url_project_locale( $row->project, $_locale->slug, 'default' ) ); ?>"><?php echo esc_html( $_locale->english_name ); ?></a>
<?php
}
// translators: %d: Number of contributors.
Expand Down

0 comments on commit 3c4c4a6

Please sign in to comment.