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

Fixes #791 Update texts related to WebP and Next-Gen #800

Merged
merged 1 commit into from
Feb 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion inc/classes/class-imagify-files-list-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ public function column_optimization( $item ) {
$has_webp = $item->process->has_next_gen() ? __( 'Yes', 'imagify' ) : __( 'No', 'imagify' );
?>
<li class="imagify-data-item">
<span class="data"><?php esc_html_e( 'WebP generated:', 'imagify' ); ?></span>
<span class="data"><?php esc_html_e( 'Next-Gen generated:', 'imagify' ); ?></span>
<strong class="data-value"><?php echo esc_html( $has_webp ); ?></strong>
</li>
<?php
Expand Down
2 changes: 1 addition & 1 deletion inc/functions/admin-ui.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ function get_imagify_attachment_optimization_text( $process ) {
if ( $process->has_next_gen() ) {
$has_webp = $process->is_full_next_gen() ? __( 'Yes', 'imagify' ) : __( 'Partially', 'imagify' );
}
$output .= $output_before . '<span class="data">' . __( 'WebP generated:', 'imagify' ) . '</span> <strong class="big">' . esc_html( $has_webp ) . '</strong>' . $output_after;
$output .= $output_before . '<span class="data">' . __( 'Next-Gen generated:', 'imagify' ) . '</span> <strong class="big">' . esc_html( $has_webp ) . '</strong>' . $output_after;

$total_optimized_thumbnails = $data->get_optimized_sizes_count();

Expand Down
2 changes: 1 addition & 1 deletion views/button/delete-webp.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

<a href="<?php echo esc_url( $data['url'] ); ?>"<?php echo $html_atts; ?>>
<span class="dashicons dashicons-image-rotate"></span>
<?php esc_html_e( 'Delete next-gen images', 'imagify' ); ?>
<?php esc_html_e( 'Delete Next-Gen images', 'imagify' ); ?>
</a>

<?php
Expand Down
2 changes: 1 addition & 1 deletion views/button/generate-webp.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<a href="<?php echo esc_url( $data['url'] ); ?>"<?php echo $html_atts; ?>>
<span class="dashicons dashicons-admin-generic"></span>
<?php
esc_html_e( 'Generate next-gen images versions', 'imagify' );
esc_html_e( 'Generate Next-Gen images versions', 'imagify' );
?>
</a>

Expand Down
2 changes: 1 addition & 1 deletion views/part-settings-webp.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@

<button id="imagify-generate-webp-versions" class="button imagify-button-primary imagify-button-mini" type="button">
<span class="dashicons dashicons-admin-generic"></span>
<span class="button-text"><?php esc_html_e( 'Generate missing next-gen images versions', 'imagify' ); ?></span>
<span class="button-text"><?php esc_html_e( 'Generate missing Next-Gen images versions', 'imagify' ); ?></span>
</button>

<?php
Expand Down
Loading