Add inline editing for licenses and copy license key button

- Add inline editing for status, expiry date, and domain fields
- Add copy-to-clipboard button for license keys
- Add AJAX handlers for inline editing with nonce verification
- Update LicenseManager with updateLicenseExpiry method
- Add new translations for inline editing strings (de_CH)
- Compile updated German translations to .mo file

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-21 23:13:07 +01:00
parent e88423e882
commit 024733bb31
8 changed files with 872 additions and 29 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.8\n"
"Project-Id-Version: WC Licensed Product 0.0.10\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"
@@ -865,3 +865,77 @@ msgstr "E-Mail-Typ"
msgid "Choose which format of email to send."
msgstr "Wählen Sie, welches E-Mail-Format gesendet werden soll."
#. Admin - Inline Editing
msgid "Searching..."
msgstr "Suche..."
msgid "No results found"
msgstr "Keine Ergebnisse gefunden"
msgid "Saving..."
msgstr "Speichere..."
msgid "Saved"
msgstr "Gespeichert"
msgid "Save failed"
msgstr "Speichern fehlgeschlagen"
msgid "Are you sure you want to revoke this license? This action cannot be undone."
msgstr "Sind Sie sicher, dass Sie diese Lizenz widerrufen möchten? Diese Aktion kann nicht rückgängig gemacht werden."
msgid "Edit"
msgstr "Bearbeiten"
msgid "Save"
msgstr "Speichern"
msgid "Status updated successfully."
msgstr "Status erfolgreich aktualisiert."
msgid "Expiry date updated successfully."
msgstr "Ablaufdatum erfolgreich aktualisiert."
msgid "License set to lifetime."
msgstr "Lizenz auf lebenslang gesetzt."
msgid "Domain updated successfully."
msgstr "Domain erfolgreich aktualisiert."
msgid "Invalid license ID."
msgstr "Ungültige Lizenz-ID."
msgid "Invalid status."
msgstr "Ungültiger Status."
msgid "Invalid date format."
msgstr "Ungültiges Datumsformat."
msgid "Domain cannot be empty."
msgstr "Domain darf nicht leer sein."
msgid "Failed to update status."
msgstr "Status konnte nicht aktualisiert werden."
msgid "Failed to update expiry date."
msgstr "Ablaufdatum konnte nicht aktualisiert werden."
msgid "Failed to update domain."
msgstr "Domain konnte nicht aktualisiert werden."
msgid "Failed to revoke license."
msgstr "Lizenz konnte nicht widerrufen werden."
msgid "Leave empty for lifetime"
msgstr "Leer lassen für lebenslang"
#. Admin - Order License Management
msgid "Saved!"
msgstr "Gespeichert!"
msgid "Error saving. Please try again."
msgstr "Fehler beim Speichern. Bitte versuchen Sie es erneut."
msgid "Failed to update license domain."
msgstr "Lizenz-Domain konnte nicht aktualisiert werden."