diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index bc997b2..0000000 --- a/.gitattributes +++ /dev/null @@ -1,10 +0,0 @@ -# Directories -/.git export-ignore -/.github export-ignore -/.wordpress-org export-ignore - -# Files -/.gitattributes export-ignore -/.gitignore export-ignore -/LICENSE export-ignore -/README.md export-ignore \ No newline at end of file diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 065e7d9..0000000 --- a/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -# Files -.DS_Store diff --git a/readme.txt b/readme.txt index 846d79e..8aeca2c 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: adamsilverstein, google Tags: modern images, webp, avif, jpegxl Tested up to: 6.4 Stable tag: 1.2.0 -License: Apache License 2.0 +License: Apache-2.0 License URI: https://www.apache.org/licenses/LICENSE-2.0 Modern images for WordPress. diff --git a/src/Setting.php b/src/Setting.php index 7ede863..2a59bc1 100644 --- a/src/Setting.php +++ b/src/Setting.php @@ -269,8 +269,11 @@ public function get_sub_settings() { ); return array( + /* translators: %s is the image format, e.g. jpeg. */ 'id' => sprintf( 'modern_image_output_format_for_%s', $format ), + /* translators: %s is the image format, e.g. Jpeg. */ 'title' => sprintf( __( 'For %s images', 'modern-images-wp' ), lcfirst( $format ) ), + /* translators: %s is the image format, e.g. Jpeg. */ 'description' => sprintf( __( 'Uploaded %s images will be output in this format.', 'modern-images-wp' ), lcfirst( $format ) ), 'section' => 'modernimageformats', 'choices' => $choices, @@ -301,8 +304,9 @@ public function get_sanitize_callback() { $gd_supports_avif = isset( $image_info['gd_info']['AVIF Support'] ) && $image_info['gd_info']['AVIF Support']; $gd_supports_jpegxl = isset( $image_info['gd_info']['JPEGXL Support'] ) && $image_info['gd_info']['JPEGXL Support']; echo sprintf( - __('%1$sLibGD supported formats:%2$s %3$s%4$s%5$s%6$s', 'modern-images-wp' ), + '%1$s%2$s%3$s: %4$s%5$s%6$s%7$s', '', + esc_html( __( 'LibGD supported formats', 'modern-images-wp' ) ), '', $gd_supports_webp ? " WebP" : "", $gd_supports_avif ? " AVIF" : "", @@ -315,12 +319,13 @@ public function get_sanitize_callback() { $imagick_supports_avif = in_array( 'AVIF', $image_info['imagick_info'] ); $imagick_supports_jpegxl = in_array( 'JPEGXL', $image_info['imagick_info'] ); echo sprintf( - __('%1$sImagick supported formats:%2$s %3$s%4$s%5$s%6$s', 'modern-images-wp' ), + '%1$s%2$s%3$s: %4$s%5$s%6$s%7$s', '', + esc_html( __( 'Imagick supported formats', 'modern-images-wp' ) ), '', - $gd_supports_webp ? " WebP" : "", - $gd_supports_avif ? " AVIF" : "", - $gd_supports_jpegxl ? " JPEGXL" : "", + $imagick_supports_webp ? " WebP" : "", + $imagick_supports_avif ? " AVIF" : "", + $imagick_supports_jpegxl ? " JPEGXL" : "", '
' ); }