Skip to content

Commit

Permalink
Fix/translation issue (#39242)
Browse files Browse the repository at this point in the history
* Fix translation issue

* changelog
  • Loading branch information
CodeyGuyDylan authored Sep 5, 2024
1 parent 78f19c8 commit 1e78440
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions projects/packages/videopress/changelog/fix-translation-issue
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

Fix translation issue with VideoPress data
1 change: 1 addition & 0 deletions projects/packages/videopress/src/class-stats.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ public static function prepare_featured_stats( $dates, $period_count, $period =
*/
krsort( $dates );
$period_of_data = floor( $period_count / 2 );
$period = $period === 'day' ? __( 'day', 'jetpack-videopress-pkg' ) : __( 'year', 'jetpack-videopress-pkg' );

// template for the response
$featured_stats = array(
Expand Down

0 comments on commit 1e78440

Please sign in to comment.