diff --git a/CHANGELOG.md b/CHANGELOG.md index 068fe63..ee6a5d8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,5 @@ # v1.2.8 -## mm/dd/2020 +## 09/10/2020 1. [](#improved) * Improved some translations diff --git a/blueprints.yaml b/blueprints.yaml index 1daf30b..4b825e8 100644 --- a/blueprints.yaml +++ b/blueprints.yaml @@ -1,5 +1,7 @@ name: Comments -version: 1.2.7 +type: plugin +slug: comments +version: 1.2.8 description: Adds a commenting functionality to your site icon: comment author: diff --git a/comments.php b/comments.php index 282242e..f7f44eb 100644 --- a/comments.php +++ b/comments.php @@ -358,7 +358,7 @@ private function fetchComments() { $filename .= $this->grav['uri']->path() . '.yaml'; $data = $this->getDataFromFilename($filename); - $comments = $data['comments'] ?? null; + $comments = isset($data['comments']) ? $data['comments'] : null; //save to cache if enabled $cache->save($this->comments_cache_id, $comments); return $comments; diff --git a/languages.yaml b/languages.yaml index 578f360..3101de2 100644 --- a/languages.yaml +++ b/languages.yaml @@ -1,25 +1,3 @@ -de: - PLUGIN_COMMENTS: - ADD_COMMENT: Kommentar hinzufügen - COMMENTS: Kommentare - EMAIL_NOT_CONFIGURED: Email nicht konfiguriert - NEW_COMMENT_EMAIL_SUBJECT: 'Neuer Kommentar für %1$s' - NEW_COMMENT_EMAIL_BODY: '

Ein neuer Kommentar am %1$s von %3$s (%4$s).

Seite: %2$s

Text: %5$s

' - EMAIL_FOOTER: '' - NAME: Name: - EMAIL: Email: - WRITTEN_ON: geschrieben am - BY: von - NAME_LABEL: "Name" - NAME_PLACEHOLDER: "Namen eingeben" - EMAIL_LABEL: "Email" - EMAIL_PLACEHOLDER: "Email-Adresse eingeben" - MESSAGE_LABEL: "Kommentar" - MESSAGE_PLACEHOLDER: "Kommentar eingeben" - SUBMIT_COMMENT_BUTTON_TEXT: "Absenden" - EMAIL_NEW_COMMENT_SUBJECT: "[Neuer Kommentar] von {{ form.value.name|e }}" - THANK_YOU_MESSAGE: "Vielen Dank für den Kommentar!" - en: PLUGIN_COMMENTS: ADD_COMMENT: Add a comment @@ -42,6 +20,28 @@ en: EMAIL_NEW_COMMENT_SUBJECT: "[New Comment] from {{ form.value.name|e }}" THANK_YOU_MESSAGE: "Thank you for writing your comment!" +de: + PLUGIN_COMMENTS: + ADD_COMMENT: Kommentar hinzufügen + COMMENTS: Kommentare + EMAIL_NOT_CONFIGURED: Email nicht konfiguriert + NEW_COMMENT_EMAIL_SUBJECT: 'Neuer Kommentar für %1$s' + NEW_COMMENT_EMAIL_BODY: '

Ein neuer Kommentar am %1$s von %3$s (%4$s).

Seite: %2$s

Text: %5$s

' + EMAIL_FOOTER: '' + NAME: Name: + EMAIL: Email: + WRITTEN_ON: geschrieben am + BY: von + NAME_LABEL: "Name" + NAME_PLACEHOLDER: "Namen eingeben" + EMAIL_LABEL: "Email" + EMAIL_PLACEHOLDER: "Email-Adresse eingeben" + MESSAGE_LABEL: "Kommentar" + MESSAGE_PLACEHOLDER: "Kommentar eingeben" + SUBMIT_COMMENT_BUTTON_TEXT: "Absenden" + EMAIL_NEW_COMMENT_SUBJECT: "[Neuer Kommentar] von {{ form.value.name|e }}" + THANK_YOU_MESSAGE: "Vielen Dank für den Kommentar!" + es: PLUGIN_COMMENTS: ADD_COMMENT: Agregar un comentario @@ -152,6 +152,28 @@ ja: EMAIL_NEW_COMMENT_SUBJECT: "[新しいコメント] {{ form.value.name|e }}から" THANK_YOU_MESSAGE: "コメントありがとうございます!" +nl: + PLUGIN_COMMENTS: + ADD_COMMENT: Reageer + COMMENTS: Reacties + EMAIL_NOT_CONFIGURED: Email niet geconfigureerd + NEW_COMMENT_EMAIL_SUBJECT: 'Nieuwe reactie op %1$s' + NEW_COMMENT_EMAIL_BODY: '

Er is een nieuwe reactie gemaakt op %1$s door %3$s (%4$s).

Pagina: %2$s

Tekst: %5$s

' + EMAIL_FOOTER: '' + NAME: 'Naam:' + EMAIL: 'Email:' + WRITTEN_ON: 'Geschreven op' + BY: 'door' + NAME_LABEL: "Naam" + NAME_PLACEHOLDER: "Vul je naam in" + EMAIL_LABEL: "Email" + EMAIL_PLACEHOLDER: "Vul je emailadres in" + MESSAGE_LABEL: "Reactie" + MESSAGE_PLACEHOLDER: "Vul je reactie in" + SUBMIT_COMMENT_BUTTON_TEXT: "Verstuur" + EMAIL_NEW_COMMENT_SUBJECT: "[Nieuwe reactie] van {{ form.value.name|e }}" + THANK_YOU_MESSAGE: "Bedankt voor je reactie!" + pl: PLUGIN_COMMENTS: ADD_COMMENT: Dodaj komentarz