diff --git a/config/express.js b/config/express.js
index a5be442c..1da3f4a1 100755
--- a/config/express.js
+++ b/config/express.js
@@ -273,6 +273,8 @@ module.exports = function(db) {
res.clearCookie('userLang');
res.cookie('userLang', supportedLanguage, { maxAge: 90000, httpOnly: true });
}
+ } else if(req.user && (!req.cookies.hasOwnProperty('userLang') || req.cookies['userLang'] !== req.user.language) ){
+ res.cookie('userLang', req.user.language, { maxAge: 90000, httpOnly: true });
}
next();
});
diff --git a/public/modules/core/controllers/header.client.controller.js b/public/modules/core/controllers/header.client.controller.js
index 57332278..a0c9054d 100755
--- a/public/modules/core/controllers/header.client.controller.js
+++ b/public/modules/core/controllers/header.client.controller.js
@@ -1,7 +1,7 @@
'use strict';
-angular.module('core').controller('HeaderController', ['$rootScope', '$scope', 'Menus', '$state', 'Auth', 'User', '$window', '$translate', '$locale',
- function ($rootScope, $scope, Menus, $state, Auth, User, $window, $translate, $locale) {
+angular.module('core').controller('HeaderController', ['$rootScope', '$scope', 'Menus', '$state', 'Auth', 'User', '$window', '$translate',
+ function ($rootScope, $scope, Menus, $state, Auth, User, $window, $translate) {
$rootScope.signupDisabled = $window.signupDisabled;
@@ -12,12 +12,8 @@ angular.module('core').controller('HeaderController', ['$rootScope', '$scope', '
$rootScope.languages = $scope.languages = ['en', 'fr', 'es', 'it', 'de'];
//Set global app language
- if($scope.authentication.isAuthenticated()){
- $rootScope.language = $scope.user.language;
- }else {
- $rootScope.language = $locale.id.substring(0,2);
- }
- $translate.use($rootScope.language);
+ $rootScope.language = $scope.user.language;
+ $translate.use($scope.user.language);
$scope.isCollapsed = false;
$rootScope.hideNav = false;
diff --git a/public/modules/forms/admin/config/i18n/english.js b/public/modules/forms/admin/config/i18n/english.js
index 19a1ba5b..84e5a848 100644
--- a/public/modules/forms/admin/config/i18n/english.js
+++ b/public/modules/forms/admin/config/i18n/english.js
@@ -8,12 +8,12 @@ angular.module('forms').config(['$translateProvider', function ($translateProvid
ADVANCED_SETTINGS: 'Advanced Settings',
FORM_NAME: 'Form Name',
FORM_STATUS: 'Form Status',
- PUBLIC_1: 'Public',
- PRIVATE_1: 'Private',
+ PUBLIC: 'Public',
+ PRIVATE: 'Private',
GA_TRACKING_CODE: 'Google Analytics Tracking Code',
DISPLAY_FOOTER: 'Display Form Footer?',
SAVE_CHANGES: 'Save Changes',
- CANCEL_1: 'Cancel',
+ CANCEL: 'Cancel',
DISPLAY_START_PAGE: 'Display Start Page?',
DISPLAY_END_PAGE: 'Display Custom End Page?',
@@ -22,15 +22,15 @@ angular.module('forms').config(['$translateProvider', function ($translateProvid
CREATE_FORM: 'Create form',
CREATED_ON: 'Created on',
MY_FORMS: 'My forms',
- NAME_1: 'Name',
+ NAME: 'Name',
LANGUAGE: 'Language',
FORM_PAUSED: 'Form paused',
//Edit Field Modal
EDIT_FIELD: 'Edit this Field',
SAVE_FIELD: 'Save',
- ON_1: 'ON',
- OFF_1: 'OFF',
+ ON: 'ON',
+ OFF: 'OFF',
REQUIRED_FIELD: 'Required',
LOGIC_JUMP: 'Logic Jump',
SHOW_BUTTONS: 'Additional Buttons',
@@ -45,21 +45,21 @@ angular.module('forms').config(['$translateProvider', function ($translateProvid
I_UNDERSTAND: 'I understand the consequences, delete this form.',
DELETE_FORM_SM: 'Delete',
DELETE_FORM_MD: 'Delete Form',
- DELETE_1: 'Delete',
- FORM_1: 'Form',
- VIEW_1: 'View',
- LIVE_1: 'Live',
- PREVIEW_1: 'Preview',
- COPY_1: 'Copy',
+ DELETE: 'Delete',
+ FORM: 'Form',
+ VIEW: 'View',
+ LIVE: 'Live',
+ PREVIEW: 'Preview',
+ COPY: 'Copy',
COPY_AND_PASTE: 'Copy and Paste this to add your TellForm to your website',
CHANGE_WIDTH_AND_HEIGHT: 'Change the width and height values to suit you best',
POWERED_BY: 'Powered by',
TELLFORM_URL: 'Your TellForm is permanently at this URL',
//Edit Form View
- DISABLED_1: 'Disabled',
- YES_1: 'YES',
- NO_1: 'NO',
+ DISABLED: 'Disabled',
+ YES: 'YES',
+ NO: 'NO',
ADD_LOGIC_JUMP: 'Add Logic Jump',
ADD_FIELD_LG: 'Click to Add New Field',
ADD_FIELD_MD: 'Add New Field',
@@ -71,7 +71,7 @@ angular.module('forms').config(['$translateProvider', function ($translateProvid
INTRO_TITLE: 'Title',
INTRO_PARAGRAPH: 'Paragraph',
INTRO_BTN: 'Start Button',
- TITLE_1: 'Title',
+ TITLE: 'Title',
PARAGRAPH: 'Paragraph',
BTN_TEXT: 'Go Back Button',
BUTTONS: 'Buttons',
@@ -81,7 +81,7 @@ angular.module('forms').config(['$translateProvider', function ($translateProvid
PREVIEW_FIELD: 'Preview Question',
QUESTION_TITLE: 'Title',
QUESTION_DESCRIPTION: 'Description',
- OPTIONS_1: 'Options',
+ OPTIONS: 'Options',
ADD_OPTION: 'Add Option',
NUM_OF_STEPS: 'Number of Steps',
CLICK_FIELDS_FOOTER: 'Click on fields to add them here',
@@ -91,9 +91,9 @@ angular.module('forms').config(['$translateProvider', function ($translateProvid
IS_NOT_EQUAL_TO: 'is not equal to',
IS_GREATER_THAN: 'is greater than',
IS_GREATER_OR_EQUAL_THAN: 'is greater or equal than',
- IS_SMALLER_THAN: 'is_smaller_than',
+ IS_SMALLER_THAN: 'is smaller than',
IS_SMALLER_OR_EQUAL_THAN: 'is smaller or equal than',
- CONTAINS_1: 'contains',
+ CONTAINS: 'contains',
DOES_NOT_CONTAINS: 'does not contain',
ENDS_WITH: 'ends with',
DOES_NOT_END_WITH: 'does not end with',
@@ -103,14 +103,14 @@ angular.module('forms').config(['$translateProvider', function ($translateProvid
//Edit Submissions View
TOTAL_VIEWS: 'total unique visits',
- RESPONSES_1: 'responses',
+ RESPONSES: 'responses',
COMPLETION_RATE: 'completion rate',
AVERAGE_TIME_TO_COMPLETE: 'avg. completion time',
DESKTOP_AND_LAPTOP: 'Desktops',
- TABLETS_1: 'Tablets',
- PHONES_1: 'Phones',
- OTHER_1: 'Other',
+ TABLETS: 'Tablets',
+ PHONES: 'Phones',
+ OTHER: 'Other',
UNIQUE_VISITS: 'Unique Visits',
FIELD_TITLE: 'Field Title',
@@ -123,8 +123,8 @@ angular.module('forms').config(['$translateProvider', function ($translateProvid
EXPORT_TO_JSON: 'Export to JSON',
PERCENTAGE_COMPLETE: 'Percentage Complete',
TIME_ELAPSED: 'Time Elapsed',
- DEVICE_1: 'Device',
- LOCATION_1: 'Location',
+ DEVICE: 'Device',
+ LOCATION: 'Location',
IP_ADDRESS: 'IP Address',
DATE_SUBMITTED: 'Date Submitted',
@@ -149,42 +149,42 @@ angular.module('forms').config(['$translateProvider', function ($translateProvid
//Field Types
SHORT_TEXT: 'Short Text',
- EMAIL_1: 'Email',
+ EMAIL: 'Email',
MULTIPLE_CHOICE: 'Multiple Choice',
- DROPDOWN_1: 'Dropdown',
- DATE_1: 'Date',
+ DROPDOWN: 'Dropdown',
+ DATE: 'Date',
PARAGRAPH_T: 'Paragraph',
YES_NO: 'Yes/No',
- LEGAL_1: 'Legal',
- RATING_1: 'Rating',
- NUMBERS_1: 'Numbers',
- SIGNATURE_1: 'Signature',
+ LEGAL: 'Legal',
+ RATING: 'Rating',
+ NUMBERS: 'Numbers',
+ SIGNATURE: 'Signature',
FILE_UPLOAD: 'File upload',
OPTION_SCALE: 'Option Scale',
- PAYMENT_1: 'Payment',
- STATEMENT_1: 'Statement',
- LINK_1: 'Link',
+ PAYMENT: 'Payment',
+ STATEMENT: 'Statement',
+ LINK: 'Link',
//Form Preview
FORM_SUCCESS: 'Form entry successfully submitted!',
- REVIEW_1: 'Review',
+ REVIEW: 'Review',
BACK_TO_FORM: 'Go back to Form',
EDIT_FORM: 'Edit this TellForm',
- ADVANCEMENT_1: '{{done}} out of {{total}} answered',
+ ADVANCEMENT: '{{done}} out of {{total}} answered',
CONTINUE_FORM: 'Continue to Form',
- REQUIRED_1: 'required',
+ REQUIRED: 'required',
COMPLETING_NEEDED: '{{answers_not_completed}} answer(s) need completing',
- OPTIONAL_1: 'optional',
+ OPTIONAL: 'optional',
ERROR_EMAIL_INVALID: 'Please enter a valid email address',
ERROR_NOT_A_NUMBER: 'Please enter valid numbers only',
ERROR_URL_INVALID: 'Please a valid url',
- OK_1: 'OK',
- ENTER_1: 'press ENTER',
- NEWLINE_1: 'press SHIFT+ENTER to create a newline',
- CONTINUE_1: 'Continue',
+ OK: 'OK',
+ ENTER: 'press ENTER',
+ NEWLINE: 'press SHIFT+ENTER to create a newline',
+ CONTINUE: 'Continue',
LEGAL_ACCEPT: 'I accept',
LEGAL_NO_ACCEPT: 'I don’t accept',
- SUBMIT_1: 'Submit',
+ SUBMIT: 'Submit',
UPLOAD_FILE: 'Upload your File'
});
}]);
diff --git a/public/modules/forms/admin/config/i18n/french.js b/public/modules/forms/admin/config/i18n/french.js
index b9afbcd5..cc2187e8 100644
--- a/public/modules/forms/admin/config/i18n/french.js
+++ b/public/modules/forms/admin/config/i18n/french.js
@@ -7,12 +7,12 @@ angular.module('forms').config(['$translateProvider', function ($translateProvid
ADVANCED_SETTINGS: 'Paramètres avancés',
FORM_NAME: "Nom du formulaire",
FORM_STATUS: 'Statut du formulaire',
- PUBLIC_1: 'Public',
- PRIVATE_1: "Privé",
+ PUBLIC: 'Public',
+ PRIVATE: "Privé",
GA_TRACKING_CODE: "Code de suivi Google Analytics",
DISPLAY_FOOTER: "Afficher le pied de formulaire?",
SAVE_CHANGES: 'Enregistrer les modifications',
- CANCEL_1: 'Annuler',
+ CANCEL: 'Annuler',
DISPLAY_START_PAGE: "Afficher la page de démarrage?",
DISPLAY_END_PAGE: "Afficher la page de fin personnalisée?",
@@ -21,15 +21,15 @@ angular.module('forms').config(['$translateProvider', function ($translateProvid
CREATE_FORM: "Créer un formulaire",
CREATED_ON: 'Créé le',
MY_FORMS: 'Mes formes',
- NAME_1: "Nom",
+ NAME: "Nom",
LANGUE: 'Langue',
FORM_PAUSED: 'Formulaire en pause',
// Modifier le modal de champ
EDIT_FIELD: "Modifier ce champ",
SAVE_FIELD: 'Enregistrer',
- ON_1: 'ON',
- OFF_1: "OFF",
+ ON: 'ON',
+ OFF: "OFF",
REQUIRED_FIELD: "Obligatoire",
LOGIC_JUMP: 'Saut logique',
SHOW_BUTTONS: 'Boutons supplémentaires',
@@ -44,21 +44,21 @@ angular.module('forms').config(['$translateProvider', function ($translateProvid
I_UNDERSTAND: 'Je comprends les conséquences, efface ce formulaire.',
DELETE_FORM_SM: 'Supprimer',
DELETE_FORM_MD: "Supprimer le formulaire",
- DELETE_1: "Supprimer",
- FORM_1: 'Formulaire',
- VIEW_1: "Afficher",
- LIVE_1: "Live",
- PREVIEW_1: 'Aperçu',
- COPY_1: "Copier",
+ DELETE: "Supprimer",
+ FORM: 'Formulaire',
+ VIEW: "Afficher",
+ LIVE: "Live",
+ PREVIEW: 'Aperçu',
+ COPY: "Copier",
COPY_AND_PASTE: "Copiez et collez ceci pour ajouter votre TellForm à votre site Web",
CHANGE_WIDTH_AND_HEIGHT: "Changez les valeurs de largeur et de hauteur pour mieux vous convenir",
POWERED_BY: "Alimenté par",
TELLFORM_URL: "Votre TellForm est en permanence sur cette URL",
// Modifier la vue de formulaire
- DISABLED_1: "Désactivé",
- OUI_1: 'OUI',
- NO_1: 'NON',
+ DISABLED: "Désactivé",
+ OUI: 'OUI',
+ NO: 'NON',
ADD_LOGIC_JUMP: 'Ajouter un saut de logique',
ADD_FIELD_LG: "Cliquez pour ajouter un nouveau champ",
ADD_FIELD_MD: "Ajouter un nouveau champ",
@@ -70,7 +70,7 @@ angular.module('forms').config(['$translateProvider', function ($translateProvid
INTRO_TITLE: "Titre",
INTRO_PARAGRAPH: 'Paragraphe',
INTRO_BTN: 'Bouton de démarrage',
- TITLE_1: "Titre",
+ TITLE: "Titre",
PARAGRAPHE: 'Paragraphe',
BTN_TEXT: "Bouton Retour",
BOUTONS: 'Boutons',
@@ -80,7 +80,7 @@ angular.module('forms').config(['$translateProvider', function ($translateProvid
PREVIEW_FIELD: 'Question d\'aperçu',
QUESTION_TITLE: "Titre",
QUESTION_DESCRIPTION: 'Description',
- OPTIONS_1: 'Options',
+ OPTIONS: 'Options',
ADD_OPTION: 'Ajouter une option',
NUM_OF_STEPS: "Nombre d'étapes",
CLICK_FIELDS_FOOTER: 'Cliquez sur les champs pour les ajouter ici',
@@ -90,9 +90,9 @@ angular.module('forms').config(['$translateProvider', function ($translateProvid
IS_NOT_EQUAL_TO: 'n\'est pas égal à',
IS_GREATER_THAN: 'est supérieur à',
IS_GREATER_OR_EQUAL_THAN: 'est supérieur ou égal à',
- IS_SMALLER_THAN: 'is_smaller_than',
+ IS_SMALLER_THAN: 'est plus petit que',
IS_SMALLER_OR_EQUAL_THAN: 'est plus petit ou égal à',
- CONTAINS_1: 'contient',
+ CONTAINS: 'contient',
DOES_NOT_CONTAINS: 'ne contient pas',
ENDS_WITH: "se termine par",
DOES_NOT_END_WITH: "ne finit pas avec",
@@ -102,28 +102,28 @@ angular.module('forms').config(['$translateProvider', function ($translateProvid
// Modifier la vue des soumissions
TOTAL_VIEWS: 'total des visites uniques',
- RESPONSES_1: "réponses",
+ RESPONSES: "réponses",
COMPLETION_RATE: "taux d'achèvement",
AVERAGE_TIME_TO_COMPLETE: 'moy. le temps d\'achèvement',
DESKTOP_AND_LAPTOP: 'Desktops',
- TABLETS_1: 'Tablettes',
- PHONES_1: 'Téléphones',
- OTHER_1: 'Autre',
+ TABLETS: 'Tablettes',
+ PHONES: 'Téléphones',
+ OTHER: 'Autre',
UNIQUE_VISITS: 'Visites uniques',
FIELD_TITLE: 'Titre du champ',
- FIELD_VIEWS: 'Field Views',
+ FIELD_VIEWS: 'Vues de champ',
FIELD_DROPOFF: "Achèvement du champ",
FIELD_RESPONSES: 'Réponses sur le terrain',
DELETE_SELECTED: 'Supprimer la sélection',
EXPORT_TO_EXCEL: 'Exporter vers Excel',
- EXPORT_TO_CSV: 'Export to CSV',
+ EXPORT_TO_CSV: 'Export vers CSV',
EXPORT_TO_JSON: "Exporter vers JSON",
PERCENTAGE_COMPLETE: 'Pourcentage terminé',
TIME_ELAPSED: 'Temps écoulé',
- DEVICE_1: "Device",
- LOCATION_1: "Emplacement",
+ DEVICE: "Dispositif",
+ LOCATION: "Emplacement",
IP_ADDRESS: 'Adresse IP',
DATE_SUBMITTED: 'Date de soumission',
@@ -148,42 +148,42 @@ angular.module('forms').config(['$translateProvider', function ($translateProvid
// Types de champs
SHORT_TEXT: "Texte court",
- EMAIL_1: "E-mail",
+ EMAIL: "E-mail",
MULTIPLE_CHOICE: 'Choix multiple',
- DROPDOWN_1: 'Dropdown',
- DATE_1: 'Date',
+ DROPDOWN: 'Menu Déroulant',
+ DATE: 'Date',
PARAGRAPH_T: "Paragraphe",
OUI_NON: 'Oui / Non',
- LEGAL_1: 'Légal',
- RATING_1: "Évaluation",
- NUMBERS_1: "Chiffres",
- SIGNATURE_1: 'Signature',
+ LEGAL: 'Légal',
+ RATING: "Évaluation",
+ NUMBERS: "Chiffres",
+ SIGNATURE: 'Signature',
FILE_UPLOAD: 'Téléchargement de fichier',
OPTION_SCALE: 'Option Scale',
- PAYMENT_1: 'Paiement',
- STATEMENT_1: 'Déclaration',
- LINK_1: "Lien",
+ PAYMENT: 'Paiement',
+ STATEMENT: 'Déclaration',
+ LINK: "Lien",
// Aperçu du formulaire
FORM_SUCCESS: 'Entrée de formulaire soumise avec succès!',
- REVIEW_1: 'Review',
+ REVIEW: 'Réviser',
BACK_TO_FORM: "Revenir au formulaire",
EDIT_FORM: "Modifier ce TellForm",
- ADVANCEMENT_1: '{{done}} sur {{total}} a répondu',
+ ADVANCEMENT: '{{done}} sur {{total}} a répondu',
CONTINUE_FORM: "Continuer à se former",
- REQUIRED_1: 'requis',
+ REQUIRED: 'requis',
COMPLETING_NEEDED: '{{answers_not_completed}} réponse (s) doivent être complétées',
- OPTIONAL_1: 'optionnel',
+ OPTIONAL: 'optionnel',
ERROR_EMAIL_INVALID: "Veuillez entrer une adresse email valide",
ERROR_NOT_A_NUMBER: "Veuillez entrer uniquement des numéros valides",
ERROR_URL_INVALID: "S'il vous plaît une adresse valide",
- OK_1: 'OK',
- ENTER_1: 'appuyez sur ENTRER',
- NEWLINE_1: 'appuyez sur MAJ + ENTRÉE pour créer une nouvelle ligne',
- CONTINUE_1: "Continuer",
+ OK: 'OK',
+ ENTER: 'appuyez sur ENTRER',
+ NEWLINE: 'appuyez sur MAJ + ENTRÉE pour créer une nouvelle ligne',
+ CONTINUE: "Continuer",
LEGAL_ACCEPT: 'J\'accepte',
LEGAL_NO_ACCEPT: "Je n'accepte pas",
- SUBMIT_1: "Soumettre",
+ SUBMIT: "Soumettre",
UPLOAD_FILE: "Télécharger votre fichier"
});
}]);
diff --git a/public/modules/forms/admin/config/i18n/german.js b/public/modules/forms/admin/config/i18n/german.js
index 2dae7e2a..0ea8d351 100644
--- a/public/modules/forms/admin/config/i18n/german.js
+++ b/public/modules/forms/admin/config/i18n/german.js
@@ -7,12 +7,12 @@ angular.module('forms').config(['$translateProvider', function ($translateProvid
ADVANCED_SETTINGS: 'Erweiterte Einstellungen',
FORM_NAME: 'Formularname',
FORM_STATUS: 'Formularstatus',
- PUBLIC_1: 'Öffentlich',
- PRIVATE_1: 'Privat',
+ PUBLIC: 'Öffentlich',
+ PRIVATE: 'Privat',
GA_TRACKING_CODE: 'Google Analytics Tracking-Code',
DISPLAY_FOOTER: 'Formularfußzeile anzeigen?',
SAVE_CHANGES: 'Änderungen speichern',
- CANCEL_1: 'Abbrechen',
+ CANCEL: 'Abbrechen',
DISPLAY_START_PAGE: 'Startseite anzeigen?',
DISPLAY_END_PAGE: 'Benutzerdefinierte Endseite anzeigen?',
@@ -21,15 +21,15 @@ angular.module('forms').config(['$translateProvider', function ($translateProvid
CREATE_FORM: 'Formular erstellen',
CREATED_ON: 'Erstellt am',
MY_FORMS: 'Meine Formulare',
- NAME_1: 'Name',
+ NAME: 'Name',
SPRACHE: 'Sprache',
FORM_PAUSED: 'Formular pausiert',
// Feld Modal bearbeiten
EDIT_FIELD: 'Dieses Feld bearbeiten',
SAVE_FIELD: 'Speichern',
- ON_1: 'ON',
- AUS_1: 'AUS',
+ ON: 'ON',
+ AUS: 'AUS',
REQUIRED_FIELD: 'Erforderlich',
LOGIC_JUMP: 'Logischer Sprung',
SHOW_BUTTONS: 'Zusätzliche Schaltflächen',
@@ -44,21 +44,21 @@ angular.module('forms').config(['$translateProvider', function ($translateProvid
I_UNDERSTAND: "Ich verstehe die Konsequenzen, lösche dieses Formular.",
DELETE_FORM_SM: 'Löschen',
DELETE_FORM_MD: 'Formular löschen',
- DELETE_1: 'Löschen',
- FORM_1: 'Formular',
- VIEW_1: 'Ansicht',
- LIVE_1: 'Live',
- PREVIEW_1: 'Vorschau',
- COPY_1: 'Kopieren',
+ DELETE: 'Löschen',
+ FORM: 'Formular',
+ VIEW: 'Ansicht',
+ LIVE: 'Leben',
+ PREVIEW: 'Vorschau',
+ COPY: 'Kopieren',
COPY_AND_PASTE: 'Kopieren und einfügen, um Ihre TellForm auf Ihrer Website hinzuzufügen',
CHANGE_WIDTH_AND_HEIGHT: 'Ändern Sie die Werte für Breite und Höhe, um Ihnen am besten zu entsprechen',
- POWERED_BY: 'Powered by',
+ POWERED_BY: 'Unterstützt von',
TELLFORM_URL: "Ihr TellForm ist dauerhaft unter dieser URL",
// Formularansicht bearbeiten
- DISABLED_1: 'Deaktiviert',
- JA_1: 'JA',
- NO_1: 'NEIN',
+ DISABLED: 'Deaktiviert',
+ JA: 'JA',
+ NO: 'NEIN',
ADD_LOGIC_JUMP: 'Logic Jump hinzufügen',
ADD_FIELD_LG: 'Klicken Sie auf Neues Feld hinzufügen',
ADD_FIELD_MD: 'Neues Feld hinzufügen',
@@ -69,8 +69,8 @@ angular.module('forms').config(['$translateProvider', function ($translateProvid
END_SCREEN: 'Ende Seite',
INTRO_TITLE: 'Titel',
INTRO_PARAGRAPH: "Absatz",
- INTRO_BTN: 'Start Button',
- TITLE_1: "Titel",
+ INTRO_BTN: 'Start Knopf',
+ TITLE: "Titel",
PARAGRAPH: "Absatz",
BTN_TEXT: 'Zurück Button',
TASTEN: 'Knöpfe',
@@ -80,19 +80,19 @@ angular.module('forms').config(['$translateProvider', function ($translateProvid
PREVIEW_FIELD: 'Vorschaufrage',
QUESTION_TITLE: 'Titel',
QUESTION_DESCRIPTION: 'Beschreibung',
- OPTIONS_1: 'Optionen',
+ OPTIONS: 'Optionen',
ADD_OPTION: 'Option hinzufügen',
NUM_OF_STEPS: 'Anzahl der Schritte',
CLICK_FIELDS_FOOTER: 'Klicken Sie auf Felder, um sie hier hinzuzufügen',
- FORM: 'Form',
+ FORM: 'Formular',
IF_THIS_FIELD: 'Wenn dieses Feld',
IS_EQUAL_TO: 'ist gleich',
IS_NOT_EQUAL_TO: 'ist nicht gleich',
IS_GREATER_THAN: 'ist größer als',
IS_GREATER_OR_EQUAL_THAN: 'ist größer oder gleich',
- IS_SMALLER_THAN: 'is_smaller_than',
+ IS_SMALLER_THAN: 'ist kleiner als',
IS_SMALLER_OR_EQUAL_THAN: 'ist kleiner oder gleich',
- CONTAINS_1: 'enthält',
+ CONTAINS: 'enthält',
DOES_NOT_CONTAINS: 'enthält nicht',
ENDS_WITH: 'endet mit',
DOES_NOT_END_WITH: 'endet nicht mit',
@@ -102,14 +102,14 @@ angular.module('forms').config(['$translateProvider', function ($translateProvid
// Bearbeiten der Einreichungsansicht
TOTAL_VIEWS: 'Gesamtzahl eindeutiger Besuche',
- RESPONSES_1: 'Antworten',
+ RESPONSES: 'Antworten',
COMPLETION_RATE: 'Abschlussrate',
AVERAGE_TIME_TO_COMPLETE: 'avg. Fertigstellungszeit',
DESKTOP_AND_LAPTOP: 'Desktops',
- TABLETS_1: "Tabletten",
- PHONES_1: 'Telefone',
- OTHER_1: 'Andere',
+ TABLETS: "Tabletten",
+ PHONES: 'Telefone',
+ OTHER: 'Andere',
UNIQUE_VISITS: 'Eindeutige Besuche',
FIELD_TITLE: 'Feldtitel',
@@ -122,8 +122,8 @@ angular.module('forms').config(['$translateProvider', function ($translateProvid
EXPORT_TO_JSON: 'Export nach JSON',
PERCENTAGE_COMPLETE: 'Prozent abgeschlossen',
TIME_ELAPSED: 'Zeit verstrichen',
- DEVICE_1: 'Gerät',
- LOCATION_1: 'Ort',
+ DEVICE: 'Gerät',
+ LOCATION: 'Ort',
IP_ADDRESS: 'IP-Adresse',
DATE_SUBMITTED: 'Eingereichtes Datum',
@@ -141,49 +141,49 @@ angular.module('forms').config(['$translateProvider', function ($translateProvid
// Admin-Registerkarten
CREATE_TAB: 'Erstellen',
- DESIGN_TAB: 'Design',
+ DESIGN_TAB: 'Entwurf',
CONFIGURE_TAB: 'Konfigurieren',
ANALYZE_TAB: 'Analysieren',
- SHARE_TAB: 'Freigeben',
+ SHARE_TAB: 'Freigeben',
// Feldtypen
SHORT_TEXT: 'Kurztext',
- EMAIL_1: 'Email',
- MULTIPLE_CHOICE: 'Multiple Choice',
- DROPDOWN_1: 'Dropdown',
- DATE_1: 'Datum',
+ EMAIL: 'Email',
+ MULTIPLE_CHOICE: 'Mehrfachauswahl',
+ DROPDOWN: 'Dropdown-Liste',
+ DATE: 'Datum',
PARAGRAPH_T: "Absatz",
YES_NO: 'Ja / Nein',
- LEGAL_1: "Legal",
- RATING_1: 'Rating',
- NUMBERS_1: 'Zahlen',
- SIGNATURE_1: "Unterschrift",
+ LEGAL: "Rechtliche",
+ RATING: 'Bewertung',
+ NUMBERS: 'Zahlen',
+ SIGNATURE: "Unterschrift",
FILE_UPLOAD: 'Datei-Upload',
- OPTION_SCALE: 'Option Scale',
- ZAHLUNG_1: "Zahlung",
- STATEMENT_1: 'Anweisung',
- LINK_1: 'Link',
+ OPTION_SCALE: 'Optionsskala',
+ ZAHLUNG: "Zahlung",
+ STATEMENT: 'Anweisung',
+ LINK: 'Link',
// Formularvorschau
FORM_SUCCESS: 'Formulareintrag erfolgreich gesendet!',
- REVIEW_1: 'Review',
+ REVIEW: 'Überprüfung',
BACK_TO_FORM: 'Gehe zurück zu Formular',
EDIT_FORM: 'Bearbeiten Sie diese TellForm',
- ADVANCEMENT_1: '{{done}} von {{total}} wurde beantwortet',
+ ADVANCEMENT: '{{done}} von {{total}} wurde beantwortet',
CONTINUE_FORM: 'Weiter zum Formular',
- REQUIRED_1: 'erforderlich',
+ REQUIRED: 'erforderlich',
COMPLETING_NEEDED: '{{answers_not_completed}} Antwort (en) müssen ausgefüllt werden',
- OPTIONAL_1: 'optional',
+ OPTIONAL: 'optional',
ERROR_EMAIL_INVALID: 'Geben Sie eine gültige E-Mail-Adresse ein',
ERROR_NOT_A_NUMBER: 'Bitte nur gültige Nummern eingeben',
ERROR_URL_INVALID: 'Bitte eine gültige URL',
- OK_1: 'OK',
- ENTER_1: 'ENTER drücken',
- NEWLINE_1: 'Drücken Sie UMSCHALT + EINGABETASTE, um eine neue Zeile zu erstellen',
- CONTINUE_1: 'Weiter',
+ OK: 'OK',
+ ENTER: 'ENTER drücken',
+ NEWLINE: 'Drücken Sie UMSCHALT + EINGABETASTE, um eine neue Zeile zu erstellen',
+ CONTINUE: 'Weiter',
LEGAL_ACCEPT: "Ich akzeptiere",
LEGAL_NO_ACCEPT: "Ich akzeptiere nicht",
- SUBMIT_1: 'Senden',
+ SUBMIT: 'Senden',
UPLOAD_FILE: 'Hochladen Ihrer Datei'
});
diff --git a/public/modules/forms/admin/config/i18n/italian.js b/public/modules/forms/admin/config/i18n/italian.js
index 95bf5d04..17665625 100644
--- a/public/modules/forms/admin/config/i18n/italian.js
+++ b/public/modules/forms/admin/config/i18n/italian.js
@@ -7,12 +7,12 @@ angular.module('forms').config(['$translateProvider', function ($translateProvid
ADVANCED_SETTINGS: 'Impostazioni avanzate',
FORM_NAME: 'Nome modulo',
FORM_STATUS: 'Stato modulo',
- PUBLIC_1: 'pubblico',
- PRIVATE_1: 'Privato',
+ PUBLIC: 'pubblico',
+ PRIVATE: 'Privato',
GA_TRACKING_CODE: 'Codice di monitoraggio di Google Analytics',
DISPLAY_FOOTER: 'Visualizza piè di pagina?',
SAVE_CHANGES: 'Salva modifiche',
- CANCEL_1: 'Annulla',
+ CANCEL: 'Annulla',
DISPLAY_START_PAGE: 'Visualizza pagina iniziale?',
DISPLAY_END_PAGE: 'Mostra pagina finale personalizzata?',
@@ -21,15 +21,15 @@ angular.module('forms').config(['$translateProvider', function ($translateProvid
CREATE_FORM: 'Crea modulo',
CREATED_ON: 'Creato su',
MY_FORMS: 'Le mie forme',
- NAME_1: 'Nome',
+ NAME: 'Nome',
LINGUA: 'Lingua',
FORM_PAUSED: 'Forme in pausa',
// Modifica campo modale
EDIT_FIELD: 'Modifica questo campo',
SAVE_FIELD: 'Salva',
- ON_1: 'ON',
- OFF_1: 'OFF',
+ ON: 'ON',
+ OFF: 'OFF',
REQUIRED_FIELD: 'Obbligatorio',
LOGIC_JUMP: 'Jump Logic',
SHOW_BUTTONS: 'Pulsanti aggiuntivi',
@@ -44,21 +44,21 @@ angular.module('forms').config(['$translateProvider', function ($translateProvid
I_UNDERSTAND: "Capisco le conseguenze, elimina questa forma",
DELETE_FORM_SM: 'Elimina',
DELETE_FORM_MD: 'Elimina modulo',
- DELETE_1: 'Elimina',
- FORM_1: 'Forma',
- VIEW_1: 'Visualizza',
- LIVE_1: 'Live',
- PREVIEW_1: 'Anteprima',
- COPY_1: 'Copia',
+ DELETE: 'Elimina',
+ FORM: 'Forma',
+ VIEW: 'Visualizza',
+ LIVE: 'Live',
+ PREVIEW: 'Anteprima',
+ COPY: 'Copia',
COPY_AND_PASTE: 'Copia e incolla questo per aggiungere il tuo TellForm al tuo sito web',
CHANGE_WIDTH_AND_HEIGHT: 'Modifica i valori di larghezza e di altezza per adattarti al meglio',
- POWERED_BY: 'Powered by',
+ POWERED_BY: 'Offerto da',
TELLFORM_URL: 'Il tuo TellForm è permanente in questo URL',
// Modifica vista modulo
- DISABLED_1: 'disabilitato',
- YES_1: 'SI',
- NO_1: 'NO',
+ DISABLED: 'disabilitato',
+ YES: 'SI',
+ NO: 'NO',
ADD_LOGIC_JUMP: 'Aggiungi logico salto',
ADD_FIELD_LG: 'Clicca per aggiungere nuovo campo',
ADD_FIELD_MD: 'Aggiungi nuovo campo',
@@ -70,7 +70,7 @@ angular.module('forms').config(['$translateProvider', function ($translateProvid
INTRO_TITLE: 'Titolo',
INTRO_PARAGRAPH: 'Paragrafo',
INTRO_BTN: 'Pulsante Start',
- TITLE_1: 'Titolo',
+ TITLE: 'Titolo',
PARAGRAFO: 'Paragrafo',
BTN_TEXT: 'Tornare indietro',
TASTI: 'Pulsanti',
@@ -80,7 +80,7 @@ angular.module('forms').config(['$translateProvider', function ($translateProvid
PREVIEW_FIELD: 'Anteprima domanda',
QUESTION_TITLE: 'Titolo',
QUESTION_DESCRIPTION: 'Descrizione',
- OPTIONS_1: 'Opzioni',
+ OPTIONS: 'Opzioni',
ADD_OPTION: 'Aggiungi opzione',
NUM_OF_STEPS: 'Numero di passi',
CLICK_FIELDS_FOOTER: 'Clicca sui campi per aggiungerli qui',
@@ -90,9 +90,9 @@ angular.module('forms').config(['$translateProvider', function ($translateProvid
IS_NOT_EQUAL_TO: 'non è uguale a',
IS_GREATER_THAN: 'è maggiore di',
IS_GREATER_OR_EQUAL_THAN: 'è maggiore o uguale a',
- IS_SMALLER_THAN: 'is_smaller_than',
+ IS_SMALLER_THAN: 'è inferiore a',
IS_SMALLER_OR_EQUAL_THAN: 'è più piccolo o uguale a quello',
- CONTAINS_1: 'contiene',
+ CONTAINS: 'contiene',
DOES_NOT_CONTAINS: 'non contiene',
ENDS_WITH: 'finisce con',
DOES_NOT_END_WITH: 'non finisce con',
@@ -102,14 +102,14 @@ angular.module('forms').config(['$translateProvider', function ($translateProvid
// Modifica visualizzazione presentazioni
TOTAL_VIEWS: 'visite totali totali',
- RESPONSES_1: 'risposte',
+ RESPONSES: 'risposte',
COMPLETION_RATE: 'tasso di completamento',
AVERAGE_TIME_TO_COMPLETE: 'avg. tempo di completamento',
DESKTOP_AND_LAPTOP: 'Desktop',
- TABLETS_1: 'compresse',
- PHONES_1: 'Telefoni',
- OTHER_1: 'Altro',
+ TABLETS: 'compresse',
+ PHONES: 'Telefoni',
+ OTHER: 'Altro',
UNIQUE_VISITS: 'Visite Uniche',
FIELD_TITLE: 'Titolo del campo',
@@ -122,8 +122,8 @@ angular.module('forms').config(['$translateProvider', function ($translateProvid
EXPORT_TO_JSON: 'Esporta in JSON',
PERCENTAGE_COMPLETE: 'Percentuale completa',
TIME_ELAPSED: 'Tempo trascorso',
- DEVICE_1: 'Dispositivo',
- LOCATION_1: 'Posizione',
+ DEVICE: 'Dispositivo',
+ LOCATION: 'Posizione',
IP_ADDRESS: 'Indirizzo IP',
DATE_SUBMITTED: 'Data trasmessa',
@@ -131,7 +131,7 @@ angular.module('forms').config(['$translateProvider', function ($translateProvid
BACKGROUND_COLOR: 'Colore di sfondo',
DESIGN_HEADER: 'Modifica il tuo aspetto forma',
QUESTION_TEXT_COLOR: 'Colore del testo di domanda',
- ANSWER_TEXT_COLOR: 'Answer Text Color',
+ ANSWER_TEXT_COLOR: 'Rispondere al colore del testo',
BTN_BACKGROUND_COLOR: 'Colore di sfondo del pulsante',
BTN_TEXT_COLOR: 'Colore del testo pulsante',
@@ -144,46 +144,46 @@ angular.module('forms').config(['$translateProvider', function ($translateProvid
DESIGN_TAB: 'Design',
CONFIGURE_TAB: 'Configura',
ANALYZE_TAB: 'Analizza',
- SHARE_TAB: 'Condividi',
+ SHARE_TAB: 'Condividi',
// Tipi di campo
SHORT_TEXT: 'Testo corto',
- EMAIL_1: 'E-mail',
+ EMAIL: 'E-mail',
MULTIPLE_CHOICE: 'Scelta multipla',
- DROPDOWN_1: 'Dropdown',
- DATE_1: 'Data',
+ DROPDOWN: 'Dropdown',
+ DATE: 'Data',
PARAGRAPH_T: 'Paragrafo',
YES_NO: 'Sì / no',
- LEGAL_1: 'Legale',
- RATING_1: 'Valutazione',
- NUMBERS_1: 'Numeri',
- SIGNATURE_1: 'Firma',
+ LEGAL: 'Legale',
+ RATING: 'Valutazione',
+ NUMBERS: 'Numeri',
+ SIGNATURE: 'Firma',
FILE_UPLOAD: 'Caricamento file',
OPTION_SCALE: 'Scala opzione',
- PAGAMENTO_1: 'Pagamento',
- STATEMENT_1: 'Dichiarazione',
- LINK_1: 'Link',
+ PAGAMENTO: 'Pagamento',
+ STATEMENT: 'Dichiarazione',
+ LINK: 'Link',
// Anteprima del modulo
FORM_SUCCESS: 'Inserimento modulo con successo presentato!',
- REVIEW_1: 'Recensione',
+ REVIEW: 'Recensione',
BACK_TO_FORM: 'Torna alla scheda',
EDIT_FORM: 'Modifica questo TellForm',
- ADVANCEMENT_1: '{{done}} su {{total}} ha risposto',
+ ADVANCEMENT: '{{done}} su {{total}} ha risposto',
CONTINUE_FORM: "Continua a formare",
- REQUIRED_1: 'richiesta',
+ REQUIRED: 'richiesta',
COMPLETING_NEEDED: '{{answers_not_completed}} answer (s) need completing',
- OPTIONAL_1: 'facoltativo',
+ OPTIONAL: 'facoltativo',
ERROR_EMAIL_INVALID: 'Inserisci un indirizzo e-mail valido',
ERROR_NOT_A_NUMBER: 'Inserisci solo numeri validi',
ERROR_URL_INVALID: 'Per favore un url valido',
- OK_1: 'OK',
- ENTER_1: 'premere INVIO',
- NEWLINE_1: 'premere SHIFT + INVIO per creare una nuova riga',
- CONTINUE_1: 'Continua',
+ OK: 'OK',
+ ENTER: 'premere INVIO',
+ NEWLINE: 'premere SHIFT + INVIO per creare una nuova riga',
+ CONTINUE: 'Continua',
LEGAL_ACCEPT: 'accetto',
LEGAL_NO_ACCEPT: 'Non accetto',
- SUBMIT_1: 'Invia',
+ SUBMIT: 'Invia',
UPLOAD_FILE: 'Carica il tuo file'
});
diff --git a/public/modules/forms/admin/config/i18n/spanish.js b/public/modules/forms/admin/config/i18n/spanish.js
index dcd63449..8e0985ed 100644
--- a/public/modules/forms/admin/config/i18n/spanish.js
+++ b/public/modules/forms/admin/config/i18n/spanish.js
@@ -29,8 +29,8 @@ angular.module('forms').config(['$translateProvider', function ($translateProvid
//Edit Field Modal
EDIT_FIELD: 'Editar este campo',
SAVE_FIELD: 'Grabar',
- ON: 'ON',
- OFF: 'OFF',
+ ON: 'EN',
+ OFF: 'APAGADO',
REQUIRED_FIELD: 'Requerido',
LOGIC_JUMP: 'Salto lógico',
SHOW_BUTTONS: 'Botones adicionales',
@@ -127,7 +127,6 @@ angular.module('forms').config(['$translateProvider', function ($translateProvid
LOCATION: 'Lugar',
IP_ADDRESS: 'Dirección IP',
DATE_SUBMITTED: 'Fecha de envío',
- GENERATED_PDF: 'PDF generado',
//Design View
BACKGROUND_COLOR: 'Color de fondo',
diff --git a/public/modules/forms/admin/controllers/admin-form.client.controller.js b/public/modules/forms/admin/controllers/admin-form.client.controller.js
index 7dac194d..12c85f3c 100644
--- a/public/modules/forms/admin/controllers/admin-form.client.controller.js
+++ b/public/modules/forms/admin/controllers/admin-form.client.controller.js
@@ -1,8 +1,8 @@
'use strict';
// Forms controller
-angular.module('forms').controller('AdminFormController', ['$rootScope', '$window', '$scope', '$stateParams', '$state', 'Forms', 'CurrentForm', '$http', '$uibModal', 'myForm', '$filter',
- function($rootScope, $window, $scope, $stateParams, $state, Forms, CurrentForm, $http, $uibModal, myForm, $filter) {
+angular.module('forms').controller('AdminFormController', ['$rootScope', '$window', '$scope', '$stateParams', '$state', 'Forms', 'CurrentForm', '$http', '$uibModal', 'myForm', '$filter', '$translate',
+ function($rootScope, $window, $scope, $stateParams, $state, Forms, CurrentForm, $http, $uibModal, myForm, $filter, $translate) {
//Set active tab to Create
$scope.activePill = 0;
diff --git a/public/modules/forms/admin/services/form-fields.client.service.js b/public/modules/forms/admin/services/form-fields.client.service.js
index 451f11ac..d6dae5eb 100644
--- a/public/modules/forms/admin/services/form-fields.client.service.js
+++ b/public/modules/forms/admin/services/form-fields.client.service.js
@@ -1,72 +1,75 @@
'use strict';
//TODO: DAVID: URGENT: Make this a $resource that fetches valid field types from server
-angular.module('forms').service('FormFields', [ '$filter',
- function($filter) {
+angular.module('forms').service('FormFields', [ '$rootScope', '$translate', '$window',
+ function($rootScope, $translate, $window) {
+ $translate.use($window.user.language);
+ console.log($translate.instant('SHORT_TEXT'));
+
this.types = [
{
name : 'textfield',
- value : $filter('translate')('SHORT_TEXT'),
+ value : $translate.instant('SHORT_TEXT'),
},
{
name : 'email',
- value : $filter('translate')('EMAIL'),
+ value : $translate.instant('EMAIL'),
},
{
name : 'radio',
- value : $filter('translate')('MULTIPLE_CHOICE'),
+ value : $translate.instant('MULTIPLE_CHOICE'),
},
{
name : 'dropdown',
- value : $filter('translate')('DROPDOWN'),
+ value : $translate.instant('DROPDOWN'),
},
{
name : 'date',
- value : $filter('translate')('DATE'),
+ value : $translate.instant('DATE'),
},
{
name : 'textarea',
- value : $filter('translate')('PARAGRAPH'),
+ value : $translate.instant('PARAGRAPH'),
},
{
name : 'yes_no',
- value : $filter('translate')('YES_NO'),
+ value : $translate.instant('YES_NO'),
},
{
name : 'legal',
- value : $filter('translate')('LEGAL'),
+ value : $translate.instant('LEGAL'),
},
// {
// name : 'sig',
- // value : $filter('translate')('SIGNATURE'),
+ // value : $translate.instant('SIGNATURE'),
// },
// {
// name : 'file',
- // value : $filter('translate')('FILE_UPLOAD'),
+ // value : $translate.instant('FILE_UPLOAD'),
// },
{
name : 'rating',
- value : $filter('translate')('RATING'),
+ value : $translate.instant('RATING'),
},
{
name : 'link',
- value : $filter('translate')('LINK'),
+ value : $translate.instant('LINK'),
},
{
name : 'number',
- value : $filter('translate')('NUMBERS'),
+ value : $translate.instant('NUMBERS'),
},
// {
// name : 'scale',
- // value : $filter('translate')('OPINION SCALE'),
+ // value : $translate.instant('OPINION SCALE'),
// },
// {
// name : 'stripe',
- // value : $filter('translate')('PAYMENT'),
+ // value : $translate.instant('PAYMENT'),
// },
{
name : 'statement',
- value : $filter('translate')('STATEMENT')
+ value : $translate.instant('STATEMENT')
}
];
}
diff --git a/public/modules/forms/admin/views/directiveViews/form/edit-form.client.view.html b/public/modules/forms/admin/views/directiveViews/form/edit-form.client.view.html
index 994ab73d..2a8d8369 100644
--- a/public/modules/forms/admin/views/directiveViews/form/edit-form.client.view.html
+++ b/public/modules/forms/admin/views/directiveViews/form/edit-form.client.view.html
@@ -487,8 +487,6 @@
-
-
@@ -509,7 +507,8 @@
- {{type.value}}
+ {{type.value}}
+
diff --git a/public/modules/users/controllers/authentication.client.controller.js b/public/modules/users/controllers/authentication.client.controller.js
index 1a9db40d..b2bb6c89 100755
--- a/public/modules/users/controllers/authentication.client.controller.js
+++ b/public/modules/users/controllers/authentication.client.controller.js
@@ -2,8 +2,7 @@
angular.module('users').controller('AuthenticationController', ['$scope', '$location', '$state', '$rootScope', 'User', 'Auth', '$translate', '$window',
function($scope, $location, $state, $rootScope, User, Auth, $translate, $window) {
- $translate.use($window.locale);
-
+
$scope = $rootScope;
$scope.credentials = {};
$scope.error = '';