Implement version 0.0.8 features

- Remove Current Version field from product license settings
- Derive current version from latest product version in database
- Refactor email system to use WooCommerce email notification classes
- Add LicenseExpirationEmail WC_Email class for expiration warnings
- Add customizable email templates (HTML and plain text)
- Update settings to link to WooCommerce email configuration
- Update translations for new email-related strings

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-21 20:55:28 +01:00
parent 50388c2019
commit c6726703e4
13 changed files with 713 additions and 206 deletions

View File

@@ -3,7 +3,7 @@
# This file is distributed under the GPL-2.0-or-later.
msgid ""
msgstr ""
"Project-Id-Version: WC Licensed Product 0.0.7\n"
"Project-Id-Version: WC Licensed Product 0.0.8\n"
"Report-Msgid-Bugs-To: https://src.bundespruefstelle.ch/magdev/wc-licensed-product/issues\n"
"POT-Creation-Date: 2026-01-21T00:00:00+00:00\n"
"PO-Revision-Date: 2026-01-21T00:00:00+00:00\n"
@@ -63,12 +63,6 @@ msgstr "Falls aktiviert, werden Lizenzen an die Hauptversion zum Kaufzeitpunkt g
msgid "If enabled, licenses are bound to the major version at purchase time by default."
msgstr "Falls aktiviert, werden Lizenzen standardmässig an die Hauptversion zum Kaufzeitpunkt gebunden."
msgid "Current Version"
msgstr "Aktuelle Version"
msgid "Current software version (e.g., 1.0.0)"
msgstr "Aktuelle Software-Version (z.B. 1.0.0)"
#. Global settings
msgid "Default License Settings"
msgstr "Standard Lizenz-Einstellungen"
@@ -818,3 +812,56 @@ msgstr "Ja"
msgid "No"
msgstr "Nein"
#. Email settings
msgid "Expiration Warning Schedule"
msgstr "Ablaufwarnung Zeitplan"
msgid "Configure when expiration warning emails are sent. To customize the email template, enable/disable, or change the subject, go to %s."
msgstr "Konfigurieren Sie, wann Ablaufwarnungs-E-Mails gesendet werden. Um die E-Mail-Vorlage anzupassen, zu aktivieren/deaktivieren oder den Betreff zu ändern, gehen Sie zu %s."
msgid "WooCommerce > Settings > Emails > License Expiration Warning"
msgstr "WooCommerce > Einstellungen > E-Mails > Lizenzablauf-Warnung"
msgid "First Warning (Days Before)"
msgstr "Erste Warnung (Tage vorher)"
msgid "Days before expiration to send the first warning email."
msgstr "Tage vor Ablauf, um die erste Warn-E-Mail zu senden."
msgid "Second Warning (Days Before)"
msgstr "Zweite Warnung (Tage vorher)"
msgid "Days before expiration to send the second warning email. Set to 0 to disable."
msgstr "Tage vor Ablauf, um die zweite Warn-E-Mail zu senden. Setzen Sie auf 0, um sie zu deaktivieren."
#. WooCommerce Email Class
msgid "License Expiration Warning"
msgstr "Lizenzablauf-Warnung"
msgid "License expiration warning emails are sent to customers when their licenses are about to expire."
msgstr "Lizenzablauf-Warnungs-E-Mails werden an Kunden gesendet, wenn ihre Lizenzen bald ablaufen."
msgid "[{site_title}] Your license for {product_name} expires in {days_remaining} days"
msgstr "[{site_title}] Ihre Lizenz für {product_name} läuft in {days_remaining} Tagen ab"
msgid "Available placeholders: %s"
msgstr "Verfügbare Platzhalter: %s"
msgid "Enable this email notification"
msgstr "Diese E-Mail-Benachrichtigung aktivieren"
msgid "Email heading"
msgstr "E-Mail-Überschrift"
msgid "Additional content"
msgstr "Zusätzlicher Inhalt"
msgid "Text to appear below the main email content."
msgstr "Text, der unter dem Haupt-E-Mail-Inhalt erscheinen soll."
msgid "Email type"
msgstr "E-Mail-Typ"
msgid "Choose which format of email to send."
msgstr "Wählen Sie, welches E-Mail-Format gesendet werden soll."

View File

@@ -2,7 +2,7 @@
# This file is distributed under the GPL-2.0-or-later.
msgid ""
msgstr ""
"Project-Id-Version: WC Licensed Product 0.0.7\n"
"Project-Id-Version: WC Licensed Product 0.0.8\n"
"Report-Msgid-Bugs-To: https://src.bundespruefstelle.ch/magdev/wc-licensed-product/issues\n"
"POT-Creation-Date: 2026-01-21T00:00:00+00:00\n"
"MIME-Version: 1.0\n"
@@ -60,12 +60,6 @@ msgstr ""
msgid "If enabled, licenses are bound to the major version at purchase time by default."
msgstr ""
msgid "Current Version"
msgstr ""
msgid "Current software version (e.g., 1.0.0)"
msgstr ""
#. Global settings
msgid "Default License Settings"
msgstr ""
@@ -815,3 +809,59 @@ msgstr ""
msgid "No"
msgstr ""
#. Email settings
msgid "Expiration Warning Schedule"
msgstr ""
msgid "Configure when expiration warning emails are sent. To customize the email template, enable/disable, or change the subject, go to %s."
msgstr ""
msgid "WooCommerce > Settings > Emails > License Expiration Warning"
msgstr ""
msgid "First Warning (Days Before)"
msgstr ""
msgid "Days before expiration to send the first warning email."
msgstr ""
msgid "Second Warning (Days Before)"
msgstr ""
msgid "Days before expiration to send the second warning email. Set to 0 to disable."
msgstr ""
#. WooCommerce Email Class
msgid "License Expiration Warning"
msgstr ""
msgid "License expiration warning emails are sent to customers when their licenses are about to expire."
msgstr ""
msgid "[{site_title}] Your license for {product_name} expires in {days_remaining} days"
msgstr ""
msgid "Available placeholders: %s"
msgstr ""
msgid "Enable this email notification"
msgstr ""
msgid "Email heading"
msgstr ""
msgid "Additional content"
msgstr ""
msgid "Text to appear below the main email content."
msgstr ""
msgid "Email type"
msgstr ""
msgid "Choose which format of email to send."
msgstr ""
msgid "Customer"
msgstr ""