Переглянути джерело

Update .po files for v1.6.2 -> v1.7.1 strings

Sweeps every translatable string introduced or rewritten across the
review-00-plan Phase A-E commits and adds them to both .po files.

Replaced (Phase A — M6 warning rewrite):
* "This operation permanently deletes all media files that are not
  assigned to any media category and are not used as featured image,
  product gallery image, or attached to any post." -> the new long
  enumeration that lists what IS detected, including the v1.6.2 termmeta
  + customizer exclusions.
* "WARNING: This operation will permanently delete all unused
  uncategorized media files from the server. This action cannot be
  undone!" -> the new short "WARNING: This action cannot be undone."

Added — Phase A (M6 warning bullets, H4 ragged-row, M4 guard):
* Detection-is-heuristic intro + 4 bullets (content HTML, ACF/meta,
  downloadable files, "delete media that nothing I can detect is using").
* "Row %1$d: column count mismatch ... Row skipped."
* "Import too large to stage (%d rows) ..."

Added — Phase C (H5):
* "Invalid file"

Added — Phase D (M1 + M4 rework):
* "Failed to stage import data on disk (write error)."
* "CSV contains no data rows."
* "OK"
* "Row %d: %s"

Added — Phase E (L7, L1):
* "Warning: %d variations have a sale price greater than the new
  regular price (sale > regular). Review the variations and adjust the
  sale price."
* 6 JS-side i18n keys: selectBothCategories, moveNoProducts,
  importInitializing, importComplete, deletionSummary, importSummary.

Project-Id-Version header bumped to 1.7.1 in both files. References
updated to point at views/manipulations/tab-remove-unassigned.php (the
v1.6.0 partial) for the M6 strings instead of the old aggregated
views/manipulations.php.

The .mo file regeneration is handled separately by the maintainer.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Dalibor Votruba 1 місяць тому
батько
коміт
c2795aed19

+ 91 - 8
studiou-wc-product-cat-manage/languages/studiou-wc-product-cat-manage-cs_CZ.po

@@ -3,7 +3,7 @@
 # This file is distributed under the same license as the QDR - Studiou WC Export/Import Product Categories package.
 msgid ""
 msgstr ""
-"Project-Id-Version: QDR - Studiou WC Export/Import Product Categories 1.5.3\n"
+"Project-Id-Version: QDR - Studiou WC Export/Import Product Categories 1.7.1\n"
 "Report-Msgid-Bugs-To: https://www.quadarax.com/plugins/studiou-wc-product-"
 "cat-manage\n"
 "POT-Creation-Date: 2026-04-01 12:00+0000\n"
@@ -973,13 +973,13 @@ msgstr "Nebyly nalezeny žádné nepoužívané nekategorizované mediální sou
 msgid "Remove Not Assigned Media"
 msgstr "Odstranit nepřiřazená média"
 
-#: views/manipulations.php
-msgid "This operation permanently deletes all media files that are not assigned to any media category and are not used as featured image, product gallery image, or attached to any post."
-msgstr "Tato operace trvale smaže všechny mediální soubory, které nejsou přiřazeny k žádné kategorii médií a nejsou použity jako náhledový obrázek, obrázek galerie produktu nebo připojeny k žádnému příspěvku."
+#: views/manipulations/tab-remove-unassigned.php
+msgid "This operation permanently deletes media files that are not assigned to any media category and are not detected as in use. Detection covers: post/page/product featured images, WooCommerce product gallery images, attached media (post_parent), media-category membership, and — since v1.6.2 — WooCommerce product-category images (termmeta), the customizer custom logo, site icon, and header image."
+msgstr "Tato operace trvale smaže mediální soubory, které nejsou přiřazeny k žádné kategorii médií a nejsou detekovány jako používané. Detekce zahrnuje: náhledové obrázky příspěvků/stránek/produktů, obrázky galerie produktů WooCommerce, připojená média (post_parent), členství v kategorii médií a — od verze 1.6.2 — obrázky kategorií produktů WooCommerce (termmeta), obrázek vlastního loga, ikonu webu a obrázek záhlaví."
 
