Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Business Hours Block: add missing Translators comment. #11281

Merged
merged 1 commit into from Feb 6, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions modules/blocks.php
Expand Up @@ -265,6 +265,7 @@ function jetpack_business_hours_render( $attributes, $content ) {
$content .= '<dd class="' . esc_attr( $day ) . '">';
if ( $hours['opening'] && $hours['closing'] ) {
$content .= sprintf(
/* Translators: Business opening hours info. */
_x( 'From %1$s to %2$s', 'from business opening hour to closing hour', 'jetpack' ),
date( $time_format, $opening ),
date( $time_format, $closing )
Expand All @@ -275,12 +276,14 @@ function jetpack_business_hours_render( $attributes, $content ) {
if ( $now < $opening ) {
$content .= '<br />';
$content .= esc_html( sprintf(
/* Translators: Amount of time until business opens. */
_x( 'Opening in %s', 'Amount of time until business opens', 'jetpack' ),
human_time_diff( $now, $opening )
) );
} elseif ( $now >= $opening && $now < $closing ) {
$content .= '<br />';
$content .= esc_html( sprintf(
/* Translators: Amount of time until business closes. */
_x( 'Closing in %s', 'Amount of time until business closes', 'jetpack' ),
human_time_diff( $now, $closing )
) );
Expand Down