Refactor to PSR-4: rename files and switch namespace

- Rename files to PascalCase: Product_Type → ProductType, Cart_Handler →
  CartHandler, Product_Selector → ProductSelector, Stock_Manager →
  StockManager, Admin/Product_Data → Admin/ProductData
- Switch namespace from WC_Composable_Product to Magdev\WcComposableProduct
- Update all cross-references in PHP, CSS, JS, translations, and docs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-01 12:35:02 +01:00
parent dd5965ae4c
commit ea2261d8d7
21 changed files with 281 additions and 281 deletions

View File

@@ -91,7 +91,7 @@ msgstr "Den Gesamtpreis anzeigen, während Kunden Auswahlen treffen."
msgid "Composable product"
msgstr "Zusammenstellbares Produkt"
#: includes/Product_Selector.php, templates/product-selector.twig
#: includes/ProductSelector.php, templates/product-selector.twig
msgid "Select Your Products"
msgstr "Wählen Sie Ihre Produkte"
@@ -111,115 +111,115 @@ msgstr "Gesamtpreis:"
msgid "Add to Cart"
msgstr "In den Warenkorb"
#: includes/Cart_Handler.php
#: includes/CartHandler.php
msgid "Please select at least one product."
msgstr "Bitte wählen Sie mindestens ein Produkt aus."
#: includes/Cart_Handler.php
#: includes/CartHandler.php
msgid "You can select a maximum of %d products."
msgstr "Sie können maximal %d Produkte auswählen."
#: includes/Cart_Handler.php
#: includes/CartHandler.php
msgid "One or more selected products are not available."
msgstr "Ein oder mehrere ausgewählte Produkte sind nicht verfügbar."
#: includes/Cart_Handler.php
#: includes/CartHandler.php
msgid "Selected Products"
msgstr "Ausgewählte Produkte"
#: includes/Admin/Product_Data.php
#: includes/Admin/ProductData.php
msgid "Composable Options"
msgstr "Zusammenstellungsoptionen"
#: includes/Admin/Product_Data.php
#: includes/Admin/ProductData.php
msgid "Selection Limit"
msgstr "Auswahllimit"
#: includes/Admin/Product_Data.php
#: includes/Admin/ProductData.php
msgid "Maximum number of items customers can select. Leave empty to use global default."
msgstr "Maximale Anzahl der Artikel, die Kunden auswählen können. Leer lassen, um den globalen Standard zu verwenden."
#: includes/Admin/Product_Data.php
#: includes/Admin/ProductData.php
msgid "Pricing Mode"
msgstr "Preismodus"
#: includes/Admin/Product_Data.php
#: includes/Admin/ProductData.php
msgid "How to calculate the price."
msgstr "Wie der Preis berechnet wird."
#: includes/Admin/Product_Data.php
#: includes/Admin/ProductData.php
msgid "Fixed Price"
msgstr "Festpreis"
#: includes/Admin/Product_Data.php
#: includes/Admin/ProductData.php
msgid "Enter the fixed price for this composable product."
msgstr "Geben Sie den Festpreis für dieses zusammenstellbare Produkt ein."
#: includes/Admin/Product_Data.php
#: includes/Admin/ProductData.php
msgid "Use global default"
msgstr "Globalen Standard verwenden"
#: includes/Admin/Product_Data.php
#: includes/Admin/ProductData.php
msgid "Selection Criteria"
msgstr "Auswahlkriterien"
#: includes/Admin/Product_Data.php
#: includes/Admin/ProductData.php
msgid "How to select available products."
msgstr "Wie verfügbare Produkte ausgewählt werden."
#: includes/Admin/Product_Data.php
#: includes/Admin/ProductData.php
msgid "By Category"
msgstr "Nach Kategorie"
#: includes/Admin/Product_Data.php
#: includes/Admin/ProductData.php
msgid "By Tag"
msgstr "Nach Schlagwort"
#: includes/Admin/Product_Data.php
#: includes/Admin/ProductData.php
msgid "By SKU"
msgstr "Nach Artikelnummer"
#: includes/Admin/Product_Data.php
#: includes/Admin/ProductData.php
msgid "Select Categories"
msgstr "Kategorien auswählen"
#: includes/Admin/Product_Data.php
#: includes/Admin/ProductData.php
msgid "Select product categories to include."
msgstr "Produktkategorien auswählen, die einbezogen werden sollen."
#: includes/Admin/Product_Data.php
#: includes/Admin/ProductData.php
msgid "Select Tags"
msgstr "Schlagwörter auswählen"
#: includes/Admin/Product_Data.php
#: includes/Admin/ProductData.php
msgid "Select product tags to include."
msgstr "Produkt-Schlagwörter auswählen, die einbezogen werden sollen."
#: includes/Admin/Product_Data.php
#: includes/Admin/ProductData.php
msgid "Product SKUs"
msgstr "Produkt-Artikelnummern"
#: includes/Admin/Product_Data.php
#: includes/Admin/ProductData.php
msgid "Enter product SKUs separated by commas."
msgstr "Geben Sie Produkt-Artikelnummern durch Kommas getrennt ein."
#: includes/Admin/Product_Data.php
#: includes/Admin/ProductData.php
msgid "SKU-1, SKU-2, SKU-3"
msgstr "ART-1, ART-2, ART-3"
#: includes/Stock_Manager.php
#: includes/StockManager.php
msgid "\"%s\" is out of stock and cannot be selected."
msgstr "\"%s\" ist nicht an Lager und kann nicht ausgewählt werden."
#: includes/Stock_Manager.php
#: includes/StockManager.php
msgid "Only %2$d of \"%1$s\" are available in stock."
msgstr "Nur %2$d von \"%1$s\" sind an Lager verfügbar."
#: includes/Stock_Manager.php
#: includes/StockManager.php
msgid "Stock reduced for \"%1$s\": -%2$d (remaining: %3$d)"
msgstr "Lagerbestand reduziert für \"%1$s\": -%2$d (verbleibend: %3$d)"
#: includes/Stock_Manager.php
#: includes/StockManager.php
msgid "Stock restored for \"%1$s\": +%2$d (total: %3$d)"
msgstr "Lagerbestand wiederhergestellt für \"%1$s\": +%2$d (gesamt: %3$d)"
@@ -243,7 +243,7 @@ msgstr "An Lager"
msgid "No products available for selection. Please configure the product criteria in the admin panel."
msgstr "Keine Produkte zur Auswahl verfügbar. Bitte konfigurieren Sie die Produktkriterien im Admin-Bereich."
#: includes/Admin/Settings.php, includes/Admin/Product_Data.php
#: includes/Admin/Settings.php, includes/Admin/ProductData.php
msgid "Include Non-Public Products"
msgstr "Nicht-öffentliche Produkte einbeziehen"
@@ -251,14 +251,14 @@ msgstr "Nicht-öffentliche Produkte einbeziehen"
msgid "Allow draft and private products to appear in composable product selections. Useful when products should only be sold as part of a composition, not individually."
msgstr "Entwürfe und private Produkte in der Auswahl zusammenstellbarer Produkte anzeigen. Nützlich, wenn Produkte nur als Teil einer Zusammenstellung verkauft werden sollen, nicht einzeln."
#: includes/Admin/Product_Data.php
#: includes/Admin/ProductData.php
msgid "Allow draft and private products in the selection. Useful when products should only be sold as part of a composition."
msgstr "Entwürfe und private Produkte in der Auswahl zulassen. Nützlich, wenn Produkte nur als Teil einer Zusammenstellung verkauft werden sollen."
#: includes/Admin/Product_Data.php
#: includes/Admin/ProductData.php
msgid "Yes"
msgstr "Ja"
#: includes/Admin/Product_Data.php
#: includes/Admin/ProductData.php
msgid "No"
msgstr "Nein"