-#: views/manipulations.php
-msgid "WARNING: This operation will permanently delete all unused uncategorized media files from the server. This action cannot be undone!"
-msgstr "VAROVÁNÍ: Tato operace trvale smaže všechny nepoužívané nekategorizované mediální soubory ze serveru. Tuto akci nelze vrátit zpět!"
+#: views/manipulations/tab-remove-unassigned.php
+msgid "WARNING: This action cannot be undone."
+msgstr "VAROVÁNÍ: Tuto akci nelze vrátit zpět."
 
 #: views/manipulations.php
 msgid "Delete unused uncategorized media (%d)"
@@ -1104,4 +1104,87 @@ msgstr "Neznámá záložka"
 
 #: includes/class-studiou-wc-product-cat-manage-manipulator.php
 msgid "Tab content not found"
-msgstr "Obsah záložky nenalezen"
+msgstr "Obsah záložky nenalezen"
+
+# v1.6.2 — M6: nové varovné odrážky vyjmenovávající, co NENÍ detekováno.
+#: views/manipulations/tab-remove-unassigned.php
+msgid "Detection is heuristic. The following references are NOT detected and the media WILL be deleted if it is only used this way:"
+msgstr "Detekce je heuristická. Následující odkazy NEJSOU detekovány a média BUDOU smazána, pokud jsou používána pouze tímto způsobem:"
+
+#: views/manipulations/tab-remove-unassigned.php
+msgid "Images embedded only in post / page / product content HTML (including page builders that store HTML)."
+msgstr "Obrázky vložené pouze v HTML obsahu příspěvků / stránek / produktů (včetně page builderů, které ukládají HTML)."
+
+#: views/manipulations/tab-remove-unassigned.php
+msgid "Images referenced from ACF, custom postmeta, custom termmeta keys other than \"thumbnail_id\", or theme options."
+msgstr "Obrázky odkazované z ACF, vlastního postmeta, vlastních klíčů termmeta jiných než \"thumbnail_id\" nebo z nastavení šablony."
+
+#: views/manipulations/tab-remove-unassigned.php
+msgid "Files attached to WooCommerce downloadable products."
+msgstr "Soubory připojené k stahovatelným produktům WooCommerce."
+
+#: views/manipulations/tab-remove-unassigned.php
+msgid "Treat this button as: \"delete media that nothing I can detect is using.\" If unsure, back up the uploads folder first."
+msgstr "Berte toto tlačítko jako: „smazat média, o kterých nedokážu zjistit, že je něco používá.“ Pokud si nejste jisti, nejprve si zazálohujte složku uploads."
+
+# v1.6.2 — H4: chyba šířky řádku se nyní objeví ve failed-CSV souboru.
+#: includes/class-studiou-wc-product-manage-product-import.php
+msgid "Row %1$d: column count mismatch (%2$d found, %3$d expected) — likely an unescaped comma. Row skipped."
+msgstr "Řádek %1$d: neshoda počtu sloupců (nalezeno %2$d, očekáváno %3$d) — pravděpodobně neuvozená čárka. Řádek byl přeskočen."
+
+# v1.6.2 — M4 guard: srozumitelná chyba při přetečení transient (od 1.7.0 nahrazeno disk-staging, ponecháno pro zpětnou kompatibilitu).
+#: includes/class-studiou-wc-product-manage-product-import.php
+msgid "Import too large to stage (%d rows) — the parsed CSV would not fit in the WordPress transient store. Split the file into smaller batches, or wait for the streaming importer in a future release."
+msgstr "Import je příliš velký pro přípravu (%d řádků) — zpracované CSV se nevejde do úložiště WordPress transient. Rozdělte soubor do menších dávek, nebo počkejte na streamovací importér v budoucí verzi."
+
+# v1.6.4 — H5: gated download handler product-exportu.
+#: includes/class-studiou-wc-product-manage-product-export.php
+msgid "Invalid file"
+msgstr "Neplatný soubor"
+
+# v1.7.0 — M1 / M4 rework: disk-staging a dávkovaný import kategorií.
+#: includes/class-studiou-wc-product-cat-manage-import.php includes/class-studiou-wc-product-manage-product-import.php
+msgid "Failed to stage import data on disk (write error)."
+msgstr "Nepodařilo se připravit data importu na disku (chyba zápisu)."
+
+#: includes/class-studiou-wc-product-cat-manage-import.php
+msgid "CSV contains no data rows."
+msgstr "CSV neobsahuje žádné datové řádky."
+
+#: includes/class-studiou-wc-product-cat-manage-import.php
+msgid "OK"
+msgstr "OK"
+
+#: includes/class-studiou-wc-product-cat-manage-import.php
+msgid "Row %d: %s"
+msgstr "Řádek %d: %s"
+
+# v1.7.1 — L7: UPVP varuje, když existující akční cena zůstane vyšší než nová běžná cena.
+#: includes/class-studiou-wc-product-cat-manage-manipulator.php
+msgid "Warning: %d variations have a sale price greater than the new regular price (sale > regular). Review the variations and adjust the sale price."
+msgstr "Upozornění: %d variant má akční cenu vyšší než novou běžnou cenu (akční > běžná). Zkontrolujte tyto varianty a upravte jejich akční cenu."
+
+# v1.7.1 — L1: JS i18n klíče, které byly dříve napevno v angličtině.
+#: studiou-wc-product-cat-manage.php
+msgid "Please select both source and target categories"
+msgstr "Vyberte prosím zdrojovou i cílovou kategorii"
+
+#: studiou-wc-product-cat-manage.php
+msgid "No products to move."
+msgstr "Žádné produkty k přesunu."
+
+#: studiou-wc-product-cat-manage.php
+msgid "Initializing..."
+msgstr "Inicializace..."
+
+#: studiou-wc-product-cat-manage.php
+msgid "Import complete"
+msgstr "Import dokončen"
+
+#: studiou-wc-product-cat-manage.php
+msgid "Deletion Summary"
+msgstr "Souhrn mazání"
+
+#: studiou-wc-product-cat-manage.php
+msgid "Import Summary"
+msgstr "Souhrn importu"

