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/languages/wp-module-performance-es_MX.po
@@ -8,7 +8,7 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: \n"
-"PO-Revision-Date: 2025-01-14 13:01+0000\n"
+"PO-Revision-Date: 2025-01-14 13:17+0000\n"
"Language: es_MX\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 3.2.2\n"
@@ -170,7 +170,7 @@ msgstr "Deshabilitado"
#: components/performance/defaultText.js:9
msgid "Caching disabled."
-msgstr ""
+msgstr "Caché deshabilitado."
#: components/performance/defaultText.js:10
msgid "Not recommended."
@@ -190,7 +190,7 @@ msgstr "Caché habilitado solo para recursos."
#: components/performance/defaultText.js:23
msgid "Tuned for online stores and member sites that need to be fresh."
-msgstr ""
+msgstr "Optimizado para tiendas en línea y sitios de miembros que necesitan mantenerse actualizados."
#: components/performance/defaultText.js:27
msgid "Cache static assets for 24 hours and web pages for 2 hours."
@@ -206,11 +206,11 @@ msgstr "Caché habilitada para recursos y páginas."
#: components/performance/defaultText.js:36
msgid "Tuned for sites that change at least weekly."
-msgstr ""
+msgstr "Optimizado para sitios que cambian al menos semanalmente."
#: components/performance/defaultText.js:40
msgid "Cache static assets for 1 week and web pages for 8 hours."
-msgstr "Almacena en caché recursos estáticos durante 1 semana y páginas web durante 8 horas. "
+msgstr "Almacena en caché recursos estáticos durante 1 semana y páginas web durante 8 horas."
#: components/performance/defaultText.js:44
msgid "Assets & Web Pages - Extended"
@@ -222,7 +222,7 @@ msgstr "Caché habilitada para recursos y páginas (extendido)."
#: components/performance/defaultText.js:52
msgid "Tuned for sites that update a few times a month or less."
-msgstr ""
+msgstr "Optimizado para sitios que se actualizan unas pocas veces al mes o menos."
#: components/performance/defaultText.js:56
msgid "Boost speed and performance by storing a copy of your website content, files, and images online so the pages of your website load faster for your visitors."
@@ -250,136 +250,136 @@ msgstr "Limpiar Caché"
#: components/performance/defaultText.js:69
msgid "Exclude from cache"
-msgstr ""
+msgstr "Excluir del caché"
#: components/performance/defaultText.js:70
msgid "This setting controls what pages pass a “no-cache” header so that page caching and browser caching is not used."
-msgstr ""
+msgstr "Esta configuración controla qué páginas pasan un encabezado “no-cache” para que no se utilice el almacenamiento en caché de páginas ni el almacenamiento en caché del navegador."
#: components/performance/defaultText.js:74
msgid "Cache Exclusion saved"
-msgstr ""
+msgstr "Exclusión de caché guardada"
#: components/performance/defaultText.js:75
msgid "Save"
-msgstr ""
+msgstr "Guardar"
#: components/performance/defaultText.js:77
msgid "Skip 404"
-msgstr ""
+msgstr "Saltar 404"
#: components/performance/defaultText.js:78
msgid "When enabled, static resources like images and fonts will use a default server 404 page and not WordPress 404 pages. Pages and posts will continue using WordPress for 404 pages. This can considerably speed up your website if a static resource like an image or font is missing."
-msgstr ""
+msgstr "Cuando está habilitado, los recursos estáticos como imágenes y fuentes usarán una página 404 predeterminada del servidor y no las páginas 404 de WordPress. Las páginas y publicaciones seguirán usando WordPress para las páginas 404. Esto puede acelerar considerablemente tu sitio web si falta un recurso estático como una imagen o una fuente."
#: components/performance/defaultText.js:82
msgid "Skip 404 Handling For Static Files"
-msgstr ""
+msgstr "Saltar manejo 404 para archivos estáticos"
#: components/performance/defaultText.js:86
#: components/performance/defaultText.js:87
msgid "Skip 404 saved"
-msgstr ""
+msgstr "Saltar 404 guardado"
#: components/performance/defaultText.js:89
msgid "Image Optimization"
-msgstr ""
+msgstr "Optimización de Imagen"
#: components/performance/defaultText.js:93
msgid "We automatically optimize your uploaded images to WebP format for faster performance and reduced file sizes. You can also choose to delete the original images to save storage space."
-msgstr ""
+msgstr "Optimizamos automáticamente tus imágenes cargadas al formato WebP para un rendimiento más rápido y tamaños de archivo reducidos. También puedes optar por eliminar las imágenes originales para ahorrar espacio de almacenamiento."
#: components/performance/defaultText.js:97
msgid "Enable Image Optimization"
-msgstr ""
+msgstr "Habilitar Optimización de Imagen"
#: components/performance/defaultText.js:101
msgid "Enable or disable image optimization globally."
-msgstr ""
+msgstr "Habilitar o deshabilitar la optimización de imágenes globalmente."
#: components/performance/defaultText.js:105
msgid "Automatically Optimize Uploaded Images"
-msgstr ""
+msgstr "Optimizar automáticamente las imágenes cargadas"
#: components/performance/defaultText.js:109
msgid "When enabled, all your new image uploads will be automatically optimized to WebP format, ensuring faster page loading and reduced file sizes."
-msgstr ""
+msgstr "Cuando está habilitado, todas tus nuevas cargas de imágenes se optimizarán automáticamente al formato WebP, lo que garantiza una carga de página más rápida y tamaños de archivo reducidos."
#: components/performance/defaultText.js:113
msgid "Auto Delete Original Image"
-msgstr ""
+msgstr "Eliminar automáticamente la imagen original"
#: components/performance/defaultText.js:117
msgid "When enabled, the original uploaded image is deleted and replaced with the optimized version, helping to save storage space. If disabled, the optimized image is saved as a separate file, retaining the original."
-msgstr ""
+msgstr "Cuando está habilitado, la imagen original cargada se elimina y se reemplaza con la versión optimizada, lo que ayuda a ahorrar espacio de almacenamiento. Si está deshabilitado, la imagen optimizada se guarda como un archivo separado, conservando la original."
#: components/performance/defaultText.js:121
msgid "No settings available."
-msgstr ""
+msgstr "No hay configuraciones disponibles."
#: components/performance/defaultText.js:125
msgid "Oops! Something went wrong. Please try again."
-msgstr ""
+msgstr "¡Ups! Algo salió mal. Por favor, inténtalo de nuevo."
#: components/performance/defaultText.js:129
msgid "Loading settings…"
-msgstr ""
+msgstr "Cargando configuraciones…"
#: components/performance/defaultText.js:133
msgid "Settings updated successfully"
-msgstr ""
+msgstr "Configuraciones actualizadas exitosamente"
#: components/performance/defaultText.js:137
msgid "Your image optimization settings have been saved."
-msgstr ""
+msgstr "Se han guardado tus configuraciones de optimización de imágenes."
#: components/performance/defaultText.js:141
msgid "Enable Lazy Loading"
-msgstr ""
+msgstr "Habilitar carga diferida"
#: components/performance/defaultText.js:145
msgid "Lazy loading defers the loading of images until they are visible on the screen, improving page load speed and performance."
-msgstr ""
+msgstr "La carga diferida pospone la carga de imágenes hasta que estén visibles en la pantalla, lo que mejora la velocidad de carga de la página y el rendimiento."
#: components/performance/defaultText.js:149
msgid "Lazy loading has been updated."
-msgstr ""
+msgstr "La carga diferida se ha actualizado."
#: components/performance/defaultText.js:153
msgid "Oops! There was an error updating the lazy loading settings."
-msgstr ""
+msgstr "¡Ups! Hubo un error al actualizar la configuración de carga diferida."
#: components/performance/defaultText.js:157
msgid "Enable Bulk Optimization of Images"
-msgstr ""
+msgstr "Habilitar optimización masiva de imágenes"
#: components/performance/defaultText.js:161
msgid "When enabled, allows bulk optimization of images in the media library."
-msgstr ""
+msgstr "Cuando está habilitado, permite la optimización masiva de imágenes en la biblioteca de medios."
#: components/performance/defaultText.js:165
msgid "Go to Media Library"
-msgstr ""
+msgstr "Ir a la biblioteca de medios"
#: components/performance/defaultText.js:169
msgid "Error Updating Settings"
-msgstr ""
+msgstr "Error al actualizar la configuración"
#: components/performance/defaultText.js:173
msgid "Prefer Optimized Image When Exists"
-msgstr ""
+msgstr "Preferir imagen optimizada cuando exista"
#: components/performance/defaultText.js:177
msgid "When enabled, optimized images will be served in place of original images when they exist, improving performance."
-msgstr ""
+msgstr "Cuando está habilitado, se mostrarán las imágenes optimizadas en lugar de las imágenes originales cuando existan, lo que mejora el rendimiento."
#: components/performance/defaultText.js:181
msgid "Something went wrong while updating the settings. Please try again."
-msgstr ""
+msgstr "Ocurrió un error al actualizar la configuración. Vuelve a intentarlo."
#: components/performance/defaultText.js:186
msgid "Asks the browser to download and cache links on the page ahead of them being clicked on, so that when they are clicked they load almost instantly."
-msgstr ""
+msgstr "Le pide al navegador que descargue y almacene en caché los enlaces de la página antes de que se haga clic en ellos, para que cuando se haga clic, se carguen casi instantáneamente."
#: components/performance/defaultText.js:190
msgid "Link prefetching setting saved"
@@ -411,7 +411,7 @@ msgstr "Precarga al hacer clic en el botón"
#: components/performance/defaultText.js:212
msgid "Prefetch on Mouse Down: Starts loading the page as soon as you click down, for faster response when you release the click."
-msgstr ""
+msgstr "Precarga al presionar el botón del mouse: Comienza a cargar la página tan pronto como presionas el botón del mouse, para una respuesta más rápida cuando lo sueltas."
#: components/performance/defaultText.js:216
msgid "Prefetch on Mouse Hover (Recommended)"
@@ -435,7 +435,7 @@ msgstr "Precarga al tocar la pantalla táctil (recomendado)"
#: components/performance/defaultText.js:236
msgid "Prefetch on Touchstart: Instantly starts loading the page as soon as you tap the screen, ensuring a quicker response when you lift your finger."
-msgstr ""
+msgstr "Precarga al tocar la pantalla: Comienza a cargar la página instantáneamente tan pronto como tocas la pantalla, lo que garantiza una respuesta más rápida cuando levantas el dedo."
#: components/performance/defaultText.js:240
msgid "Prefetch Above the Fold"
@@ -443,11 +443,11 @@ msgstr "Precarga en vista actual"
#: components/performance/defaultText.js:244
msgid "Prefetch Above the Fold: Loads links in your current view instantly, ensuring they're ready when you need them."
-msgstr ""
+msgstr "Precarga sobre el pliegue: Carga los enlaces en tu vista actual al instante, asegurándose de que estén listos cuando los necesites."
#: components/performance/defaultText.js:248
msgid "Exclude Keywords: A comma separated list of words or strings that will exclude a link from being prefetched. For example, excluding \"app\" will prevent https://example.com/apple from being prefetched."
-msgstr ""
+msgstr "Excluir palabras clave: Una lista separada por comas de palabras o cadenas que excluirán un enlace de la precarga. Por ejemplo, excluir “app” evitará que se precargue https://example.com/apple."
#: components/performance/defaultText.js:252
msgid "Exclude keywords"
From cd65677d83ac49834c1f6c1b48069dd7b2a32a89 Mon Sep 17 00:00:00 2001
From: Armando Liccardo
Date: Tue, 14 Jan 2025 15:21:40 +0000
Subject: [PATCH 10/12] fixed issue on loading css
---
includes/Performance.php | 20 +++++++++++++-------
1 file changed, 13 insertions(+), 7 deletions(-)
diff --git a/includes/Performance.php b/includes/Performance.php
index e899f55..930fc9f 100644
--- a/includes/Performance.php
+++ b/includes/Performance.php
@@ -101,9 +101,9 @@ public function __construct( Container $container ) {
add_filter( 'newfold-runtime', array( $this, 'add_to_runtime' ), 100 );
! defined( 'NFD_PERFORMANCE_PLUGIN_LANGUAGES_DIR' ) && define( 'NFD_PERFORMANCE_PLUGIN_LANGUAGES_DIR', dirname( $container->plugin()->file ) . '/vendor/newfold-labs/wp-module-performance/languages' );
- add_action( 'load-toplevel_page_' . $container->plugin()->id, array( $this, 'register_assets' ), 1 );
-
+ add_action( 'load-toplevel_page_' . $container->plugin()->id, array( $this, 'load_translations' ), 1 );
add_action( 'init', array( $this, 'load_text_domain' ) );
+ add_action( 'admin_enqueue_scripts', array( $this, 'register_assets' ) );
}
/**
@@ -310,15 +310,21 @@ public function add_sub_menu_page() {
5
);
}
-
/**
* Enqueue scripts and styles in admin
*/
public function register_assets() {
- $plugin_url = $this->container->plugin()->url . get_styles_path();
- wp_register_style( 'wp-module-performance-styles', $plugin_url, array(), $this->container->plugin()->version );
- wp_enqueue_style( 'wp-module-performance-styles' );
-
+ $validscreen = 'toplevel_page_' . $this->container->plugin()->id;
+ if ( $validscreen === get_current_screen()->id ) {
+ $plugin_url = $this->container->plugin()->url . get_styles_path();
+ wp_register_style( 'wp-module-performance-styles', $plugin_url, array(), $this->container->plugin()->version );
+ wp_enqueue_style( 'wp-module-performance-styles' );
+ }
+ }
+ /**
+ * Enqueue script for translations of the performance panel settings
+ */
+ public function load_translations() {
wp_register_script(
'wp-module-performance-translations',
NFD_PERFORMANCE_BUILD_URL . '/test.min.js',
From d90c5b611db61c54b5feb700ec8e4a52c411e529 Mon Sep 17 00:00:00 2001
From: Armando Liccardo
Date: Wed, 15 Jan 2025 11:13:08 +0000
Subject: [PATCH 11/12] added translations for image bulk optimizing scripts
---
build/test.min.js | 0
build/translations.min.js | 1 +
composer.json | 2 +-
composer.lock | 246 +++++++++---------
includes/Images/ImageBulkOptimizer.php | 6 +
includes/Images/ImageOptimizedMarker.php | 12 +-
includes/Performance.php | 4 +-
...-es_MX-nfd-performance-bulk-optimizer.json | 45 ++++
...s_MX-nfd-performance-optimizer-marker.json | 18 ++
languages/wp-module-performance-es_MX.po | 44 ++++
...-pt_BR-nfd-performance-bulk-optimizer.json | 45 ++++
...t_BR-nfd-performance-optimizer-marker.json | 18 ++
languages/wp-module-performance-pt_BR.po | 44 ++++
languages/wp-module-performance.pot | 44 ++++
translations-json-rename.js | 2 +
15 files changed, 403 insertions(+), 128 deletions(-)
delete mode 100644 build/test.min.js
create mode 100644 build/translations.min.js
create mode 100644 languages/wp-module-performance-es_MX-nfd-performance-bulk-optimizer.json
create mode 100644 languages/wp-module-performance-es_MX-nfd-performance-optimizer-marker.json
create mode 100644 languages/wp-module-performance-pt_BR-nfd-performance-bulk-optimizer.json
create mode 100644 languages/wp-module-performance-pt_BR-nfd-performance-optimizer-marker.json
diff --git a/build/test.min.js b/build/test.min.js
deleted file mode 100644
index e69de29..0000000
diff --git a/build/translations.min.js b/build/translations.min.js
new file mode 100644
index 0000000..8337080
--- /dev/null
+++ b/build/translations.min.js
@@ -0,0 +1 @@
+/* performance module translations helper */
\ No newline at end of file
diff --git a/composer.json b/composer.json
index 030ef29..de48036 100644
--- a/composer.json
+++ b/composer.json
@@ -46,7 +46,7 @@
}
},
"scripts": {
- "i18n-pot": "vendor/bin/wp i18n make-pot . ./languages/wp-module-performance.pot --domain=wp-module-performance --headers='{\"Report-Msgid-Bugs-To\":\"https://github.com/newfold-labs/wp-module-performance/issues\",\"POT-Creation-Date\":null}' --exclude=assets,build,node_modules,src,tests",
+ "i18n-pot": "vendor/bin/wp i18n make-pot . ./languages/wp-module-performance.pot --domain=wp-module-performance --headers='{\"Report-Msgid-Bugs-To\":\"https://github.com/newfold-labs/wp-module-performance/issues\",\"POT-Creation-Date\":null}' --exclude=build,node_modules,src,tests",
"i18n-po": "vendor/bin/wp i18n update-po ./languages/wp-module-performance.pot ./languages",
"i18n-mo": "vendor/bin/wp i18n make-mo ./languages",
"i18n-json": "rm -f languages/*.json && vendor/bin/wp i18n make-json ./languages --no-purge --pretty-print",
diff --git a/composer.lock b/composer.lock
index 395097e..f284c3c 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "5072d5518a3305152c5eed643fa6faed",
+ "content-hash": "7d72f5a22608defb3b11d7b2e6d7db74",
"packages": [
{
"name": "doctrine/inflector",
@@ -447,16 +447,16 @@
},
{
"name": "newfold-labs/wp-module-pls",
- "version": "1.0.0",
+ "version": "1.0.1",
"source": {
"type": "git",
"url": "https://github.com/newfold-labs/wp-module-pls.git",
- "reference": "08b7c41b3d52d66414b6234389d7f4c414477d91"
+ "reference": "e68a79350e9eedcb592cd8e9ec79cc01e29e37a5"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/newfold-labs/wp-module-pls/zipball/08b7c41b3d52d66414b6234389d7f4c414477d91",
- "reference": "08b7c41b3d52d66414b6234389d7f4c414477d91",
+ "url": "https://api.github.com/repos/newfold-labs/wp-module-pls/zipball/e68a79350e9eedcb592cd8e9ec79cc01e29e37a5",
+ "reference": "e68a79350e9eedcb592cd8e9ec79cc01e29e37a5",
"shasum": ""
},
"require": {
@@ -487,10 +487,10 @@
],
"description": "A Newfold module that handles license key provisioning, validation, and other lifecycle events for registered plugins using the PLS API via Hiive.",
"support": {
- "source": "https://github.com/newfold-labs/wp-module-pls/tree/1.0.0",
+ "source": "https://github.com/newfold-labs/wp-module-pls/tree/1.0.1",
"issues": "https://github.com/newfold-labs/wp-module-pls/issues"
},
- "time": "2024-10-23T09:11:18+00:00"
+ "time": "2024-12-11T19:31:32+00:00"
},
{
"name": "wp-forge/collection",
@@ -612,16 +612,16 @@
},
{
"name": "wp-forge/wp-htaccess-manager",
- "version": "1.0",
+ "version": "1.0.1",
"source": {
"type": "git",
"url": "https://github.com/wp-forge/wp-htaccess-manager.git",
- "reference": "f1fac7af85c0d75a211a5d0e73cd43a7d62debe8"
+ "reference": "203f0e54378ce2cad9ec8c272851bc7170efcbb1"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/wp-forge/wp-htaccess-manager/zipball/f1fac7af85c0d75a211a5d0e73cd43a7d62debe8",
- "reference": "f1fac7af85c0d75a211a5d0e73cd43a7d62debe8",
+ "url": "https://api.github.com/repos/wp-forge/wp-htaccess-manager/zipball/203f0e54378ce2cad9ec8c272851bc7170efcbb1",
+ "reference": "203f0e54378ce2cad9ec8c272851bc7170efcbb1",
"shasum": ""
},
"type": "library",
@@ -646,9 +646,9 @@
"description": "A helper library for making changes to .htaccess files in WordPress.",
"support": {
"issues": "https://github.com/wp-forge/wp-htaccess-manager/issues",
- "source": "https://github.com/wp-forge/wp-htaccess-manager/tree/1.0"
+ "source": "https://github.com/wp-forge/wp-htaccess-manager/tree/1.0.1"
},
- "time": "2022-04-01T16:21:01+00:00"
+ "time": "2025-01-13T16:12:03+00:00"
},
{
"name": "wp-forge/wp-options",
@@ -817,16 +817,16 @@
"packages-dev": [
{
"name": "composer/ca-bundle",
- "version": "1.5.4",
+ "version": "1.5.5",
"source": {
"type": "git",
"url": "https://github.com/composer/ca-bundle.git",
- "reference": "bc0593537a463e55cadf45fd938d23b75095b7e1"
+ "reference": "08c50d5ec4c6ced7d0271d2862dec8c1033283e6"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/composer/ca-bundle/zipball/bc0593537a463e55cadf45fd938d23b75095b7e1",
- "reference": "bc0593537a463e55cadf45fd938d23b75095b7e1",
+ "url": "https://api.github.com/repos/composer/ca-bundle/zipball/08c50d5ec4c6ced7d0271d2862dec8c1033283e6",
+ "reference": "08c50d5ec4c6ced7d0271d2862dec8c1033283e6",
"shasum": ""
},
"require": {
@@ -873,7 +873,7 @@
"support": {
"irc": "irc://irc.freenode.org/composer",
"issues": "https://github.com/composer/ca-bundle/issues",
- "source": "https://github.com/composer/ca-bundle/tree/1.5.4"
+ "source": "https://github.com/composer/ca-bundle/tree/1.5.5"
},
"funding": [
{
@@ -889,7 +889,7 @@
"type": "tidelift"
}
],
- "time": "2024-11-27T15:35:25+00:00"
+ "time": "2025-01-08T16:17:16+00:00"
},
{
"name": "composer/class-map-generator",
@@ -1174,13 +1174,13 @@
},
"type": "library",
"extra": {
- "branch-alias": {
- "dev-main": "3.x-dev"
- },
"phpstan": {
"includes": [
"extension.neon"
]
+ },
+ "branch-alias": {
+ "dev-main": "3.x-dev"
}
},
"autoload": {
@@ -2901,12 +2901,12 @@
},
"type": "library",
"extra": {
+ "thanks": {
+ "url": "https://github.com/symfony/contracts",
+ "name": "symfony/contracts"
+ },
"branch-alias": {
"dev-main": "3.5-dev"
- },
- "thanks": {
- "name": "symfony/contracts",
- "url": "https://github.com/symfony/contracts"
}
},
"autoload": {
@@ -3017,16 +3017,16 @@
},
{
"name": "symfony/finder",
- "version": "v7.2.0",
+ "version": "v7.2.2",
"source": {
"type": "git",
"url": "https://github.com/symfony/finder.git",
- "reference": "6de263e5868b9a137602dd1e33e4d48bfae99c49"
+ "reference": "87a71856f2f56e4100373e92529eed3171695cfb"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/finder/zipball/6de263e5868b9a137602dd1e33e4d48bfae99c49",
- "reference": "6de263e5868b9a137602dd1e33e4d48bfae99c49",
+ "url": "https://api.github.com/repos/symfony/finder/zipball/87a71856f2f56e4100373e92529eed3171695cfb",
+ "reference": "87a71856f2f56e4100373e92529eed3171695cfb",
"shasum": ""
},
"require": {
@@ -3061,7 +3061,7 @@
"description": "Finds files and directories via an intuitive fluent interface",
"homepage": "https://symfony.com",
"support": {
- "source": "https://github.com/symfony/finder/tree/v7.2.0"
+ "source": "https://github.com/symfony/finder/tree/v7.2.2"
},
"funding": [
{
@@ -3077,7 +3077,7 @@
"type": "tidelift"
}
],
- "time": "2024-10-23T06:56:12+00:00"
+ "time": "2024-12-30T19:00:17+00:00"
},
{
"name": "symfony/polyfill-ctype",
@@ -3714,12 +3714,12 @@
},
"type": "library",
"extra": {
+ "thanks": {
+ "url": "https://github.com/symfony/contracts",
+ "name": "symfony/contracts"
+ },
"branch-alias": {
"dev-main": "3.5-dev"
- },
- "thanks": {
- "name": "symfony/contracts",
- "url": "https://github.com/symfony/contracts"
}
},
"autoload": {
@@ -3883,9 +3883,6 @@
},
"type": "wp-cli-package",
"extra": {
- "branch-alias": {
- "dev-main": "2.x-dev"
- },
"bundled": true,
"commands": [
"cache",
@@ -3906,7 +3903,10 @@
"transient set",
"transient type",
"transient list"
- ]
+ ],
+ "branch-alias": {
+ "dev-main": "2.x-dev"
+ }
},
"autoload": {
"files": [
@@ -3958,14 +3958,14 @@
},
"type": "wp-cli-package",
"extra": {
- "branch-alias": {
- "dev-main": "2.x-dev"
- },
"bundled": true,
"commands": [
"core verify-checksums",
"plugin verify-checksums"
- ]
+ ],
+ "branch-alias": {
+ "dev-main": "2.x-dev"
+ }
},
"autoload": {
"files": [
@@ -4018,9 +4018,6 @@
},
"type": "wp-cli-package",
"extra": {
- "branch-alias": {
- "dev-main": "2.x-dev"
- },
"bundled": true,
"commands": [
"config",
@@ -4034,7 +4031,10 @@
"config path",
"config set",
"config shuffle-salts"
- ]
+ ],
+ "branch-alias": {
+ "dev-main": "2.x-dev"
+ }
},
"autoload": {
"files": [
@@ -4164,9 +4164,6 @@
},
"type": "wp-cli-package",
"extra": {
- "branch-alias": {
- "dev-main": "2.x-dev"
- },
"bundled": true,
"commands": [
"cron",
@@ -4179,7 +4176,10 @@
"cron schedule",
"cron schedule list",
"cron event unschedule"
- ]
+ ],
+ "branch-alias": {
+ "dev-main": "2.x-dev"
+ }
},
"autoload": {
"files": [
@@ -4305,9 +4305,6 @@
},
"type": "wp-cli-package",
"extra": {
- "branch-alias": {
- "dev-main": "2.x-dev"
- },
"bundled": true,
"commands": [
"embed",
@@ -4321,7 +4318,10 @@
"embed cache clear",
"embed cache find",
"embed cache trigger"
- ]
+ ],
+ "branch-alias": {
+ "dev-main": "2.x-dev"
+ }
},
"autoload": {
"files": [
@@ -4376,9 +4376,6 @@
},
"type": "wp-cli-package",
"extra": {
- "branch-alias": {
- "dev-main": "2.x-dev"
- },
"bundled": true,
"commands": [
"comment",
@@ -4557,7 +4554,10 @@
"user term set",
"user unspam",
"user update"
- ]
+ ],
+ "branch-alias": {
+ "dev-main": "2.x-dev"
+ }
},
"autoload": {
"files": [
@@ -4608,14 +4608,14 @@
},
"type": "wp-cli-package",
"extra": {
- "branch-alias": {
- "dev-main": "2.x-dev"
- },
"bundled": true,
"commands": [
"eval",
"eval-file"
- ]
+ ],
+ "branch-alias": {
+ "dev-main": "2.x-dev"
+ }
},
"autoload": {
"files": [
@@ -4672,13 +4672,13 @@
},
"type": "wp-cli-package",
"extra": {
- "branch-alias": {
- "dev-main": "2.x-dev"
- },
"bundled": true,
"commands": [
"export"
- ]
+ ],
+ "branch-alias": {
+ "dev-main": "2.x-dev"
+ }
},
"autoload": {
"files": [
@@ -4899,13 +4899,13 @@
},
"type": "wp-cli-package",
"extra": {
- "branch-alias": {
- "dev-main": "2.x-dev"
- },
"bundled": true,
"commands": [
"import"
- ]
+ ],
+ "branch-alias": {
+ "dev-main": "2.x-dev"
+ }
},
"autoload": {
"files": [
@@ -4959,9 +4959,6 @@
},
"type": "wp-cli-package",
"extra": {
- "branch-alias": {
- "dev-main": "2.x-dev"
- },
"bundled": true,
"commands": [
"language",
@@ -4985,7 +4982,10 @@
"language theme uninstall",
"language theme update",
"site switch-language"
- ]
+ ],
+ "branch-alias": {
+ "dev-main": "2.x-dev"
+ }
},
"autoload": {
"files": [
@@ -5036,9 +5036,6 @@
},
"type": "wp-cli-package",
"extra": {
- "branch-alias": {
- "dev-main": "2.x-dev"
- },
"bundled": true,
"commands": [
"maintenance-mode",
@@ -5046,7 +5043,10 @@
"maintenance-mode deactivate",
"maintenance-mode status",
"maintenance-mode is-active"
- ]
+ ],
+ "branch-alias": {
+ "dev-main": "2.x-dev"
+ }
},
"autoload": {
"files": [
@@ -5099,16 +5099,16 @@
},
"type": "wp-cli-package",
"extra": {
- "branch-alias": {
- "dev-main": "2.x-dev"
- },
"bundled": true,
"commands": [
"media",
"media import",
"media regenerate",
"media image-size"
- ]
+ ],
+ "branch-alias": {
+ "dev-main": "2.x-dev"
+ }
},
"autoload": {
"files": [
@@ -5213,9 +5213,6 @@
},
"type": "wp-cli-package",
"extra": {
- "branch-alias": {
- "dev-main": "2.x-dev"
- },
"bundled": true,
"commands": [
"package",
@@ -5224,7 +5221,10 @@
"package list",
"package update",
"package uninstall"
- ]
+ ],
+ "branch-alias": {
+ "dev-main": "2.x-dev"
+ }
},
"autoload": {
"files": [
@@ -5339,16 +5339,16 @@
},
"type": "wp-cli-package",
"extra": {
- "branch-alias": {
- "dev-main": "2.x-dev"
- },
"bundled": true,
"commands": [
"rewrite",
"rewrite flush",
"rewrite list",
"rewrite structure"
- ]
+ ],
+ "branch-alias": {
+ "dev-main": "2.x-dev"
+ }
},
"autoload": {
"files": [
@@ -5399,9 +5399,6 @@
},
"type": "wp-cli-package",
"extra": {
- "branch-alias": {
- "dev-main": "2.x-dev"
- },
"bundled": true,
"commands": [
"role",
@@ -5414,7 +5411,10 @@
"cap add",
"cap list",
"cap remove"
- ]
+ ],
+ "branch-alias": {
+ "dev-main": "2.x-dev"
+ }
},
"autoload": {
"files": [
@@ -5466,9 +5466,6 @@
},
"type": "wp-cli-package",
"extra": {
- "branch-alias": {
- "dev-main": "2.x-dev"
- },
"bundled": true,
"commands": [
"scaffold",
@@ -5480,7 +5477,10 @@
"scaffold post-type",
"scaffold taxonomy",
"scaffold theme-tests"
- ]
+ ],
+ "branch-alias": {
+ "dev-main": "2.x-dev"
+ }
},
"autoload": {
"files": [
@@ -5534,13 +5534,13 @@
},
"type": "wp-cli-package",
"extra": {
- "branch-alias": {
- "dev-main": "2.x-dev"
- },
"bundled": true,
"commands": [
"search-replace"
- ]
+ ],
+ "branch-alias": {
+ "dev-main": "2.x-dev"
+ }
},
"autoload": {
"files": [
@@ -5592,13 +5592,13 @@
},
"type": "wp-cli-package",
"extra": {
- "branch-alias": {
- "dev-main": "2.x-dev"
- },
"bundled": true,
"commands": [
"server"
- ]
+ ],
+ "branch-alias": {
+ "dev-main": "2.x-dev"
+ }
},
"autoload": {
"files": [
@@ -5649,13 +5649,13 @@
},
"type": "wp-cli-package",
"extra": {
- "branch-alias": {
- "dev-main": "2.x-dev"
- },
"bundled": true,
"commands": [
"shell"
- ]
+ ],
+ "branch-alias": {
+ "dev-main": "2.x-dev"
+ }
},
"autoload": {
"files": [
@@ -5707,16 +5707,16 @@
},
"type": "wp-cli-package",
"extra": {
- "branch-alias": {
- "dev-main": "2.x-dev"
- },
"bundled": true,
"commands": [
"super-admin",
"super-admin add",
"super-admin list",
"super-admin remove"
- ]
+ ],
+ "branch-alias": {
+ "dev-main": "2.x-dev"
+ }
},
"autoload": {
"files": [
@@ -5768,9 +5768,6 @@
},
"type": "wp-cli-package",
"extra": {
- "branch-alias": {
- "dev-main": "2.x-dev"
- },
"bundled": true,
"commands": [
"widget",
@@ -5783,7 +5780,10 @@
"widget update",
"sidebar",
"sidebar list"
- ]
+ ],
+ "branch-alias": {
+ "dev-main": "2.x-dev"
+ }
},
"autoload": {
"files": [
@@ -6073,10 +6073,10 @@
],
"aliases": [],
"minimum-stability": "stable",
- "stability-flags": [],
+ "stability-flags": {},
"prefer-stable": false,
"prefer-lowest": false,
- "platform": [],
- "platform-dev": [],
+ "platform": {},
+ "platform-dev": {},
"plugin-api-version": "2.6.0"
}
diff --git a/includes/Images/ImageBulkOptimizer.php b/includes/Images/ImageBulkOptimizer.php
index 06d81d6..a416cd8 100644
--- a/includes/Images/ImageBulkOptimizer.php
+++ b/includes/Images/ImageBulkOptimizer.php
@@ -26,6 +26,12 @@ public function enqueue_bulk_optimizer_script() {
true
);
+ wp_set_script_translations(
+ 'nfd-performance-bulk-optimizer',
+ 'wp-module-performance',
+ NFD_PERFORMANCE_PLUGIN_LANGUAGES_DIR
+ );
+
wp_enqueue_style(
'nfd-performance-bulk-optimizer-style',
NFD_PERFORMANCE_BUILD_URL . '/image-bulk-optimizer/image-bulk-optimizer.min.css',
diff --git a/includes/Images/ImageOptimizedMarker.php b/includes/Images/ImageOptimizedMarker.php
index 92e602c..5fe4f12 100644
--- a/includes/Images/ImageOptimizedMarker.php
+++ b/includes/Images/ImageOptimizedMarker.php
@@ -19,14 +19,22 @@ public function __construct() {
* Enqueues JS and CSS files for marking optimized images.
*/
public function enqueue_marker_assets() {
- wp_enqueue_script(
+ wp_register_script(
'nfd-performance-optimizer-marker',
NFD_PERFORMANCE_BUILD_URL . '/image-optimized-marker/image-optimized-marker.min.js',
- array( 'wp-i18n' ),
+ array( 'wp-api-fetch', 'wp-element', 'wp-i18n' ),
filemtime( NFD_PERFORMANCE_BUILD_DIR . '/image-optimized-marker/image-optimized-marker.min.js' ),
true
);
+ wp_set_script_translations(
+ 'nfd-performance-optimizer-marker',
+ 'wp-module-performance',
+ NFD_PERFORMANCE_PLUGIN_LANGUAGES_DIR
+ );
+
+ wp_enqueue_script( 'nfd-performance-optimizer-marker' );
+
wp_enqueue_style(
'nfd-performance-optimizer-marker-style',
NFD_PERFORMANCE_BUILD_URL . '/image-optimized-marker/image-optimized-marker.min.css',
diff --git a/includes/Performance.php b/includes/Performance.php
index 930fc9f..08b3c9b 100644
--- a/includes/Performance.php
+++ b/includes/Performance.php
@@ -327,8 +327,8 @@ public function register_assets() {
public function load_translations() {
wp_register_script(
'wp-module-performance-translations',
- NFD_PERFORMANCE_BUILD_URL . '/test.min.js',
- array( 'lodash', 'react', 'react-dom', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-url' ),
+ NFD_PERFORMANCE_BUILD_URL . '/translations.min.js',
+ array( 'lodash', 'react', 'react-dom', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-html-entities', 'wp-i18n' ),
$this->container->plugin()->version,
true
);
diff --git a/languages/wp-module-performance-es_MX-nfd-performance-bulk-optimizer.json b/languages/wp-module-performance-es_MX-nfd-performance-bulk-optimizer.json
new file mode 100644
index 0000000..d214a66
--- /dev/null
+++ b/languages/wp-module-performance-es_MX-nfd-performance-bulk-optimizer.json
@@ -0,0 +1,45 @@
+{
+ "translation-revision-date": "2025-01-14 13:17+0000",
+ "generator": "WP-CLI\/2.11.0",
+ "source": "assets\/image-bulk-optimizer\/image-bulk-optimizer.js",
+ "domain": "messages",
+ "locale_data": {
+ "messages": {
+ "": {
+ "domain": "messages",
+ "lang": "es_MX",
+ "plural-forms": "nplurals=2; plural=(n != 1);"
+ },
+ "Optimizing Images\u2026": [
+ "Optimizando imágenes..."
+ ],
+ "Preparing files\u2026": [
+ "Preparando archivos..."
+ ],
+ "Done": [
+ "Hecho"
+ ],
+ "Optimization Canceled": [
+ "Optimización Cancelada"
+ ],
+ "Optimizing:": [
+ "Optimizando:"
+ ],
+ "Optimization Complete!": [
+ "¡Optimización Completa!"
+ ],
+ "Passed": [
+ "Aprobado"
+ ],
+ "Failed": [
+ "Fallido"
+ ],
+ "An error occurred.": [
+ "Ocurrió un error."
+ ],
+ "Optimize": [
+ "Optimizar"
+ ]
+ }
+ }
+}
\ No newline at end of file
diff --git a/languages/wp-module-performance-es_MX-nfd-performance-optimizer-marker.json b/languages/wp-module-performance-es_MX-nfd-performance-optimizer-marker.json
new file mode 100644
index 0000000..65f548e
--- /dev/null
+++ b/languages/wp-module-performance-es_MX-nfd-performance-optimizer-marker.json
@@ -0,0 +1,18 @@
+{
+ "translation-revision-date": "2025-01-14 13:17+0000",
+ "generator": "WP-CLI\/2.11.0",
+ "source": "assets\/image-optimized-marker\/image-optimized-marker.js",
+ "domain": "messages",
+ "locale_data": {
+ "messages": {
+ "": {
+ "domain": "messages",
+ "lang": "es_MX",
+ "plural-forms": "nplurals=2; plural=(n != 1);"
+ },
+ "Optimized": [
+ "Optimizado"
+ ]
+ }
+ }
+}
\ No newline at end of file
diff --git a/languages/wp-module-performance-es_MX.po b/languages/wp-module-performance-es_MX.po
index 74a4293..950cd0a 100644
--- a/languages/wp-module-performance-es_MX.po
+++ b/languages/wp-module-performance-es_MX.po
@@ -558,3 +558,47 @@ msgstr "Error al guardar la opción"
#: components/performance/defaultText.js:345
msgid "Upgrade to unlock"
msgstr "Haz un upgrade para tener acceso"
+
+#: assets/image-bulk-optimizer/image-bulk-optimizer.js:38
+msgid "Optimizing Images…"
+msgstr ""
+
+#: assets/image-bulk-optimizer/image-bulk-optimizer.js:45
+msgid "Preparing files…"
+msgstr ""
+
+#: assets/image-bulk-optimizer/image-bulk-optimizer.js:64
+msgid "Done"
+msgstr ""
+
+#: assets/image-bulk-optimizer/image-bulk-optimizer.js:151
+msgid "Optimization Canceled"
+msgstr ""
+
+#: assets/image-bulk-optimizer/image-bulk-optimizer.js:160
+msgid "Optimizing:"
+msgstr ""
+
+#: assets/image-bulk-optimizer/image-bulk-optimizer.js:179
+msgid "Optimization Complete!"
+msgstr ""
+
+#: assets/image-bulk-optimizer/image-bulk-optimizer.js:190
+msgid "Passed"
+msgstr ""
+
+#: assets/image-bulk-optimizer/image-bulk-optimizer.js:191
+msgid "Failed"
+msgstr ""
+
+#: assets/image-bulk-optimizer/image-bulk-optimizer.js:199
+msgid "An error occurred."
+msgstr ""
+
+#: assets/image-bulk-optimizer/image-bulk-optimizer.js:211
+msgid "Optimize"
+msgstr ""
+
+#: assets/image-optimized-marker/image-optimized-marker.js:23
+msgid "Optimized"
+msgstr ""
diff --git a/languages/wp-module-performance-pt_BR-nfd-performance-bulk-optimizer.json b/languages/wp-module-performance-pt_BR-nfd-performance-bulk-optimizer.json
new file mode 100644
index 0000000..f18d200
--- /dev/null
+++ b/languages/wp-module-performance-pt_BR-nfd-performance-bulk-optimizer.json
@@ -0,0 +1,45 @@
+{
+ "translation-revision-date": "2025-01-14 11:12+0000",
+ "generator": "WP-CLI\/2.11.0",
+ "source": "assets\/image-bulk-optimizer\/image-bulk-optimizer.js",
+ "domain": "messages",
+ "locale_data": {
+ "messages": {
+ "": {
+ "domain": "messages",
+ "lang": "pt_BR",
+ "plural-forms": "nplurals=2; plural=(n > 1);"
+ },
+ "Optimizing Images\u2026": [
+ "Otimizando Imagens..."
+ ],
+ "Preparing files\u2026": [
+ "Preparando arquivos..."
+ ],
+ "Done": [
+ "Concluído"
+ ],
+ "Optimization Canceled": [
+ "Otimização Cancelada"
+ ],
+ "Optimizing:": [
+ "Otimizando:"
+ ],
+ "Optimization Complete!": [
+ "Otimização Concluída!"
+ ],
+ "Passed": [
+ "Aprovado"
+ ],
+ "Failed": [
+ "Falhou"
+ ],
+ "An error occurred.": [
+ "Ocorreu um erro."
+ ],
+ "Optimize": [
+ "Otimizar"
+ ]
+ }
+ }
+}
\ No newline at end of file
diff --git a/languages/wp-module-performance-pt_BR-nfd-performance-optimizer-marker.json b/languages/wp-module-performance-pt_BR-nfd-performance-optimizer-marker.json
new file mode 100644
index 0000000..d2732a2
--- /dev/null
+++ b/languages/wp-module-performance-pt_BR-nfd-performance-optimizer-marker.json
@@ -0,0 +1,18 @@
+{
+ "translation-revision-date": "2025-01-14 11:12+0000",
+ "generator": "WP-CLI\/2.11.0",
+ "source": "assets\/image-optimized-marker\/image-optimized-marker.js",
+ "domain": "messages",
+ "locale_data": {
+ "messages": {
+ "": {
+ "domain": "messages",
+ "lang": "pt_BR",
+ "plural-forms": "nplurals=2; plural=(n > 1);"
+ },
+ "Optimized": [
+ "Otimizado"
+ ]
+ }
+ }
+}
\ No newline at end of file
diff --git a/languages/wp-module-performance-pt_BR.po b/languages/wp-module-performance-pt_BR.po
index 0032162..4fc1a5c 100644
--- a/languages/wp-module-performance-pt_BR.po
+++ b/languages/wp-module-performance-pt_BR.po
@@ -558,3 +558,47 @@ msgstr "Erro ao salvar opção"
#: components/performance/defaultText.js:345
msgid "Upgrade to unlock"
msgstr "Faça um upgrade para ter acesso"
+
+#: assets/image-bulk-optimizer/image-bulk-optimizer.js:38
+msgid "Optimizing Images…"
+msgstr ""
+
+#: assets/image-bulk-optimizer/image-bulk-optimizer.js:45
+msgid "Preparing files…"
+msgstr ""
+
+#: assets/image-bulk-optimizer/image-bulk-optimizer.js:64
+msgid "Done"
+msgstr ""
+
+#: assets/image-bulk-optimizer/image-bulk-optimizer.js:151
+msgid "Optimization Canceled"
+msgstr ""
+
+#: assets/image-bulk-optimizer/image-bulk-optimizer.js:160
+msgid "Optimizing:"
+msgstr ""
+
+#: assets/image-bulk-optimizer/image-bulk-optimizer.js:179
+msgid "Optimization Complete!"
+msgstr ""
+
+#: assets/image-bulk-optimizer/image-bulk-optimizer.js:190
+msgid "Passed"
+msgstr ""
+
+#: assets/image-bulk-optimizer/image-bulk-optimizer.js:191
+msgid "Failed"
+msgstr ""
+
+#: assets/image-bulk-optimizer/image-bulk-optimizer.js:199
+msgid "An error occurred."
+msgstr ""
+
+#: assets/image-bulk-optimizer/image-bulk-optimizer.js:211
+msgid "Optimize"
+msgstr ""
+
+#: assets/image-optimized-marker/image-optimized-marker.js:23
+msgid "Optimized"
+msgstr ""
diff --git a/languages/wp-module-performance.pot b/languages/wp-module-performance.pot
index 93e6050..676c11f 100644
--- a/languages/wp-module-performance.pot
+++ b/languages/wp-module-performance.pot
@@ -158,6 +158,50 @@ msgstr ""
msgid "An error occurred while updating the option."
msgstr ""
+#: assets/image-bulk-optimizer/image-bulk-optimizer.js:38
+msgid "Optimizing Images…"
+msgstr ""
+
+#: assets/image-bulk-optimizer/image-bulk-optimizer.js:45
+msgid "Preparing files…"
+msgstr ""
+
+#: assets/image-bulk-optimizer/image-bulk-optimizer.js:64
+msgid "Done"
+msgstr ""
+
+#: assets/image-bulk-optimizer/image-bulk-optimizer.js:151
+msgid "Optimization Canceled"
+msgstr ""
+
+#: assets/image-bulk-optimizer/image-bulk-optimizer.js:160
+msgid "Optimizing:"
+msgstr ""
+
+#: assets/image-bulk-optimizer/image-bulk-optimizer.js:179
+msgid "Optimization Complete!"
+msgstr ""
+
+#: assets/image-bulk-optimizer/image-bulk-optimizer.js:190
+msgid "Passed"
+msgstr ""
+
+#: assets/image-bulk-optimizer/image-bulk-optimizer.js:191
+msgid "Failed"
+msgstr ""
+
+#: assets/image-bulk-optimizer/image-bulk-optimizer.js:199
+msgid "An error occurred."
+msgstr ""
+
+#: assets/image-bulk-optimizer/image-bulk-optimizer.js:211
+msgid "Optimize"
+msgstr ""
+
+#: assets/image-optimized-marker/image-optimized-marker.js:23
+msgid "Optimized"
+msgstr ""
+
#: components/performance/defaultText.js:4
msgid "No cache enabled. Every page load is fresh."
msgstr ""
diff --git a/translations-json-rename.js b/translations-json-rename.js
index 74ada4b..ff0d67d 100644
--- a/translations-json-rename.js
+++ b/translations-json-rename.js
@@ -15,6 +15,8 @@ const ERROR = chalk.reset.inverse.bold.red( ' ERROR ' );
const slugsMap = {
'components/performance/defaultText.js': 'wp-module-performance-translations',
+ 'assets/image-bulk-optimizer/image-bulk-optimizer.js': 'nfd-performance-bulk-optimizer',
+ 'assets/image-optimized-marker/image-optimized-marker.js': 'nfd-performance-optimizer-marker'
};
const regex = /-(?:[a-f0-9]{32})\.json$/i;
From b4ad5f4d512805224692b01dc0b5e16c5c6ad663 Mon Sep 17 00:00:00 2001
From: Armando Liccardo
Date: Thu, 16 Jan 2025 10:53:27 +0000
Subject: [PATCH 12/12] php lint
---
includes/Performance.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/includes/Performance.php b/includes/Performance.php
index 08b3c9b..c009515 100644
--- a/includes/Performance.php
+++ b/includes/Performance.php
@@ -315,7 +315,7 @@ public function add_sub_menu_page() {
*/
public function register_assets() {
$validscreen = 'toplevel_page_' . $this->container->plugin()->id;
- if ( $validscreen === get_current_screen()->id ) {
+ if ( get_current_screen()->id === $validscreen ) {
$plugin_url = $this->container->plugin()->url . get_styles_path();
wp_register_style( 'wp-module-performance-styles', $plugin_url, array(), $this->container->plugin()->version );
wp_enqueue_style( 'wp-module-performance-styles' );