diff --git a/README.md b/README.md
index f9e7202..4d4bf2d 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,9 @@
# Description
This plugin allows users to subscribe to pads and receive email updates when a pad is being modified. You can modify the frequency. This plugin is very much in alpha stage and has a lot of things TODO (See TODO).
+# Source code
+On Github : https://github.com/JohnMcLear/ep_email_notifications
+
# Installation
Make sure an SMTP gateway is installed IE postfix
Configure SPF and RDNS records to ensure proper mail flow <-- Search online
@@ -26,6 +29,11 @@ NOTE: You will NOT receive an email if you(the author that registered their emai
}
```
+# Translation
+This plugin has for now an english and french translation.
+In case you would like to have it in another language, you can easily translate the few sentences and then contact us on irc (#etherpad-lite-dev on irc.freenode.net) or create a Pull-Request on the GitHub repository.
+You can find the sentences to translate in the ep_email_notifications/locales/ directory.
+
# TODO
* Clean up all code
diff --git a/static/js/ep_email.js b/static/js/ep_email.js
index eb916fd..8a52ae6 100644
--- a/static/js/ep_email.js
+++ b/static/js/ep_email.js
@@ -10,9 +10,9 @@ exports.postAceInit = function(hook, context){
if (typeof clientVars.panelDisplayLocation != "object") {
$.gritter.add({
// (string | mandatory) the heading of the notification
- title: "Email subscription error",
+ title: window._('ep_email_notifications.titleGritterError'),
// (string | mandatory) the text inside the notification
- text: "Some settings for the 'email_Notifications' plugin are missing.
Please contact your administrator.",
+ text: window._('ep_email_notifications.msgParamsMissing'),
// (int | optional) the time you want it to be alive for before fading out
time: 10000,
});
@@ -150,9 +150,9 @@ function askClientToEnterEmail(){
$.gritter.add({
// (string | mandatory) the heading of the notification
- title: "Email subscription",
+ title: window._('ep_email_notifications.titleGritterSubscr'),
// (string | mandatory) the text inside the notification
- text: "
(Receive an email when someone modifies this pad)
" + formContent, + text: "" + window._('ep_email_notifications.headerGritterSubscr') + "
" + formContent, // (bool | optional) if you want it to fade out on its own or just sit there sticky: true, // (int | optional) the time you want it to be alive for before fading out @@ -195,9 +195,9 @@ function checkAndSend(e) { && !$('#' + formName + ' [name=ep_email_onEnd]').is(':checked')) { $.gritter.add({ // (string | mandatory) the heading of the notification - title: "Email subscription error", + title: window._('ep_email_notifications.titleGritterError'), // (string | mandatory) the text inside the notification - text: "You need to check at least one of the two options from 'Send a mail when someone..'" + text: window._('ep_email_notifications.msgOptionsNotChecked') }); } else if (email) { $('#' + formName).submit(); @@ -253,9 +253,9 @@ Manage return msgs from server function showRegistrationSuccess(){ $.gritter.add({ // (string | mandatory) the heading of the notification - title: "Email subscription", + title: window._('ep_email_notifications.titleGritterSubscr'), // (string | mandatory) the text inside the notification - text: "An email was sent to your address.- +