+ 88 - 5
studiou-wc-product-cat-manage/languages/studiou-wc-product-cat-manage.po

@@ -2,7 +2,7 @@
 # This file is distributed under the same license as the QDR - Studiou WC Export/Import Product Categories package.
 msgid ""
 msgstr ""
-"Project-Id-Version: QDR - Studiou WC Export/Import Product Categories 1.5.3\n"
+"Project-Id-Version: QDR - Studiou WC Export/Import Product Categories 1.7.1\n"
 "Report-Msgid-Bugs-To: https://www.quadarax.com/plugins/studiou-wc-product-cat-manage\n"
 "POT-Creation-Date: 2026-04-01 12:00+0000\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
@@ -939,12 +939,12 @@ msgstr ""
 msgid "Remove Not Assigned Media"
 msgstr ""
 
-#: views/manipulations.php
-msgid "This operation permanently deletes all media files that are not assigned to any media category and are not used as featured image, product gallery image, or attached to any post."
+#: views/manipulations/tab-remove-unassigned.php
+msgid "This operation permanently deletes media files that are not assigned to any media category and are not detected as in use. Detection covers: post/page/product featured images, WooCommerce product gallery images, attached media (post_parent), media-category membership, and — since v1.6.2 — WooCommerce product-category images (termmeta), the customizer custom logo, site icon, and header image."
 msgstr ""
 
-#: views/manipulations.php
-msgid "WARNING: This operation will permanently delete all unused uncategorized media files from the server. This action cannot be undone!"
+#: views/manipulations/tab-remove-unassigned.php
+msgid "WARNING: This action cannot be undone."
 msgstr ""
 
 #: views/manipulations.php
