From 32d0dd998364e6868b620107d8f3507f21762b74 Mon Sep 17 00:00:00 2001 From: Alain Abbas Date: Wed, 17 Aug 2022 03:56:44 +0200 Subject: [PATCH 1/5] translation of the button --- languages/fr/categorynotifications.json | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 languages/fr/categorynotifications.json diff --git a/languages/fr/categorynotifications.json b/languages/fr/categorynotifications.json new file mode 100644 index 0000000..e858ea6 --- /dev/null +++ b/languages/fr/categorynotifications.json @@ -0,0 +1,6 @@ +{ + "subscribe": "S'abonner", + "unsubscribe": "Se désabonner", + "new-topic-in": "Nouveau sujet dans %1", + "new-reply-in": "Nouvelle reponse dans %1" +} \ No newline at end of file From c80fb781c3fd61a374d4bad4372920df6b2d49a9 Mon Sep 17 00:00:00 2001 From: Alain Abbas Date: Wed, 17 Aug 2022 04:51:25 +0200 Subject: [PATCH 2/5] translation emails --- languages/en-GB/categorynotifications.json | 7 ++++++- languages/fr/categorynotifications.json | 7 ++++++- public/templates/admin/plugins/category-notifications.tpl | 8 ++++---- public/templates/emails/categoryNotifications_post.tpl | 2 +- public/templates/emails/categoryNotifications_topic.tpl | 3 ++- 5 files changed, 19 insertions(+), 8 deletions(-) diff --git a/languages/en-GB/categorynotifications.json b/languages/en-GB/categorynotifications.json index f5a601a..0efd9cf 100644 --- a/languages/en-GB/categorynotifications.json +++ b/languages/en-GB/categorynotifications.json @@ -2,5 +2,10 @@ "subscribe": "Subscribe", "unsubscribe": "Unsubscribe", "new-topic-in": "New Topic in %1", - "new-reply-in": "New Reply in %1" + "new-reply-in": "New Reply in %1", + "admin-title": "Notification Setting", + "email-categorie-post": "%3 has posted a new reply to %5 in %7", + "email-categorie-topic": "%3 has posted a new topic called %5 in %7", + "view-topic": "View Topic", + "view-post": "View Post" } \ No newline at end of file diff --git a/languages/fr/categorynotifications.json b/languages/fr/categorynotifications.json index e858ea6..6f0404c 100644 --- a/languages/fr/categorynotifications.json +++ b/languages/fr/categorynotifications.json @@ -2,5 +2,10 @@ "subscribe": "S'abonner", "unsubscribe": "Se désabonner", "new-topic-in": "Nouveau sujet dans %1", - "new-reply-in": "Nouvelle reponse dans %1" + "new-reply-in": "Nouvelle réponse dans %1", + "admin-title": "Réglage pour la notification", + "email-categorie-post": "%3 a posté une nouvelle réponse %5 dans %7", + "email-categorie-topic": "%3 a posté un nouveau sujet nommé %5 dans %7", + "view-topic": "Voir le sujet", + "view-post": "Voir la réponse" } \ No newline at end of file diff --git a/public/templates/admin/plugins/category-notifications.tpl b/public/templates/admin/plugins/category-notifications.tpl index e17e942..1a9934b 100644 --- a/public/templates/admin/plugins/category-notifications.tpl +++ b/public/templates/admin/plugins/category-notifications.tpl @@ -5,11 +5,11 @@
- +
diff --git a/public/templates/emails/categoryNotifications_post.tpl b/public/templates/emails/categoryNotifications_post.tpl index 9fea4d8..b5ed4dc 100644 --- a/public/templates/emails/categoryNotifications_post.tpl +++ b/public/templates/emails/categoryNotifications_post.tpl @@ -16,7 +16,7 @@

- {user.name} has posted a new reply to "{title}" in "{category.name}" + [[categorynotifications:email-categorie-post,{url},{user.slug},{user.name},{topicSlug},{title},{category.slug},{category.name}]]

diff --git a/public/templates/emails/categoryNotifications_topic.tpl b/public/templates/emails/categoryNotifications_topic.tpl index cca5b13..2031e53 100644 --- a/public/templates/emails/categoryNotifications_topic.tpl +++ b/public/templates/emails/categoryNotifications_topic.tpl @@ -17,6 +17,7 @@

{user.name} has posted a new topic called "{title}" in "{category.name}" + [[categorynotifications:email-categorie-topic,{url},{user.slug},{user.name},{topicSlug},{title},{category.slug},{category.name}]]

