Thanks so much for using our services! If you have any questions, or suggestions, please feel free to email us here at team@tellform.com.
-
- The TellForm team
+
- The TellForm team
diff --git a/app/views/verification.email.view.pug b/app/views/verification.email.view.pug
index bcac48b4..0d99a925 100644
--- a/app/views/verification.email.view.pug
+++ b/app/views/verification.email.view.pug
@@ -1,13 +1,14 @@
doctype html
html
head
- body(style='padding: 0; width: 100% !important; -webkit-text-size-adjust: 100%; margin: 0; -ms-text-size-adjust: 100%', marginheight='0', marginwidth='0')
- | @import url(//fonts.googleapis.com/css?family=Open+Sans:300,400,600,700&subset=latin,latin-ext);
- style a {
- color: #007ee6;
- text-decoration: none;
- }
+ style.
+ @import url(//fonts.googleapis.com/css?family=Open+Sans:300,400,600,700&subset=latin,latin-ext);
+ a {
+ color: #007ee6;
+ text-decoration: none;
+ }
meta(content='text/html; charset=utf-8', http-equiv='Content-Type')
+ body(style='padding: 0; width: 100% !important; -webkit-text-size-adjust: 100%; margin: 0; -ms-text-size-adjust: 100%', marginheight='0', marginwidth='0')
center
table(cellpadding='8', cellspacing='0', style='*width: 540px; padding: 0; width: 100% !important; background: #ffffff; margin: 0; background-color: #ffffff', border='0')
tbody
@@ -26,15 +27,14 @@ html
tr
td(width='36')
td(width='454', align='left', style='color: #444444; border-collapse: collapse; font-size: 11pt; font-family: 'Open Sans', 'Lucida Grande', 'Segoe UI', Arial, Verdana, 'Lucida Sans Unicode', Tahoma, 'Sans Serif'; max-width: 454px', valign='top')
- p Hello there!
- p Welcome to TellForm! Here is a special link to activate your new account:
+ p=__('EMAIL_GREETING')
+ p=__('VERIFICATION_EMAIL_PARAGRAPH_1')
p
- a(href='https://${URL}') Activate my account
- p
- | Thanks so much for using our services! If you have any questions, or suggestions, please feel free to email us here at
- a(href='mailto:team@tellform.com') team@tellform.com
- | .
- p - The TellForm team
+ a(href='https://${URL}')=('VERIFICATION_EMAIL_LINK_TEXT')
+ p=__('VERIFICATION_EMAIL_PARAGRAPH_2')
+ a(href='mailto:team@tellform.com')
+ | team@tellform.com
+ p=__('EMAIL_SIGNATURE')
td(width='36')
tr
td(colspan='3', height='36')
diff --git a/app/views/welcome.email.view.pug b/app/views/welcome.email.view.pug
index a6ccb884..e3db6e02 100644
--- a/app/views/welcome.email.view.pug
+++ b/app/views/welcome.email.view.pug
@@ -1,13 +1,15 @@
doctype html
html
head
- body(style='padding: 0; width: 100% !important; -webkit-text-size-adjust: 100%; margin: 0; -ms-text-size-adjust: 100%', marginheight='0', marginwidth='0')
- | @import url(//fonts.googleapis.com/css?family=Open+Sans:300,400,600,700&subset=latin,latin-ext);
- style a {
- color: #007ee6;
- text-decoration: none;
+ style.
+ @import url(//fonts.googleapis.com/css?family=Open+Sans:300,400,600,700&subset=latin,latin-ext);
+ a {
+ color: #007ee6;
+ text-decoration: none;
}
meta(content='text/html; charset=utf-8', http-equiv='Content-Type')
+
+ body(style='padding: 0; width: 100% !important; -webkit-text-size-adjust: 100%; margin: 0; -ms-text-size-adjust: 100%', marginheight='0', marginwidth='0')
center
table(cellpadding='8', cellspacing='0', style='*width: 540px; padding: 0; width: 100% !important; background: #ffffff; margin: 0; background-color: #ffffff', border='0')
tbody
@@ -26,13 +28,12 @@ html
tr
td(width='36')
td(width='454', align='left', style='color: #444444; border-collapse: collapse; font-size: 11pt; font-family: 'Open Sans', 'Lucida Grande', 'Segoe UI', Arial, Verdana, 'Lucida Sans Unicode', Tahoma, 'Sans Serif'; max-width: 454px', valign='top')
- p Hello there!
- p We would like to welcome you as our newest member!
- p
- | Thanks so much for using TellForm! If you have any questions, or suggestions, please feel free to email us here at
- a(href='mailto:team@tellform.com') team@tellform.com
- | .
- p - The TellForm team
+ p=__('EMAIL_GREETING')
+ p=__('WELCOME_EMAIL_PARAGRAPH_1')
+ p=__('WELCOME_EMAIL_PARAGRAPH_2')
+ a(href='mailto:team@tellform.com')
+ | team@tellform.com
+ p=__('EMAIL_SIGNATURE')
td(width='36')
tr
td(colspan='3', height='36')
diff --git a/config/express.js b/config/express.js
index 8173f4e2..705ff479 100755
--- a/config/express.js
+++ b/config/express.js
@@ -155,14 +155,14 @@ module.exports = function(db) {
//Setup i18n
i18n.configure({
- locales: ['en', 'es', 'fr', 'de', 'it'],
- cookie: 'i18n_cookie',
- directory: __dirname + '/locales'
+ directory: __dirname + '/locales',
+ defaultLocale: 'en'
});
+
app.use(function(req, res, next) {
// express helper for natively supported engines
res.locals.__ = res.__ = function() {
- console.log('res.locals.__');
+ console.log('\n\n\n\n\n\nres.locals.__');
console.log(arguments);
return i18n.__.apply(req, arguments);
};
diff --git a/config/locales/de.json b/config/locales/de.json
index 2378e9b8..d00088e6 100644
--- a/config/locales/de.json
+++ b/config/locales/de.json
@@ -1,4 +1,13 @@
{
- "404_Header": "404 - Seite nicht gefunden",
- "500_Header": "500 - Interner Serverfehler",
+ "404_HEADER": "404 - Seite nicht gefunden",
+ "500_HEADER": "500 - Interner Serverfehler",
+ "404_BODY": "%s ist kein gültiger Pfad.",
+ "500_BODY": "Ein unerwarteter Fehler scheint aufgetreten zu sein, warum nicht versuchen, Ihre Seite zu aktualisieren oder Sie können uns kontaktieren, wenn das Problem weiterhin besteht.",
+ "EMAIL_GREETING": "Hallo da!",
+ "VERIFICATION_EMAIL_PARAGRAPH_1": "Willkommen bei TellForm! Hier ist ein spezieller Link um deinen neuen Account zu aktivieren:",
+ "VERIFICATION_EMAIL_LINK_TEXT": "Mein Konto aktivieren",
+ "VERIFICATION_EMAIL_PARAGRAPH_2": "Vielen Dank für die Nutzung unserer Dienste! Wenn Sie Fragen oder Anregungen haben, senden Sie uns bitte eine E-Mail an",
+ "EMAIL_SIGNATURE": "- Das TellForm-Team",
+ "WELCOME_EMAIL_PARAGRAPH_1": "Wir möchten Sie als unser neustes Mitglied begrüßen!",
+ "WELCOME_EMAIL_PARAGRAPH_2": "Wir wünschen Ihnen viel Spaß mit TellForm! Wenn Sie Probleme haben, senden Sie uns bitte eine E-Mail an"
}
\ No newline at end of file
diff --git a/config/locales/en.json b/config/locales/en.json
index b15d0d9d..15b6ce5a 100644
--- a/config/locales/en.json
+++ b/config/locales/en.json
@@ -1,4 +1,13 @@
{
- "404_Header": "404 - Page not found",
- "500_Header": "500 - Internal Server Error"
+ "500_HEADER": "500 - Internal Server Error",
+ "404_HEADER": "404 - Page not found",
+ "404_BODY": "%s is not a valid path",
+ "500_BODY": "An unexpected error seems to have occured. Why not try refreshing your page? Or you can contact us if the problem persists.",
+ "EMAIL_GREETING": "Hello there!",
+ "VERIFICATION_EMAIL_PARAGRAPH_1": "Welcome to TellForm! Here is a special link to activate your new account:",
+ "VERIFICATION_EMAIL_LINK_TEXT": "Activate my account",
+ "VERIFICATION_EMAIL_PARAGRAPH_2": "Thanks so much for using our services! If you have any questions, or suggestions, please feel free to email us here at",
+ "EMAIL_SIGNATURE": "- The TellForm team",
+ "WELCOME_EMAIL_PARAGRAPH_1": "We would like to welcome you as our newest member!",
+ "WELCOME_EMAIL_PARAGRAPH_2": "We hope you enjoy using TellForm! If you have any trouble please feel free to email us here at"
}
\ No newline at end of file
diff --git a/config/locales/es.json b/config/locales/es.json
index 9352275b..902b23e3 100644
--- a/config/locales/es.json
+++ b/config/locales/es.json
@@ -1,4 +1,13 @@
{
- "404_Header": "404 - Página no encontrada",
- "500_Header": "500 - Error interno del servidor",
+ "404_HEADER": "404 - Página no encontrada",
+ "500_HEADER": "500 - Error interno del servidor",
+ "404_BODY": "%s no es una ruta válida",
+ "500_BODY": "Parece que se produjo un error inesperado. ¿Por qué no intenta actualizar su página? O puede contactarnos si el problema persiste",
+ "EMAIL_GREETING": "¡Hola!",
+ "VERIFICATION_EMAIL_PARAGRAPH_1": "Bienvenido a TellForm. Aquí hay un enlace especial para activar su nueva cuenta:",
+ "VERIFICATION_EMAIL_LINK_TEXT": "Activar mi cuenta",
+ "VERIFICATION_EMAIL_PARAGRAPH_2": "¡Muchas gracias por utilizar nuestros servicios! Si tiene alguna pregunta o sugerencia, no dude en enviarnos un correo electrónico aquí",
+ "EMAIL_SIGNATURE": "- El equipo de TellForm",
+ "WELCOME_EMAIL_PARAGRAPH_1": "¡Nos gustaría darle la bienvenida como nuestro miembro más nuevo!",
+ "WELCOME_EMAIL_PARAGRAPH_2": "Esperamos que disfrute utilizando TellForm. Si tiene algún problema, no dude en enviarnos un correo electrónico aquí"
}
\ No newline at end of file
diff --git a/config/locales/fr.json b/config/locales/fr.json
index 7b44d815..5a890ca1 100644
--- a/config/locales/fr.json
+++ b/config/locales/fr.json
@@ -1,4 +1,13 @@
{
- "404_Header": "404 - Page non trouvée",
- "500_Header": "500 - Erreur interne du serveur",
+ "404_HEADER": "404 - Page non trouvée",
+ "500_HEADER": "500 - Erreur interne du serveur",
+ "404_BODY": "%s n'est pas un chemin valide.",
+ "500_BODY": "Une erreur inattendue semble s'être produite, pourquoi ne pas essayer d'actualiser votre page? Ou vous pouvez nous contacter si le problème persiste.",
+ "EMAIL_GREETING": "Bonjour!",
+ "VERIFICATION_EMAIL_PARAGRAPH_1": "Bienvenue sur TellForm! Voici un lien spécial pour activer votre nouveau compte:",
+ "VERIFICATION_EMAIL_LINK_TEXT": "Activer mon compte",
+ "VERIFICATION_EMAIL_PARAGRAPH_2": "Merci beaucoup pour l'utilisation de nos services! Si vous avez des questions ou des suggestions, n'hésitez pas à nous envoyer un courriel ici",
+ "EMAIL_SIGNATURE": "- L'équipe TellForm",
+ "WELCOME_EMAIL_PARAGRAPH_1": "Nous aimerions vous accueillir en tant que nouveau membre!",
+ "WELCOME_EMAIL_PARAGRAPH_2": "Nous espérons que vous apprécierez l'utilisation de TellForm! Si vous avez des problèmes, n'hésitez pas à nous envoyer un e-mail ici"
}
\ No newline at end of file
diff --git a/config/locales/it.json b/config/locales/it.json
index ef5b5ad7..46fc9db1 100644
--- a/config/locales/it.json
+++ b/config/locales/it.json
@@ -1,4 +1,13 @@
{
- "404_Header": "404 - Pagina non trovata",
- "500_Header": "500 - Errore Server Interno",
+ "404_HEADER": "404 - Pagina non trovata",
+ "500_HEADER": "500 - Errore Server Interno",
+ "404_BODY": "%s non è un percorso valido",
+ "500_BODY": "Si è verificato un errore imprevisto: perché non provare a rinfrescare la tua pagina oppure puoi contattarci se il problema persiste",
+ "EMAIL_GREETING": "Ciao!",
+ "VERIFICATION_EMAIL_PARAGRAPH_1": "Benvenuti a TellForm! Ecco un collegamento speciale per attivare il tuo nuovo account:",
+ "VERIFICATION_EMAIL_LINK_TEXT": "Attiva il mio account",
+ "VERIFICATION_EMAIL_PARAGRAPH_2": "Grazie mille per l'utilizzo dei nostri servizi! Se hai domande o suggerimenti, non esitate a contattarci via",
+ "EMAIL_SIGNATURE": "- Il team TellForm",
+ "WELCOME_EMAIL_PARAGRAPH_1": "Vorremmo darVi il benvenuto come il nostro nuovo membro!",
+ "WELCOME_EMAIL_PARAGRAPH_2": "Speriamo che ti piace usare TellForm! Se hai problemi, non esitate a contattarci via"
}
\ No newline at end of file
diff --git a/gruntfile.js b/gruntfile.js
index 9817b75e..0286ecdb 100755
--- a/gruntfile.js
+++ b/gruntfile.js
@@ -23,7 +23,7 @@ module.exports = function(grunt) {
// Unified Watch Object
var watchFiles = {
- serverViews: ['app/views/**/*.*'],
+ serverViews: ['app/views/**/*.pug'],
serverJS: ['gruntfile.js', 'server.js', 'config/**/*.js', 'app/**/*.js', '!app/tests/'],
clientViews: ['public/modules/**/*.html', 'public/form_modules/forms/base/**/*.html', '!public/modules/forms/base/**/*.html',],
@@ -292,13 +292,6 @@ module.exports = function(grunt) {
src: ['./scripts/setup.js']
}
},
- i18nlint: {
- options: {
- templateDelimiters: ['{', '}'],
- ignoreTags: ['head', 'script', 'style', '{%']
- },
- src: watchFiles.clientViews.concat(watchFiles.serverViews)
- },
});
grunt.event.on('coverage', function(lcov, done){
@@ -342,7 +335,7 @@ module.exports = function(grunt) {
grunt.registerTask('secure', ['env:secure', 'lint', 'html2js:main', 'html2js:forms', 'concurrent:default']);
// Lint task(s).
- grunt.registerTask('lint', ['jshint', 'csslint', 'i18nlint']);
+ grunt.registerTask('lint', ['jshint', 'csslint', 'i18nlint:client', 'i18nlint:server']);
grunt.registerTask('lint:tests', ['jshint:allTests']);
// Build task(s).