feat: lokales Google-Fonts-Hosting + "Lizenz upgraden"-button (v1.3.0)

- Lizenz-Tab: bei vollen Plaetzen erscheint ein "Lizenz upgraden"-Button
  (https://lucas-orth.de/wp-plugins/gdpr-content-blocker/) zusaetzlich zur
  domain-freigabe.
- Neues Feature "Schriften": Google Fonts lokal hosten (button-modell).
  Admin klickt "Jetzt herunterladen & einbinden" -> plugin scannt die seiten,
  laedt googleapis-CSS + gstatic-schriftdateien einmalig in den uploads-ordner,
  schreibt die pfade lokal um und tauscht sie per output-buffer im quelltext.
  Abgedeckt: <link>, inline-@import/url() UND @import/url() in gleicher-origin
  externen CSS-dateien (mit absolutierung der restlichen relativen pfade).
  preconnect/dns-prefetch zu google-font-hosts werden entfernt (kein IP-leak).
  Toggle zum aus/einschalten + "Lokale Schriften loeschen".
- i18n-pipeline robuster: build-en-mo.py nutzt jetzt translations-en.json
  (lookup per quell-string, reihenfolge-unabhaengig) und bricht mit liste ab,
  falls eine uebersetzung fehlt. Alle neuen strings DE/EN ergaenzt (139).
- version 1.3.0 (header + CB_VERSION).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
s4luorth
2026-06-08 07:16:19 +02:00
parent ca0f2f2c32
commit 377c64f8d0
10 changed files with 990 additions and 152 deletions

View File

@@ -6,12 +6,51 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Language: en_US\n"
msgid "Ungültige Antwort vom Lizenzserver."
msgstr "Invalid response from the license server."
msgid "Keine Berechtigung."
msgstr "Insufficient permissions."
msgid "Lokale Schriften gelöscht."
msgstr "Local fonts deleted."
msgid "Upload-Verzeichnis konnte nicht erstellt werden."
msgstr "The upload directory could not be created."
msgid "%1$d Schrift-Stylesheet(s) und %2$d Schriftdatei(en) lokal gespeichert."
msgstr "%1$d font stylesheet(s) and %2$d font file(s) stored locally."
msgid "Bindet Google Fonts lokal ein: Das Plugin lädt die Schrift-Stylesheets und Schriftdateien einmalig herunter, speichert sie in Ihrem Uploads-Ordner und ersetzt die Pfade im Seitenquelltext. So wird beim Seitenaufruf keine Verbindung mehr zu Google aufgebaut (kein IP-Transfer) und die Schriften laden schneller."
msgstr "Hosts Google Fonts locally: the plugin downloads the font stylesheets and font files once, stores them in your uploads folder and replaces the paths in the page source. As a result no connection to Google is made on page load (no IP transfer) and fonts load faster."
msgid "Lokales Hosting"
msgstr "Local hosting"
msgid "Lokale Schriften ein/aus"
msgstr "Local fonts on/off"
msgid "Wenn aktiv, werden auf der Webseite die heruntergeladenen lokalen Schriften statt der Google-Pfade ausgeliefert."
msgstr "When enabled, the website serves the downloaded local fonts instead of the Google paths."
msgid "Speichern"
msgstr "Save"
msgid "Schriften herunterladen"
msgstr "Download fonts"
msgid "Jetzt herunterladen & einbinden"
msgstr "Download & embed now"
msgid "Lokale Schriften löschen"
msgstr "Delete local fonts"
msgid "Aktuell lokal: %1$d Stylesheet(s), %2$d Schriftdatei(en) – zuletzt aktualisiert am %3$s."
msgstr "Currently local: %1$d stylesheet(s), %2$d font file(s) — last updated on %3$s."
msgid "Hinweis: Gescannt werden die Startseite und einige Unterseiten. Falls auf einzelnen Seiten weitere Google Fonts vorkommen, führen Sie die Aktion nach Inhaltsänderungen erneut aus."
msgstr "Note: the home page and a few sub-pages are scanned. If individual pages contain additional Google Fonts, run the action again after content changes."
msgid "Ungültige Antwort vom Lizenzserver."
msgstr "Invalid response from the license server."
msgid "Bitte einen Lizenzschlüssel eingeben."
msgstr "Please enter a license key."
@@ -57,6 +96,12 @@ msgstr "Status"
msgid "Domain"
msgstr "Domain"
msgid "Lizenz upgraden"
msgstr "Upgrade license"
msgid "Schalten Sie weitere Domains frei, um diese Seite zusätzlich zu aktivieren – oder geben Sie unten eine bestehende Domain frei."
msgstr "Unlock more domains to additionally activate this site — or release an existing domain below."
msgid "Belegte Domains"
msgstr "Bound domains"
@@ -186,6 +231,15 @@ msgstr "Scanned pages:"
msgid "Gefunden auf"
msgstr "Found on"
msgid "Schriften werden heruntergeladen …"
msgstr "Downloading fonts …"
msgid "Fehler beim Herunterladen:"
msgstr "Download error:"
msgid "Lokale Schriften wirklich löschen?"
msgstr "Really delete the local fonts?"
msgid "Google Ireland Ltd., Irland / Google LLC, USA"
msgstr "Google Ireland Ltd., Ireland / Google LLC, USA"
@@ -216,6 +270,9 @@ msgstr "Scan"
msgid "Darstellung"
msgstr "Appearance"
msgid "Schriften"
msgstr "Fonts"
msgid "Shortcodes"
msgstr "Shortcodes"