@@ -34,7 +35,7 @@ - View Topic → + [[categorynotifications:view-topic]] → From 8fa102b79fe08f824775fe76fca9297ceeaebfdd Mon Sep 17 00:00:00 2001 From: Alain Abbas Date: Wed, 17 Aug 2022 16:09:56 +0200 Subject: [PATCH 3/5] corrections --- languages/fr/categorynotifications.json | 6 +++--- public/templates/emails/categoryNotifications_topic.tpl | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/languages/fr/categorynotifications.json b/languages/fr/categorynotifications.json index 6f0404c..b5db705 100644 --- a/languages/fr/categorynotifications.json +++ b/languages/fr/categorynotifications.json @@ -1,11 +1,11 @@ { "subscribe": "S'abonner", "unsubscribe": "Se désabonner", - "new-topic-in": "Nouveau sujet dans %1", - "new-reply-in": "Nouvelle réponse dans %1", + "new-topic-in": "Nouveau sujet dans '%1'", + "new-reply-in": "Nouvelle réponse dans '%1'", "admin-title": "Réglage pour la notification", "email-categorie-post": "%3 a posté une nouvelle réponse %5 dans %7", - "email-categorie-topic": "%3 a posté un nouveau sujet nommé %5 dans %7", + "email-categorie-topic": "%3 a posté un nouveau sujet nommé %5 dans la catégorie %7", "view-topic": "Voir le sujet", "view-post": "Voir la réponse" } \ No newline at end of file diff --git a/public/templates/emails/categoryNotifications_topic.tpl b/public/templates/emails/categoryNotifications_topic.tpl index 2031e53..3cdb296 100644 --- a/public/templates/emails/categoryNotifications_topic.tpl +++ b/public/templates/emails/categoryNotifications_topic.tpl @@ -16,7 +16,6 @@

- {user.name} has posted a new topic called "{title}" in "{category.name}" [[categorynotifications:email-categorie-topic,{url},{user.slug},{user.name},{topicSlug},{title},{category.slug},{category.name}]]

From 0972051f3304977a940e3f8fee46d44c40465a20 Mon Sep 17 00:00:00 2001 From: Alain Abbas Date: Wed, 17 Aug 2022 16:22:30 +0200 Subject: [PATCH 4/5] corrections --- languages/en-GB/categorynotifications.json | 3 ++- languages/fr/categorynotifications.json | 4 ++-- public/templates/admin/plugins/category-notifications.tpl | 4 ++-- public/templates/emails/categoryNotifications_post.tpl | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/languages/en-GB/categorynotifications.json b/languages/en-GB/categorynotifications.json index 0efd9cf..0282983 100644 --- a/languages/en-GB/categorynotifications.json +++ b/languages/en-GB/categorynotifications.json @@ -3,7 +3,8 @@ "unsubscribe": "Unsubscribe", "new-topic-in": "New Topic in %1", "new-reply-in": "New Reply in %1", - "admin-title": "Notification Setting", + "admin-title" : "Category Notifications", + "admin-label-notifications": "Notification Setting", "email-categorie-post": "%3 has posted a new reply to %5 in %7", "email-categorie-topic": "%3 has posted a new topic called %5 in %7", "view-topic": "View Topic", diff --git a/languages/fr/categorynotifications.json b/languages/fr/categorynotifications.json index b5db705..c458fec 100644 --- a/languages/fr/categorynotifications.json +++ b/languages/fr/categorynotifications.json @@ -3,8 +3,8 @@ "unsubscribe": "Se désabonner", "new-topic-in": "Nouveau sujet dans '%1'", "new-reply-in": "Nouvelle réponse dans '%1'", - "admin-title": "Réglage pour la notification", - "email-categorie-post": "%3 a posté une nouvelle réponse %5 dans %7", + "admin-label-notifications": "Réglage pour la notification", + "email-categorie-post": "%3 a posté une nouvelle réponse dans le sujet %5 dans la catégorie %7", "email-categorie-topic": "%3 a posté un nouveau sujet nommé %5 dans la catégorie %7", "view-topic": "Voir le sujet", "view-post": "Voir la réponse" diff --git a/public/templates/admin/plugins/category-notifications.tpl b/public/templates/admin/plugins/category-notifications.tpl index 1a9934b..c644270 100644 --- a/public/templates/admin/plugins/category-notifications.tpl +++ b/public/templates/admin/plugins/category-notifications.tpl @@ -1,11 +1,11 @@ -

Category Notifications

+

[[categorynotifications:admin-title]]

- +