@@ -1070,4 +1070,87 @@ msgstr ""
 
 #: includes/class-studiou-wc-product-cat-manage-manipulator.php
 msgid "Tab content not found"
+msgstr ""
+
+# v1.6.2 — M6: new warning bullets enumerating what is NOT detected.
+#: views/manipulations/tab-remove-unassigned.php
+msgid "Detection is heuristic. The following references are NOT detected and the media WILL be deleted if it is only used this way:"
+msgstr ""
+
+#: views/manipulations/tab-remove-unassigned.php
+msgid "Images embedded only in post / page / product content HTML (including page builders that store HTML)."
+msgstr ""
+
+#: views/manipulations/tab-remove-unassigned.php
+msgid "Images referenced from ACF, custom postmeta, custom termmeta keys other than \"thumbnail_id\", or theme options."
+msgstr ""
+
+#: views/manipulations/tab-remove-unassigned.php
+msgid "Files attached to WooCommerce downloadable products."
+msgstr ""
+
+#: views/manipulations/tab-remove-unassigned.php
+msgid "Treat this button as: \"delete media that nothing I can detect is using.\" If unsure, back up the uploads folder first."
+msgstr ""
+
+# v1.6.2 — H4: column count mismatch surfaced into the failed-CSV.
+#: includes/class-studiou-wc-product-manage-product-import.php
+msgid "Row %1$d: column count mismatch (%2$d found, %3$d expected) — likely an unescaped comma. Row skipped."
+msgstr ""
+
+# v1.6.2 — M4 guard: clear error when the transient overflowed (superseded by 1.7.0 disk staging, kept for back-compat callers).
+#: includes/class-studiou-wc-product-manage-product-import.php
+msgid "Import too large to stage (%d rows) — the parsed CSV would not fit in the WordPress transient store. Split the file into smaller batches, or wait for the streaming importer in a future release."
+msgstr ""
+
+# v1.6.4 — H5: gated product-export download handler.
+#: includes/class-studiou-wc-product-manage-product-export.php
+msgid "Invalid file"
+msgstr ""
+
+# v1.7.0 — M1 / M4 rework: disk-staging + batched category import.
+#: includes/class-studiou-wc-product-cat-manage-import.php includes/class-studiou-wc-product-manage-product-import.php
+msgid "Failed to stage import data on disk (write error)."
+msgstr ""
+
+#: includes/class-studiou-wc-product-cat-manage-import.php
+msgid "CSV contains no data rows."
+msgstr ""
+
+#: includes/class-studiou-wc-product-cat-manage-import.php
+msgid "OK"
+msgstr ""
+
+#: includes/class-studiou-wc-product-cat-manage-import.php
+msgid "Row %d: %s"
+msgstr ""
+
+# v1.7.1 — L7: UPVP warns when an existing sale price ends up greater than the new regular price.
+#: includes/class-studiou-wc-product-cat-manage-manipulator.php
+msgid "Warning: %d variations have a sale price greater than the new regular price (sale > regular). Review the variations and adjust the sale price."
+msgstr ""
+
+# v1.7.1 — L1: JS-side i18n keys that were previously hardcoded English.
+#: studiou-wc-product-cat-manage.php
+msgid "Please select both source and target categories"
+msgstr ""
+
+#: studiou-wc-product-cat-manage.php
+msgid "No products to move."
+msgstr ""
+
+#: studiou-wc-product-cat-manage.php
+msgid "Initializing..."
+msgstr ""
+
+#: studiou-wc-product-cat-manage.php
+msgid "Import complete"
+msgstr ""
+
+#: studiou-wc-product-cat-manage.php
+msgid "Deletion Summary"
+msgstr ""
+
+#: studiou-wc-product-cat-manage.php
+msgid "Import Summary"
 msgstr ""