From 25b71f03d35be0bee306757b365da1eb639b2403 Mon Sep 17 00:00:00 2001 From: ramon Date: Mon, 13 May 2024 15:32:07 +1000 Subject: [PATCH] Added i18n domain --- lib/block-template-utils.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/block-template-utils.php b/lib/block-template-utils.php index 32d8f89923f2a..a644047d3cfdc 100644 --- a/lib/block-template-utils.php +++ b/lib/block-template-utils.php @@ -21,7 +21,7 @@ function gutenberg_generate_block_templates_export_file() { global $wp_version; if ( ! class_exists( 'ZipArchive' ) ) { - return new WP_Error( 'missing_zip_package', __( 'Zip Export not supported.' ) ); + return new WP_Error( 'missing_zip_package', __( 'Zip Export not supported.', 'gutenberg' ) ); } $obscura = wp_generate_password( 12, false, false ); @@ -30,7 +30,7 @@ function gutenberg_generate_block_templates_export_file() { $zip = new ZipArchive(); if ( true !== $zip->open( $filename, ZipArchive::CREATE | ZipArchive::OVERWRITE ) ) { - return new WP_Error( 'unable_to_create_zip', __( 'Unable to open export file (archive) for writing.' ) ); + return new WP_Error( 'unable_to_create_zip', __( 'Unable to open export file (archive) for writing.', 'gutenberg' ) ); } $zip->addEmptyDir( 'templates' );