From 8ad1145ffcbde832ebdc01f131ef6f2d09d93546 Mon Sep 17 00:00:00 2001 From: Ivan Diaz Date: Sun, 23 Apr 2017 02:21:45 -0300 Subject: [PATCH 1/9] Update init-settings.php --- server/controllers/system/init-settings.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/controllers/system/init-settings.php b/server/controllers/system/init-settings.php index 49bf69c9..a3a58e4d 100755 --- a/server/controllers/system/init-settings.php +++ b/server/controllers/system/init-settings.php @@ -47,7 +47,7 @@ class InitSettingsController extends Controller { 'allow-attachments' => 0, 'max-size' => 1024, 'title' => 'Support Center', - 'url' => 'http://dev3.opensupports.com', + 'url' => 'http://' . $_SERVER['HTTP_HOST'], 'registration' => !!Controller::request('registration'), 'user-system-enabled' => !!Controller::request('user-system-enabled'), 'last-stat-day' => date('YmdHi', strtotime(' -12 day ')), @@ -113,4 +113,4 @@ class InitSettingsController extends Controller { $department->store(); } } -} \ No newline at end of file +} From 255774841095ceb0bd3cfc23232a22acf893a713 Mon Sep 17 00:00:00 2001 From: Kallys Date: Fri, 5 May 2017 15:37:29 +0200 Subject: [PATCH 2/9] Update french translation --- client/src/data/languages/fr.js | 350 ++++++++++++++++---------------- 1 file changed, 175 insertions(+), 175 deletions(-) diff --git a/client/src/data/languages/fr.js b/client/src/data/languages/fr.js index fdb21335..ffe3230f 100644 --- a/client/src/data/languages/fr.js +++ b/client/src/data/languages/fr.js @@ -1,7 +1,7 @@ export default { 'WELCOME': 'Bienvenue', - 'TICKETS': 'Des billets', - 'ARTICLES': 'Des articles', + 'TICKETS': 'Tickets', + 'ARTICLES': 'Articles', 'ACCOUNT': 'Compte', 'SUBMIT': 'Soumettre', 'EMAIL': 'Email', @@ -9,28 +9,28 @@ export default { 'REPEAT_PASSWORD': 'Répéter le mot de passe', 'LOG_IN': 'S\'identifier', 'SIGN_UP': 'S\'inscrire', - 'FORGOT_PASSWORD': 'Mot de passe oublié?', + 'FORGOT_PASSWORD': 'Mot de passe oublié ?', 'RECOVER_PASSWORD': 'Récupérer mot de passe', 'RECOVER_SENT': 'Un e-mail contenant les instructions de récupération a été envoyé.', 'NEW_EMAIL': 'Nouveau courriel', 'FULL_NAME': 'Nom complet', 'OLD_PASSWORD': 'Ancien mot de passe', 'NEW_PASSWORD': 'Nouveau mot de passe', - 'REPEAT_NEW_PASSWORD': 'Répété le nouveau mot de passe', + 'REPEAT_NEW_PASSWORD': 'Répéter le nouveau mot de passe', 'BACK_LOGIN_FORM': 'Retour au formulaire de connexion', 'VIEW_ARTICLES': 'Voir les articles', 'EDIT_PROFILE': 'Editer le profil', 'CLOSE_SESSION': 'Fermer la session', 'CREATE_TICKET': 'Créer un ticket', - 'TICKET_LIST': 'Liste des billets', - 'SUPPORT_CENTER': 'Centre de soutien', - 'DEPARTMENT': 'département', + 'TICKET_LIST': 'Liste des tickets', + 'SUPPORT_CENTER': 'Centre d\'assistance', + 'DEPARTMENT': 'Département', 'AUTHOR': 'Auteur', - 'DATE': 'Rendez-vous amoureux', + 'DATE': 'Date', 'RESPOND': 'Répondre', - 'RESPOND_TICKET': 'Répondre Ticket', + 'RESPOND_TICKET': 'Répondre au ticket', 'NO_ATTACHMENT': 'Aucune pièce jointe', - 'STAFF': 'Personnel', + 'STAFF': 'Administrateur', 'CUSTOMER': 'Client', 'YES': 'Oui', 'NO': 'Non', @@ -41,55 +41,55 @@ export default { 'SETTINGS': 'Paramètres', 'STATISTICS': 'Statistiques', 'LAST_ACTIVITY': 'Dernière Activité', - 'MY_TICKETS': 'Mes billets', - 'NEW_TICKETS': 'Nouveaux billets', - 'ALL_TICKETS': 'Tous les billets', + 'MY_TICKETS': 'Mes tickets', + 'NEW_TICKETS': 'Nouveaux tickets', + 'ALL_TICKETS': 'Tous les tickets', 'CUSTOM_RESPONSES': 'Réponses personnalisées', - 'LIST_USERS': 'Liste des utilisateurs', - 'BAN_USERS': 'Utilisateurs de Ban', - 'LIST_ARTICLES': 'Liste des articles', - 'STAFF_MEMBERS': 'Les membres du personnel', + 'LIST_USERS': 'Voir les utilisateurs', + 'BAN_USERS': 'Bannir des utilisateurs', + 'LIST_ARTICLES': 'Voir les articles', + 'STAFF_MEMBERS': 'Membres de l\'administration', 'DEPARTMENTS': 'Départements', - 'SYSTEM_PREFERENCES': 'Préférences de système', + 'SYSTEM_PREFERENCES': 'Préférences du système', 'ADVANCED_SETTINGS': 'Réglages avancés', 'EMAIL_TEMPLATES': 'Modèles de courrier électronique', 'FILTERS_CUSTOM_FIELDS': 'Filtres et champs personnalisés', 'PRIORITY': 'Priorité', 'NUMBER': 'Nombre', 'HIGH': 'Haute', - 'MEDIUM': 'Moyen', + 'MEDIUM': 'Moyenne', 'LOW': 'Faible', 'TITLE': 'Titre', 'CONTENT': 'Contenu', - 'SAVE': 'sauvegarder', + 'SAVE': 'Enregistrer', 'DISCARD_CHANGES': 'Annuler les modifications', - 'DELETE': 'Effacer', - 'LANGUAGE': 'La langue', - 'OWNER': 'Propriétaire', - 'OWNED': 'Propriétaire', + 'DELETE': 'Supprimer', + 'LANGUAGE': 'Langue', + 'OWNER': 'Assigné à', + 'OWNED': 'Assigné à', 'STATUS': 'Statut', 'NONE': 'Aucun', 'OPENED': 'Ouvert', 'CLOSED': 'Fermé', 'CLOSE': 'Fermer', - 'RE_OPEN': 'Ouvert', - 'ASSIGN_TO_ME': 'Affectez-moi', + 'RE_OPEN': 'Réouvrir', + 'ASSIGN_TO_ME': 'Assignez-moi', 'UN_ASSIGN': 'Désassigner', - 'VIEW_TICKET': 'Voir le billet', - 'VIEW_TICKET_DESCRIPTION': 'Vérifiez l\'état de votre billet en utilisant votre numéro de billet et votre courriel.', + 'VIEW_TICKET': 'Voir le ticket', + 'VIEW_TICKET_DESCRIPTION': 'Vérifiez l\'état de votre ticket en utilisant votre numéro de ticket et votre courriel.', 'SELECT_CUSTOM_RESPONSE': 'Sélectionnez une réponse personnalisée ...', 'WARNING': 'Attention', 'INFO': 'Information', 'ALL_DEPARTMENTS': 'Tous les départements', - 'EMAIL_BANNED': 'Email interdit', - 'UN_BAN': 'Désactiver l\'interdiction', - 'BAN_NEW_EMAIL': ' Interdire un nouveau courriel', - 'BAN_EMAIL': 'Ban email', + 'EMAIL_BANNED': 'Email bannis', + 'UN_BAN': 'Désactiver le ban', + 'BAN_NEW_EMAIL': 'Bannir un nouveau courriel', + 'BAN_EMAIL': 'Bannir l\'email', 'EDIT_EMAIL': 'Modifier l\'email', 'EDIT_PASSWORD': 'Modifier le mot de passe', 'CHANGE_EMAIL': 'Changer l\'e-mail', 'CHANGE_PASSWORD': 'Changer le mot de passe', - 'NAME': 'prénom', + 'NAME': 'Nom', 'SIGNUP_DATE': 'Date d\'inscription', 'SEARCH_USERS': 'Rechercher des utilisateurs ...', 'SEARCH_EMAIL': 'Chercher un email...', @@ -100,129 +100,129 @@ export default { 'COLOR': 'Couleur', 'ADD_NEW_ARTICLE': 'Ajouter un nouvel article', 'ADD_ARTICLE': 'Ajouter un article', - 'LAST_EDITED_IN': 'Dernière modification dans {date}', - 'EDIT': 'modifier', + 'LAST_EDITED_IN': 'Dernière modification le {date}', + 'EDIT': 'Modifier', 'NO_RESULTS': 'Aucun résultat', - 'DELETE_AND_BAN': 'Supprimer et interdire', - 'STAFF_LEVEL': 'Personnel', - 'ASSIGNED': 'Attribué', - 'ASSIGNED_TICKETS': '{tickets} billets assignés', - 'CLOSED_TICKETS': '{tickets} billets fermés', + 'DELETE_AND_BAN': 'Supprimer et bannir', + 'STAFF_LEVEL': 'Niveau d\'administration', + 'ASSIGNED': 'Assigné', + 'ASSIGNED_TICKETS': '{tickets} tickets assignés', + 'CLOSED_TICKETS': '{tickets} tickets fermés', 'LAST_LOGIN': 'Dernière connexion', - 'ADD_NEW_STAFF': 'Ajouter du personnel', - 'ADD_STAFF': 'Ajouter du personnel', + 'ADD_NEW_STAFF': 'Ajouter un nouvel administrateur', + 'ADD_STAFF': 'Ajouter un administrateur', 'LEVEL': 'Niveau', - 'LEVEL_1': 'Niveau 1 (billets)', - 'LEVEL_2': 'Niveau 2 (billets + articles)', - 'LEVEL_3': 'Niveau 3 (billets + articles + personnel)', + 'LEVEL_1': 'Niveau 1 (Tickets)', + 'LEVEL_2': 'Niveau 2 (Tickets + Articles)', + 'LEVEL_3': 'Niveau 3 (Tickets + Articles + Administrateurs)', 'LEVEL_1_DESCRIPTION': 'Ne peut que répondre aux tickets et gérer les utilisateurs.', - 'LEVEL_2_DESCRIPTION': 'Peut faire chaque niveau 1, peut créer ou modifier des articles et il peut créer des réponses personnalisées.', - 'LEVEL_3_DESCRIPTION': 'Peut faire tous les niveaux 2, peut créer ou modifier des membres du personnel et peut gérer l\'ensemble du système.', - 'UPDATE_EMAIL': 'Mettre à jour le courrier électronique', + 'LEVEL_2_DESCRIPTION': 'En plus du niveau 1, peut créer ou modifier des articles et créer des réponses personnalisées.', + 'LEVEL_3_DESCRIPTION': 'En plus du niveau 2, peut créer ou modifier des membres de l\'administration et gérer l\'ensemble du système.', + 'UPDATE_EMAIL': 'Mettre à jour l\'email', 'UPDATE_PASSWORD': 'Mettre à jour le mot de passe', - 'UPDATE_LEVEL': 'Niveau de mise à jour', - 'UPDATE_DEPARTMENTS': 'Mise à jour des départements', - 'EDIT_STAFF': 'Modifier le membre du personnel', + 'UPDATE_LEVEL': 'Mettre à jour le niveau', + 'UPDATE_DEPARTMENTS': 'Mettre à jour les départements', + 'EDIT_STAFF': 'Modifier le membre de l'\administration', 'ADD_DEPARTMENT': 'Ajouter un département', - 'UPDATE_DEPARTMENT': 'Service de mise à jour', - 'TRANSFER_TICKETS_TO': 'Transfert de billets à', - 'COMMENTS': 'commentaires', - 'DELETE_STAFF_MEMBER': 'Supprimer le membre du personnel', + 'UPDATE_DEPARTMENT': 'Mettre à jour le département', + 'TRANSFER_TICKETS_TO': 'Transférer les tickets à', + 'COMMENTS': 'Commentaires', + 'DELETE_STAFF_MEMBER': 'Supprimer le membre de l\'administration', 'MAINTENANCE_MODE': 'Mode de Maintenance', - 'MAINTENANCE_MODE_INFO': 'Il désactivera temporairement le système pour les utilisateurs réguliers.', + 'MAINTENANCE_MODE_INFO': 'Désactive temporairement le système pour les utilisateurs normaux.', 'RECOVER_DEFAULT': 'Récupération par défaut', - 'SUPPORT_CENTER_URL': 'URL du centre de support', - 'SUPPORT_CENTER_TITLE': 'Titre du centre de supporte', - 'SUPPORT_CENTER_LAYOUT': 'Disposition du centre de support', - 'DEFAULT_TIMEZONE': 'Par défaut Timezone (GMT)', - 'NOREPLY_EMAIL': 'aucune réponse email', + 'SUPPORT_CENTER_URL': 'URL du Centre de Support', + 'SUPPORT_CENTER_TITLE': 'Titre du Centre de Support', + 'SUPPORT_CENTER_LAYOUT': 'Disposition du Centre de Support', + 'DEFAULT_TIMEZONE': 'Fuseau horaire par défaut (GMT)', + 'NOREPLY_EMAIL': 'Adresse email "noreply"', 'SMTP_USER': 'Utilisateur SMTP', 'SMTP_SERVER': 'Serveur SMTP', 'SMTP_PASSWORD': 'Mot de passe SMTP', 'PORT': 'Port', - 'RECAPTCHA_PUBLIC_KEY': 'Clé recaptcha poste', - 'RECAPTCHA_PRIVATE_KEY': 'Recaptcha clé privée', - 'ALLOW_FILE_ATTACHMENTS': 'Autoriser les pièces jointes au Fichier', + 'RECAPTCHA_PUBLIC_KEY': 'Clé publique Recaptcha', + 'RECAPTCHA_PRIVATE_KEY': 'Clé privée Recaptcha', + 'ALLOW_FILE_ATTACHMENTS': 'Autoriser les pièces jointes', 'MAX_SIZE_KB': 'Taille Maximale (Ko)', - 'UPDATE_SETTINGS': 'Mettre à jour les paramêtres', + 'UPDATE_SETTINGS': 'Mettre à jour les paramètres', 'DEFAULT_LANGUAGE': 'Langue par défaut', - 'SUPPORTED_LANGUAGES': 'Langues Prises en charges', - 'SUPPORTED_LANGUAGES_INFO': 'Les langues prises en charge sont les langues dans lesquelles les billets peuvent être écrits.', + 'SUPPORTED_LANGUAGES': 'Langues prises en charges', + 'SUPPORTED_LANGUAGES_INFO': 'Les langues prises en charge sont les langues dans lesquelles les tickets peuvent être écrits.', 'ALLOWED_LANGUAGES': 'Langues autorisées', 'ALLOWED_LANGUAGES_INFO': 'Les langues autorisées sont les langues qui peuvent être utilisées par un utilisateur.', 'SETTINGS_UPDATED': 'Les paramètres ont été mis à jour', - 'ON': 'Sur', - 'OFF': 'De', + 'ON': 'Activé', + 'OFF': 'Désactivé', 'BOXED': 'Boîte', 'FULL_WIDTH': 'Pleine largeur', 'LOAD_MORE': 'Charger plus', 'MY_NOTIFICATIONS': 'Mes notifications', 'ALL_NOTIFICATIONS': 'Toutes les notifications', - 'VERIFY_SUCCESS': 'Mot de passe', + 'VERIFY_SUCCESS': 'Utilisateur vérifié', 'VERIFY_FAILED': 'Impossible de vérifier', 'ENABLE_USER_SYSTEM': 'Utiliser le système utilisateur pour les clients', - 'ENABLE_USER_REGISTRATION': 'Activer l\'enregistrement des utilisateurs', - 'INCLUDE_USERS_VIA_CSV': 'Inclure les utilisateurs via le fichier CSV', + 'ENABLE_USER_REGISTRATION': 'Activer l\'inscription des utilisateurs', + 'INCLUDE_USERS_VIA_CSV': 'Inclure des utilisateurs via un fichier CSV', 'BACKUP_DATABASE': 'Base de données de sauvegarde', 'DELETE_ALL_USERS': 'Supprimer tous les utilisateurs', 'PLEASE_CONFIRM_PASSWORD': 'Veuillez confirmer votre mot de passe pour effectuer ces modifications.', - 'REGISTRATION_API_KEYS': 'Clés API d\'enregistrement', + 'REGISTRATION_API_KEYS': 'Clés d\'authentification API', 'NAME_OF_KEY': 'Nom de la clé', 'KEY': 'Clé', 'ADD_API_KEY': 'Ajouter une clé API', 'NO_KEY_SELECTED': 'Aucune clé sélectionnée', - 'CHECK_TICKET': 'Vérifier le billet', + 'CHECK_TICKET': 'Vérifier le ticket', 'ACTIVITY': 'Activité', 'HOME': 'Accueil', - 'TICKET_NUMBER': 'Numéro de billet', - 'NEXT': 'Prochain', + 'TICKET_NUMBER': 'Numéro de ticket', + 'NEXT': 'Suivant', - 'CHART_CREATE_TICKET': 'Billets créés', - 'CHART_CLOSE': 'Billets fermés', + 'CHART_CREATE_TICKET': 'Tickets créés', + 'CHART_CLOSE': 'Tickets fermés', 'CHART_SIGNUP': 'Inscriptions', 'CHART_COMMENT': 'Réponses', - 'CHART_ASSIGN': 'Attribué', + 'CHART_ASSIGN': 'Assignés', //ACTIVITIES - 'ACTIVITY_COMMENT': 'Billet commenté', - 'ACTIVITY_ASSIGN': 'Billet assigné', - 'ACTIVITY_UN_ASSIGN': 'Billet non attribué', - 'ACTIVITY_CLOSE': 'Billet fermé', - 'ACTIVITY_CREATE_TICKET': 'Billet créé', - 'ACTIVITY_RE_OPEN': 'Billet rouvert', - 'ACTIVITY_DEPARTMENT_CHANGED': 'A changé de département de billet', - 'ACTIVITY_PRIORITY_CHANGED': 'Priorité changée du billet', + 'ACTIVITY_COMMENT': 'ticket commenté', + 'ACTIVITY_ASSIGN': 'ticket assigné', + 'ACTIVITY_UN_ASSIGN': 'ticket non assigné', + 'ACTIVITY_CLOSE': 'ticket fermé', + 'ACTIVITY_CREATE_TICKET': 'ticket créé', + 'ACTIVITY_RE_OPEN': 'ticket réouvert', + 'ACTIVITY_DEPARTMENT_CHANGED': 'a changé de département le ticket', + 'ACTIVITY_PRIORITY_CHANGED': 'a changé la priorité du ticket', - 'ACTIVITY_EDIT_SETTINGS': 'Paramètres modifiés', - 'ACTIVITY_SIGNUP': 'signé', - 'ACTIVITY_ADD_TOPIC': 'Sujet ajouté', - 'ACTIVITY_ADD_ARTICLE': 'Article ajouté', - 'ACTIVITY_DELETE_TOPIC': 'Sujet supprimé', - 'ACTIVITY_DELETE_ARTICLE': 'Article supprimé', - 'ACTIVITY_EDIT_ARTICLE': 'Article édité', - 'ACTIVITY_ADD_STAFF': 'Personnel supplémentaire', - 'ACTIVITY_ADD_DEPARTMENT': 'Département ajouté', - 'ACTIVITY_DELETE_DEPARTMENT': 'Département supprimé', - 'ACTIVITY_EDIT_DEPARTMENT': 'Département édité', - 'ACTIVITY_ADD_CUSTOM_RESPONSE': 'Ajout d\'une réponse personnalisée', - 'ACTIVITY_DELETE_CUSTOM_RESPONSE': 'Réponse personnalisée supprimée', - 'ACTIVITY_EDIT_CUSTOM_RESPONSE': 'Réponse personnalisée éditée', - 'ACTIVITY_BAN_USER': 'Utilisateur interdit', - 'ACTIVITY_DELETE_USER': 'utilisateur supprimé', - 'ACTIVITY_UN_BAN_USER': 'Utilisateur interdit', + 'ACTIVITY_EDIT_SETTINGS': 'a modifié les paramètres', + 'ACTIVITY_SIGNUP': 's\'est inscrit', + 'ACTIVITY_ADD_TOPIC': 'a ajouté un sujet', + 'ACTIVITY_ADD_ARTICLE': 'a ajouté un article', + 'ACTIVITY_DELETE_TOPIC': 'a supprimé le sujet', + 'ACTIVITY_DELETE_ARTICLE': 'a supprimé un article', + 'ACTIVITY_EDIT_ARTICLE': 'a modifié un article', + 'ACTIVITY_ADD_STAFF': 'a ajouté un administrateur', + 'ACTIVITY_ADD_DEPARTMENT': 'a ajouté un département', + 'ACTIVITY_DELETE_DEPARTMENT': 'a supprimé le département', + 'ACTIVITY_EDIT_DEPARTMENT': 'a modifié le département', + 'ACTIVITY_ADD_CUSTOM_RESPONSE': 'a ajouté une réponse personnalisée', + 'ACTIVITY_DELETE_CUSTOM_RESPONSE': 'a supprimé une réponse personnalisée', + 'ACTIVITY_EDIT_CUSTOM_RESPONSE': 'a modifié une réponse personnalisée', + 'ACTIVITY_BAN_USER': 'a banni un utilisateur', + 'ACTIVITY_DELETE_USER': 'a supprimé un utilisateur', + 'ACTIVITY_UN_BAN_USER': 'a retiré le ban d\'un utilisateur', 'SERVER_REQUIREMENTS': 'Configuration minimale du serveur', - 'DATABASE_CONFIGURATION': 'Configuration de base de données', + 'DATABASE_CONFIGURATION': 'Configuration de la base de données', 'ADMIN_SETUP': 'Configuration de l\'administrateur', 'COMPLETED': 'Terminé', 'INSTALL_HEADER_TITLE': 'Assistant d\'installation d\'OpenSupports', 'INSTALL_HEADER_DESCRIPTION': 'Cet assistant vous aidera à configurer et à installer OpenSupports sur votre site Web', 'SELECT_LANGUAGE': 'Choisir la langue', - 'REQUIREMENT': 'Exigence', + 'REQUIREMENT': 'Condition requise', 'VALUE': 'Valeur', - 'REFRESH': 'Rafraîchir', + 'REFRESH': 'Actualiser', 'USER_SYSTEM': 'Système utilisateur', - 'PREVIOUS': 'précédent', + 'PREVIOUS': 'Précédent', 'DATABASE_HOST': 'Serveur MySQL', 'DATABASE_NAME': 'Nom de la base de données MySQL', 'DATABASE_USER': 'Utilisateur MySQL', @@ -230,111 +230,111 @@ export default { 'ADMIN_NAME': 'Nom du compte administrateur', 'ADMIN_EMAIL': 'Courriel du compte administrateur', 'ADMIN_PASSWORD': 'Mot de passe administrateur', - 'ADMIN_PASSWORD_DESCRIPTION': 'Rappelez-vous ce mot de passe. Il est nécessaire pour accéder au panneau d\'administration. Vous pouvez le modifier ultérieurement.', - 'INSTALLATION_COMPLETED': 'Installation complétée.', - 'INSTALLATION_COMPLETED_DESCRIPTION': 'L\'installation d\'OpenSupports est terminée. Redirection vers le panneau d\'administration ...', + 'ADMIN_PASSWORD_DESCRIPTION': 'Ne perdez pas ce mot de passe. Il est nécessaire pour accéder au panel d\'administration. Vous pourrez le modifier ultérieurement.', + 'INSTALLATION_COMPLETED': 'Installation terminée.', + 'INSTALLATION_COMPLETED_DESCRIPTION': 'L\'installation d\'OpenSupports est terminée. Redirection vers le panel d\'administration ...', 'STEP_TITLE': 'Étape {current} of {total} - {title}', 'STEP_1_DESCRIPTION': 'Sélectionnez la langue de votre choix pour l\'assistant d\'installation.', - 'STEP_2_DESCRIPTION': 'Voici les conditions requises pour exécuter OpenSupports. Assurez-vous que toutes les exigences sont satisfaites.', + 'STEP_2_DESCRIPTION': 'Voici les conditions requises pour exécuter OpenSupports. Assurez-vous que toutes les conditions requises soient satisfaites.', 'STEP_3_DESCRIPTION': 'Veuillez remplir la configuration de la base de données MySQL.', 'STEP_4_DESCRIPTION': 'Veuillez sélectionner les préférences de votre système utilisateur.', 'STEP_5_DESCRIPTION': 'Veuillez configurer le compte administrateur.', 'STEP_6_DESCRIPTION': 'L\'installation est terminée.', //VIEW DESCRIPTIONS - 'CREATE_TICKET_DESCRIPTION': 'Il s\'agit d\'un formulaire de création de billets. Remplissez le formulaire et envoyez-nous vos questions / doutes / suggestions. Notre système de support répondra le plus rapidement possible.', - 'TICKET_LIST_DESCRIPTION': 'Vous trouverez ici une liste de tous les billets que vous avez envoyés à notre équipe d\'assistance.', + 'CREATE_TICKET_DESCRIPTION': 'Il s\'agit d\'un formulaire de création de tickets. Remplissez le formulaire et envoyez-nous vos questions / doutes / suggestions. Notre système de support répondra le plus rapidement possible.', + 'TICKET_LIST_DESCRIPTION': 'Vous trouverez ici une liste de tous les tickets que vous avez envoyés à notre équipe d\'assistance.', 'TICKETS_DESCRIPTION': 'Envoyez un ticket via notre centre de support et recevez la réponse de vos doutes, suggestions et problèmes.', - 'ARTICLES_DESCRIPTION': 'Jetez un coup d\'oeil à nos articles sur les questions communes, les guides et la documentation.', - 'ACCOUNT_DESCRIPTION': 'Tous vos billets sont stockés dans le profil de votre compte. Gardez une trace de tous vos billets que vous envoyez à notre équipe.', - 'SUPPORT_CENTER_DESCRIPTION': 'Bienvenue dans notre centre de support. Vous pouvez nous contacter via un système de tickets. Vos billets seront répondu par notre personnel.', - 'CUSTOM_RESPONSES_DESCRIPTION': 'Les réponses personnalisées sont des réponses automatisées pour des problèmes communs', - 'MY_TICKETS_DESCRIPTION': 'Ici, vous pouvez afficher les billets dont vous êtes responsable.', - 'NEW_TICKETS_DESCRIPTION': 'Ici, vous pouvez afficher tous les nouveaux billets qui ne sont pas attribués par quiconque.', - 'ALL_TICKETS_DESCRIPTION': 'Ici, vous pouvez afficher les billets des départements que vous avez affectés.', - 'TICKET_VIEW_DESCRIPTION': 'Ce billet a été envoyé par un client. Ici vous pouvez répondre ou assigner le billet', - 'BAN_USERS_DESCRIPTION': 'Ici, vous pouvez voir une liste d\'e-mails interdits, vous pouvez les interdire ou les ajouter à la liste.', - 'LIST_USERS_DESCRIPTION': 'Il s\'agit de la liste des utilisateurs enregistrés sur cette plate-forme. Vous pouvez rechercher quelqu\'un en particulier, le supprimer ou l\'interdire.', - 'USER_VIEW_DESCRIPTION': 'Ici vous pouvez trouver toutes les informations sur un utilisateur et tous les billets envoyés par l\'utilisateur. Vous pouvez également supprimer ou interdire.', - 'DELETE_USER_DESCRIPTION': 'L\'utilisateur ne sera pas en mesure de se connecter au vieillissement et tous ses billets seront effacés. En outre, le courrier électronique ne peut plus être utilisé.', - 'DELETE_TOPIC_DESCRIPTION': 'En supprimant le sujet, tous les articles sur ce sujet seront effacés.', + 'ARTICLES_DESCRIPTION': 'Jetez un coup d\'oeil à nos articles sur les questions courantes, les guides et la documentation.', + 'ACCOUNT_DESCRIPTION': 'Tous vos tickets sont stockés dans le profil de votre compte. Gardez une trace de tous vos tickets que vous envoyez à notre équipe.', + 'SUPPORT_CENTER_DESCRIPTION': 'Bienvenue dans notre centre de support. Vous pouvez nous contacter via un système de tickets. Notre équipe d\'assistance répondra à vos tickets.', + 'CUSTOM_RESPONSES_DESCRIPTION': 'Les réponses personnalisées sont des réponses automatisées pour des problèmes courants', + 'MY_TICKETS_DESCRIPTION': 'Ici, vous pouvez afficher les tickets dont vous êtes responsable.', + 'NEW_TICKETS_DESCRIPTION': 'Ici, vous pouvez afficher tous les nouveaux tickets qui n'ont pas été attribués.', + 'ALL_TICKETS_DESCRIPTION': 'Ici, vous pouvez afficher les tickets assignés aux départements auxquels vous appartenez.', + 'TICKET_VIEW_DESCRIPTION': 'Ce ticket a été envoyé par un client. Ici vous pouvez répondre ou assigner ce ticket', + 'BAN_USERS_DESCRIPTION': 'Ici, vous pouvez voir la liste des e-mails qui ont été bannis. Vous pouvez en ajouter de nouveaux ou en supprimer de la liste.', + 'LIST_USERS_DESCRIPTION': 'Il s\'agit de la liste des utilisateurs enregistrés sur cette plate-forme. Vous pouvez rechercher quelqu\'un en particulier, le supprimer ou le bannir.', + 'USER_VIEW_DESCRIPTION': 'Ici vous pouvez trouver toutes les informations sur un utilisateur et tous les tickets envoyés par cet utilisateur. Vous pouvez également le supprimer ou le bannir.', + 'DELETE_USER_DESCRIPTION': 'L\'utilisateur ne sera plus en mesure de se connecter et tous ses tickets seront effacés. En outre, le courrier électronique ne pourra plus être utilisé.', + 'DELETE_TOPIC_DESCRIPTION': 'En supprimant le sujet, tous les articles correspondants seront effacés.', 'EDIT_TOPIC_DESCRIPTION': 'Ici, vous pouvez changer le nom, l\'icône et la couleur de l\'icône du sujet.', - 'ADD_ARTICLE_DESCRIPTION': 'Ici vous pouvez ajouter un article qui sera disponible pour chaque utilisateur. Il sera ajouté à l\'intérieur de la catégorie {category}.', - 'LIST_ARTICLES_DESCRIPTION': 'Il s\'agit d\'une liste d\'articles qui comprend des informations sur nos services.', + 'ADD_ARTICLE_DESCRIPTION': 'Ici vous pouvez ajouter un article qui sera disponible pour tous les utilisateurs. Il sera ajouté à l\'intérieur de la catégorie {category}.', + 'LIST_ARTICLES_DESCRIPTION': 'Il s\'agit d\'une liste d\'articles comprenant des informations sur nos services.', 'ADD_TOPIC_DESCRIPTION': 'Ici, vous pouvez ajouter un sujet qui fonctionne comme une catégorie pour les articles.', - 'DELETE_ARTICLE_DESCRIPTION': 'Vous allez supprimer cet article pour toujours.', - 'STAFF_MEMBERS_DESCRIPTION': 'Ici, vous pouvez voir qui sont vos membres du personnel.', - 'ADD_STAFF_DESCRIPTION': 'Ici, vous pouvez ajouter des membres du personnel à vos équipes.', - 'EDIT_STAFF_DESCRIPTION': 'Ici, vous pouvez modifier des informations sur un membre du personnel.', + 'DELETE_ARTICLE_DESCRIPTION': 'Vous êtes sur le point de supprimer cet article définitivement.', + 'STAFF_MEMBERS_DESCRIPTION': 'Ici, vous pouvez voir qui sont vos membres de l\'administation.', + 'ADD_STAFF_DESCRIPTION': 'Ici, vous pouvez ajouter des membres de l\'administration à vos équipes.', + 'EDIT_STAFF_DESCRIPTION': 'Ici, vous pouvez modifier des informations sur un membre de l\'administration.', 'MY_ACCOUNT_DESCRIPTION': 'Ici, vous pouvez modifier des informations vous concernant.', - 'DEPARTMENTS_DESCRIPTION': 'Un département est un groupe où les billets peuvent aller. Ils sont utilisés pour catégoriser les billets. Vous pouvez les affecter à d\'autres membres du personnel.', + 'DEPARTMENTS_DESCRIPTION': 'Un département est un groupe où les tickets peuvent être assignés. Ils sont utilisés pour catégoriser les tickets. Vous pouvez les assigner à d\'autres administrateurs.', 'MAINTENANCE_MODE_DESCRIPTION': 'Le système de support est en mode maintenance, donc indisponible pour le moment. Nous reviendrons dès que possible.', - 'EMAIL_TEMPLATES_DESCRIPTION': 'Ici, vous pouvez modifier les modèles des e-mails qui seront envoyés aux utilisateurs. N\'oubliez pas que les doubles parenthèses des accolades indiquent une valeur variable. Par exemple, \'nom\' représente le nom de l\'utilisateur.', + 'EMAIL_TEMPLATES_DESCRIPTION': 'Ici, vous pouvez modifier les modèles des e-mails qui seront envoyés aux utilisateurs. N\'oubliez pas que les doubles accolades indiquent une valeur variable. Par exemple, \'nom\' représente le nom de l\'utilisateur.', 'SYSTEM_PREFERENCES_DESCRIPTION': 'Ici, vous pouvez modifier les préférences du système.', 'VERIFY_SUCCESS_DESCRIPTION': 'Votre utilisateur a été correctement vérifié. Vous pouvez vous connecter maintenant.', 'VERIFY_FAILED_DESCRIPTION': 'La vérification n\'a pas pu être effectuée.', - 'STATISTICS_DESCRIPTION': 'Ici, vous pouvez afficher les statistiques relatives aux billets et inscriptions..', - 'ADVANCED_SETTINGS_DESCRIPTION': 'Ici, vous pouvez modifier les paramètres avancés de votre système. Attention, les modifications que vous effectuez ne peuvent pas être inversées.', + 'STATISTICS_DESCRIPTION': 'Ici, vous pouvez afficher les statistiques relatives aux tickets et inscriptions.', + 'ADVANCED_SETTINGS_DESCRIPTION': 'Ici, vous pouvez modifier les paramètres avancés de votre système. Attention, les modifications que vous effectuez sont irréversibles.', 'USER_SYSTEM_DISABLED': 'Le système utilisateur a été désactivé', 'USER_SYSTEM_ENABLED': 'Le système utilisateur a été activé', - 'REGISTRATION_DISABLED': 'L\'enregistrement a été désactivé', - 'REGISTRATION_ENABLED': 'L\'enregistrement a été activé', - 'ADD_API_KEY_DESCRIPTION': 'Insérer le nom et générer une clé api d\'enregistrement.', - 'SIGN_UP_VIEW_DESCRIPTION': 'Vous pouvez créer un compte pour notre centre de support. Il est nécessaire pour envoyer des billets et voir la documentation.', + 'REGISTRATION_DISABLED': 'L\'inscription a été désactivé', + 'REGISTRATION_ENABLED': 'L\'inscription a été activé', + 'ADD_API_KEY_DESCRIPTION': 'Insérer le nom et générer une clé api d\'authentification.', + 'SIGN_UP_VIEW_DESCRIPTION': 'Ici, vous pouvez créer un compte pour notre centre de support. Il est nécessaire pour soumettre des tickets et voir la documentation.', 'EDIT_PROFILE_VIEW_DESCRIPTION': 'Ici, vous pouvez modifier votre utilisateur en changeant votre adresse e-mail ou votre mot de passe.', 'ENABLE_USER_SYSTEM_DESCRIPTION': 'Activer / désactiver l\'utilisation d\'un système utilisateur. Si vous le désactivez, tous les utilisateurs seront supprimés, mais les tickets seront conservés. Si vous l\'activez, les utilisateurs des tickets existants seront créés.', 'CSV_DESCRIPTION': 'Le fichier CSV doit comporter 3 colonnes: email, mot de passe, nom. Il n\'y a pas de limite dans le nombre de lignes. Il sera créé un utilisateur par ligne dans le fichier.', //ERRORS - 'EMAIL_OR_PASSWORD': 'E-mail ou mot de passe non valide', + 'EMAIL_OR_PASSWORD': 'E-mail ou mot de passe invalide', 'EMAIL_NOT_EXIST': 'Le courriel n\'existe pas', - 'ERROR_EMPTY': 'valeur invalide', + 'ERROR_EMPTY': 'Valeur invalide', 'ERROR_PASSWORD': 'Mot de passe incorrect', 'ERROR_NAME': 'Nom incorrect', - 'ERROR_TITLE': 'Titre invalide', + 'ERROR_TITLE': 'Titre incorrect', 'ERROR_EMAIL': 'Email invalide', 'ERROR_CONTENT_SHORT': 'Contenu trop court', 'PASSWORD_NOT_MATCH': 'Le mot de passe ne correspond pas', 'INVALID_RECOVER': 'Données de récupération non valides', - 'TICKET_SENT_ERROR': 'Une erreur s\'est produite lors de la tentative de création le billet.', + 'TICKET_SENT_ERROR': 'Une erreur s\'est produite lors de la création du ticket.', 'TICKET_COMMENT_ERROR': 'Une erreur s\'est produite lors de l\'ajout du commentaire.', 'NO_PERMISSION': 'Vous n\'êtes pas autorisé à accéder à cette page.', 'INVALID_USER': 'L\'identifiant d\'utilisateur n\'est pas valide', 'ERROR_RETRIEVING_TICKETS': 'Une erreur s\'est produite lors de la récupération des tickets.', - 'ERROR_RETRIEVING_USERS': 'Une erreur s\'est produite lors de la tentative de récupération des utilisateurs.', - 'ERROR_RETRIEVING_BAN_LIST': 'Une erreur s\'est produite lors de la récupération de la liste des e-mails interdits.', + 'ERROR_RETRIEVING_USERS': 'Une erreur s\'est produite lors de la récupération des utilisateurs.', + 'ERROR_RETRIEVING_BAN_LIST': 'Une erreur s\'est produite lors de la récupération de la liste des e-mails bannis.', 'ERROR_BANNING_EMAIL': 'Une erreur s\'est produite lors de la tentative d\'interdiction du courrier électronique.', - 'ERROR_RETRIEVING_ARTICLES': 'Une erreur s\'est produite lors de la tentative de récupération d\'articles.', - 'ERROR_LIST': 'Sélectionnez au moins un', + 'ERROR_RETRIEVING_ARTICLES': 'Une erreur s\'est produite lors de la récupération des articles.', + 'ERROR_LIST': 'Sélectionnez-en au moins un', 'ERROR_URL': 'URL invalide', 'UNVERIFIED_EMAIL': 'Le courriel n\'a pas encore été validé', - 'ERROR_UPDATING_SETTINGS': 'Une erreur s\'est produite lors de la tentative de mise à jour des paramètres', - 'INVALID_EMAIL_OR_TICKET_NUMBER': 'Numéro de courriel ou de billet incorrect', - 'INVALID_FILE': 'Fichier non valide', - 'ERRORS_FOUND': 'Erreurs trouvées', + 'ERROR_UPDATING_SETTINGS': 'Une erreur s\'est produite lors de la mise à jour des paramètres', + 'INVALID_EMAIL_OR_TICKET_NUMBER': 'Numéro de courriel ou de ticket invalide', + 'INVALID_FILE': 'Fichier invalide', + 'ERRORS_FOUND': 'Des erreurs sont survenues', //MESSAGES - 'SIGNUP_SUCCESS': 'Vous êtes enregistré avec succès dans notre système de support.', + 'SIGNUP_SUCCESS': 'Vous êtes inscrit avec succès dans notre système de support.', 'TICKET_SENT': 'Le ticket a été créé avec succès.', 'VALID_RECOVER': 'Mot de passe récupéré avec succès', - 'EMAIL_EXISTS': 'l\'email existe déjà', - 'ARE_YOU_SURE': 'Êtes-vous sûr?', + 'EMAIL_EXISTS': 'L\'email existe déjà', + 'ARE_YOU_SURE': 'Êtes-vous sûr ?', 'EMAIL_WILL_CHANGE': 'L\'e-mail actuel sera modifié', 'PASSWORD_WILL_CHANGE': 'Le mot de passe actuel sera modifié', 'EMAIL_CHANGED': 'Le courrier électronique a été modifié avec succès', 'PASSWORD_CHANGED': 'Le mot de passe a été modifié avec succès', - 'OLD_PASSWORD_INCORRECT': 'Ancien mot de passe est incorrect', - 'WILL_LOSE_CHANGES': 'Vous n\'avez pas épargné. Vos modifications seront perdues.', + 'OLD_PASSWORD_INCORRECT': 'Ancien mot de passe incorrect', + 'WILL_LOSE_CHANGES': 'Vous n\'avez pas enregistrés vos modifications. Ces dernières seront perdues.', 'WILL_DELETE_CUSTOM_RESPONSE': 'La réponse personnalisée sera supprimée.', - 'WILL_DELETE_DEPARTMENT': 'Le département sera supprimé. Tous les billets seront transférés au département sélectionné.', - 'NO_STAFF_ASSIGNED': 'Aucun membre du personnel n\'est affecté à ce service.', - 'LEVEL_UPDATED': 'Niveau a été mis à jour avec succès.', + 'WILL_DELETE_DEPARTMENT': 'Le département sera supprimé. Tous les tickets seront transférés au département sélectionné.', + 'NO_STAFF_ASSIGNED': 'Aucun membre de l\'administration n\'est affecté à ce service.', + 'LEVEL_UPDATED': 'Le niveau a été mis à jour avec succès.', 'DEPARTMENTS_UPDATED': 'Les départements ont été mis à jour avec succès.', - 'FAILED_EDIT_STAFF': 'Une erreur s\'est produite lors de la tentative de modification du membre du personnel.', - 'EMAIL_BANNED_SUCCESSFULLY': 'Le courriel a été interdit avec succès', - 'WILL_DELETE_STAFF': 'Ce membre du personnel sera supprimé et tous ses billets seront non affectés.', - 'WILL_RECOVER_EMAIL_TEMPLATE': 'Ce modèle de courrier électronique récupérera sa valeur par défaut sur cette langue.', + 'FAILED_EDIT_STAFF': 'Une erreur s\'est produite lors de la tentative de modification de l\'administrateur.', + 'EMAIL_BANNED_SUCCESSFULLY': 'Le courriel a été banni avec succès', + 'WILL_DELETE_STAFF': 'Cet administrateur sera supprimé et tous ses tickets ne seront plus assignés.', + 'WILL_RECOVER_EMAIL_TEMPLATE': 'Ce modèle de courrier électronique sera réinitialisé à sa valeur par défaut pour cette langue.', 'SUCCESS_IMPORTING_CSV_DESCRIPTION': 'Le fichier CSV a été importé avec succès', 'SUCCESS_DELETING_ALL_USERS': 'Les utilisateurs ont été supprimés avec succès', @@ -343,17 +343,17 @@ export default { 'LAST_90_DAYS': 'Les 90 derniers jours', 'LAST_365_DAYS': 'Les 365 derniers jours', - 'ACTIVITY_COMMENT_THIS': 'commenté ce ticket', - 'ACTIVITY_ASSIGN_THIS': 'assigné ce ticket', - 'ACTIVITY_UN_ASSIGN_THIS': 'non affecté ce ticket', - 'ACTIVITY_CLOSE_THIS': 'fermé ce ticket', - 'ACTIVITY_CREATE_TICKET_THIS': 'créé ce ticket', - 'ACTIVITY_RE_OPEN_THIS': 'rouvert ce ticket', - 'ACTIVITY_DEPARTMENT_CHANGED_THIS': 'changement de département de ce ticket vers', - 'ACTIVITY_PRIORITY_CHANGED_THIS': 'priorité changée de ce ticket vers', + 'ACTIVITY_COMMENT_THIS': 'a commenté ce ticket', + 'ACTIVITY_ASSIGN_THIS': 'a assigné ce ticket', + 'ACTIVITY_UN_ASSIGN_THIS': 'a supprimé l\'assignation de ce ticket', + 'ACTIVITY_CLOSE_THIS': 'a fermé ce ticket', + 'ACTIVITY_CREATE_TICKET_THIS': 'a créé ce ticket', + 'ACTIVITY_RE_OPEN_THIS': 'a réouvert ce ticket', + 'ACTIVITY_DEPARTMENT_CHANGED_THIS': 'a changé le département de ce ticket pour', + 'ACTIVITY_PRIORITY_CHANGED_THIS': 'a changé la priorité de ce ticket pour', 'DATE_PREFIX': 'le', - 'LEFT_EMPTY_DATABASE': 'Gauche vide pour la création automatique de la base de données', - 'REMEMBER_ME': 'Rappelles toi', + 'LEFT_EMPTY_DATABASE': 'Laisser vide pour la création automatique de la base de données', + 'REMEMBER_ME': 'Se souvenir de moi', 'EMAIL_LOWERCASE': 'email', 'PASSWORD_LOWERCASE': 'mot de passe' }; From c5292fc432948cd9dd2291e2e58b2dc25ca267c9 Mon Sep 17 00:00:00 2001 From: Kallys Date: Fri, 5 May 2017 15:42:56 +0200 Subject: [PATCH 3/9] Fix typo --- client/src/data/languages/fr.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/data/languages/fr.js b/client/src/data/languages/fr.js index ffe3230f..7c35bbc3 100644 --- a/client/src/data/languages/fr.js +++ b/client/src/data/languages/fr.js @@ -122,7 +122,7 @@ export default { 'UPDATE_PASSWORD': 'Mettre à jour le mot de passe', 'UPDATE_LEVEL': 'Mettre à jour le niveau', 'UPDATE_DEPARTMENTS': 'Mettre à jour les départements', - 'EDIT_STAFF': 'Modifier le membre de l'\administration', + 'EDIT_STAFF': 'Modifier le membre de l\'administration', 'ADD_DEPARTMENT': 'Ajouter un département', 'UPDATE_DEPARTMENT': 'Mettre à jour le département', 'TRANSFER_TICKETS_TO': 'Transférer les tickets à', @@ -232,7 +232,7 @@ export default { 'ADMIN_PASSWORD': 'Mot de passe administrateur', 'ADMIN_PASSWORD_DESCRIPTION': 'Ne perdez pas ce mot de passe. Il est nécessaire pour accéder au panel d\'administration. Vous pourrez le modifier ultérieurement.', 'INSTALLATION_COMPLETED': 'Installation terminée.', - 'INSTALLATION_COMPLETED_DESCRIPTION': 'L\'installation d\'OpenSupports est terminée. Redirection vers le panel d\'administration ...', + 'INSTALLATION_COMPLETED_DESCRIPTION': 'L\'installation d\'OpenSupports est terminée. Redirection vers le panel d\'administration...', 'STEP_TITLE': 'Étape {current} of {total} - {title}', 'STEP_1_DESCRIPTION': 'Sélectionnez la langue de votre choix pour l\'assistant d\'installation.', @@ -251,7 +251,7 @@ export default { 'SUPPORT_CENTER_DESCRIPTION': 'Bienvenue dans notre centre de support. Vous pouvez nous contacter via un système de tickets. Notre équipe d\'assistance répondra à vos tickets.', 'CUSTOM_RESPONSES_DESCRIPTION': 'Les réponses personnalisées sont des réponses automatisées pour des problèmes courants', 'MY_TICKETS_DESCRIPTION': 'Ici, vous pouvez afficher les tickets dont vous êtes responsable.', - 'NEW_TICKETS_DESCRIPTION': 'Ici, vous pouvez afficher tous les nouveaux tickets qui n'ont pas été attribués.', + 'NEW_TICKETS_DESCRIPTION': 'Ici, vous pouvez afficher tous les nouveaux tickets qui n\'ont pas été attribués.', 'ALL_TICKETS_DESCRIPTION': 'Ici, vous pouvez afficher les tickets assignés aux départements auxquels vous appartenez.', 'TICKET_VIEW_DESCRIPTION': 'Ce ticket a été envoyé par un client. Ici vous pouvez répondre ou assigner ce ticket', 'BAN_USERS_DESCRIPTION': 'Ici, vous pouvez voir la liste des e-mails qui ont été bannis. Vous pouvez en ajouter de nouveaux ou en supprimer de la liste.', From 51dc76b3861ff19c4c5ceba606d75589cb0619e6 Mon Sep 17 00:00:00 2001 From: Guillermo Giuliana Date: Mon, 8 May 2017 01:34:01 -0300 Subject: [PATCH 4/9] Update de.js algunas cosas tenian que malir sal --- client/src/data/languages/de.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/data/languages/de.js b/client/src/data/languages/de.js index 6964d5f9..2cebb03d 100644 --- a/client/src/data/languages/de.js +++ b/client/src/data/languages/de.js @@ -12,8 +12,8 @@ export default { 'FORGOT_PASSWORD': 'Passwort vergessen?', 'RECOVER_PASSWORD': 'Passwort wiederherstellen', 'RECOVER_SENT': 'Eine E-Mail mit Wiederherstellungs Anweisungen wurde gesendet.', - 'NEW_EMAIL': 'नई ईमेल', - 'FULL_NAME': 'पूरा नाम', + 'NEW_EMAIL': 'Neue e-mail', + 'FULL_NAME': 'vollständiger Name', 'OLD_PASSWORD': 'Altes Passwort', 'NEW_PASSWORD': 'Neues Passwort', 'REPEAT_NEW_PASSWORD': 'Wiederhole das neue Passwort', From cb0cb7e16aeedd26b959ef18de41da8c7cd218dd Mon Sep 17 00:00:00 2001 From: ivan Date: Thu, 11 May 2017 00:33:32 -0300 Subject: [PATCH 5/9] Ivan - Create API documentation json. --- server/API_STANDARD.md | 38 ++++++++++++++++++++++++++++++++++++++ server/apidoc.json | 10 ++++++++++ 2 files changed, 48 insertions(+) create mode 100644 server/API_STANDARD.md create mode 100644 server/apidoc.json diff --git a/server/API_STANDARD.md b/server/API_STANDARD.md new file mode 100644 index 00000000..29b94a79 --- /dev/null +++ b/server/API_STANDARD.md @@ -0,0 +1,38 @@ +OpenSupports can work completely fine without a frontend. You could only use this API to manage the system. +This documentation is intended for application developers who are looking to integrate OpenSupports with other applications. + +## Request/Response Interface +The API server is located in the `api/` folder of your OpenSupports' instance folder. +**All the requests must be done via POST method**, with the exception of the path `/system/download`. + +The response object has the following JSON structure: + +``` +{ + status: ["success"/"fail"], + message: [String], + data: [Object/Array/String] +} +``` + +* `status` indicates `"success"` if the request succeeded, else contains `"fail"` +* `message` contains the message in case of failure. +* `data` contains the returned data of the request. + +For each path, we will document first the *Parameters*, then the *success* content of the property `data`, and finally the possible error messages it can return. + +## Session Permissions +Some paths will not work if you're not logged in. +All paths have documented a *"Permission"* that can be: +* *any:* anyone can do a request, even if it's not logged in. +* *user:* only logged regular users can do the request. +* *staff1:* only a logged staff member with at least level 1 can do the request. +* *staff2:* only a logged staff member with at least level 2 can do the request. +* *staff3:* only a logged staff member with at least level 3 can do the request. + +To login, user or staff, you have to make a request to [/user/login](#api-User-Login) +This request will return you the session data with an `userId` and a `token`. You will use these to validate the session every time you make a request that requires a logged user. + +**All the paths that have permission `user`, `staff1`, `staff2` or `staff3`, require *userId* and *token* to be passed as parameter**. You need to pass them as `csrf_userid` and `csrf_token` respectively. + +If you don't pass the userId and token, a `NO_PERMISSION` error will be returned. \ No newline at end of file diff --git a/server/apidoc.json b/server/apidoc.json new file mode 100644 index 00000000..589e0216 --- /dev/null +++ b/server/apidoc.json @@ -0,0 +1,10 @@ +{ + "name": "OpenSupports API Documentation", + "version": "4.0.0", + "title": "OpenSupports API Documentation", + "description": "Backend API documentation for developers.", + "header": { + "title": "API Standards", + "filename": "API_STANDARD.md" + } +} \ No newline at end of file From 145b73b3c85a7188f663fc9561adf6d518d6c19a Mon Sep 17 00:00:00 2001 From: ivan Date: Thu, 11 May 2017 16:37:03 -0300 Subject: [PATCH 6/9] Ivan - Update model documentations. --- server/models/APIKey.php | 1 + server/models/Article.php | 1 + server/models/Ban.php | 5 +++-- server/models/CustomResponse.php | 1 + server/models/Department.php | 7 ++++--- server/models/Log.php | 7 ++++--- server/models/MailTemplate.php | 1 + server/models/Staff.php | 16 ++++++++-------- server/models/Stat.php | 7 ++++--- server/models/Ticket.php | 11 ++++++----- server/models/Ticketevent.php | 5 +++-- server/models/Topic.php | 1 + server/models/User.php | 3 ++- 13 files changed, 39 insertions(+), 27 deletions(-) diff --git a/server/models/APIKey.php b/server/models/APIKey.php index a20cf11d..1094b4db 100755 --- a/server/models/APIKey.php +++ b/server/models/APIKey.php @@ -1,6 +1,7 @@ Date: Fri, 12 May 2017 01:58:40 -0300 Subject: [PATCH 7/9] Ivan - Update controller documentations --- server/API_STANDARD.md | 4 ++- server/controllers/article/add-topic.php | 7 +++-- server/controllers/article/add.php | 9 +++--- server/controllers/article/delete-topic.php | 7 +++-- server/controllers/article/delete.php | 11 +++---- server/controllers/article/edit-topic.php | 13 +++++---- server/controllers/article/edit.php | 17 ++++++----- server/controllers/article/get-all.php | 7 +++-- server/controllers/staff/add.php | 13 +++++---- server/controllers/staff/assign-ticket.php | 7 +++-- server/controllers/staff/delete.php | 9 +++--- server/controllers/staff/edit.php | 19 ++++++------ server/controllers/staff/get-all-tickets.php | 17 ++++++----- server/controllers/staff/get-all.php | 9 +++--- server/controllers/staff/get-new-tickets.php | 11 +++---- server/controllers/staff/get-tickets.php | 9 +++--- server/controllers/staff/get.php | 13 +++++---- server/controllers/staff/last-events.php | 11 +++---- server/controllers/staff/search-tickets.php | 13 +++++---- server/controllers/staff/un-assign-ticket.php | 9 +++--- server/controllers/system/add-api-key.php | 15 +++++----- server/controllers/system/add-department.php | 7 +++-- server/controllers/system/backup-database.php | 9 +++--- .../controllers/system/check-requirements.php | 7 +++-- server/controllers/system/csv-import.php | 9 +++--- .../controllers/system/delete-all-users.php | 9 +++--- server/controllers/system/delete-api-key.php | 13 +++++---- .../controllers/system/delete-department.php | 11 +++---- .../system/disable-registration.php | 9 +++--- .../system/disable-user-system.php | 9 +++--- server/controllers/system/download.php | 19 ++++++++++++ server/controllers/system/edit-department.php | 10 +++---- .../controllers/system/edit-mail-template.php | 7 +++-- server/controllers/system/edit-settings.php | 9 +++--- .../system/enable-registration.php | 9 +++--- .../controllers/system/enable-user-system.php | 9 +++--- server/controllers/system/get-api-keys.php | 13 +++++---- server/controllers/system/get-logs.php | 9 +++--- .../controllers/system/get-mail-templates.php | 9 +++--- server/controllers/system/get-settings.php | 9 +++--- server/controllers/system/get-stats.php | 9 +++--- server/controllers/system/init-admin.php | 7 +++-- server/controllers/system/init-database.php | 25 ++++++++++++++++ server/controllers/system/init-settings.php | 24 +++++++++++++++ .../controllers/system/installation-done.php | 16 ++++++++++ .../system/recover-mail-template.php | 13 +++++---- .../ticket/add-custom-response.php | 7 +++-- .../controllers/ticket/change-department.php | 9 +++--- server/controllers/ticket/change-priority.php | 7 +++-- server/controllers/ticket/check.php | 7 +++-- server/controllers/ticket/close.php | 5 ++-- server/controllers/ticket/comment.php | 10 +++---- server/controllers/ticket/create.php | 7 +++-- .../ticket/delete-custom-response.php | 6 ++-- .../ticket/edit-custom-response.php | 13 +++++---- .../ticket/get-custom-responses.php | 7 +++-- server/controllers/ticket/get.php | 8 ++--- server/controllers/ticket/re-open.php | 7 +++-- server/controllers/ticket/seen.php | 9 +++--- server/controllers/user/ban.php | 9 +++--- server/controllers/user/check-session.php | 11 +++---- server/controllers/user/delete.php | 9 +++--- server/controllers/user/edit-email.php | 9 +++--- server/controllers/user/edit-password.php | 9 +++--- server/controllers/user/get-user.php | 11 +++---- server/controllers/user/get-users.php | 13 +++++---- server/controllers/user/get.php | 13 +++++---- server/controllers/user/list-ban.php | 9 +++--- server/controllers/user/login.php | 29 ++++++++++--------- server/controllers/user/logout.php | 7 +++-- server/controllers/user/recover-password.php | 9 +++--- .../user/send-recover-password.php | 11 +++---- server/controllers/user/signup.php | 15 +++++----- server/controllers/user/un-ban.php | 9 +++--- server/controllers/user/verify.php | 9 +++--- 75 files changed, 473 insertions(+), 321 deletions(-) diff --git a/server/API_STANDARD.md b/server/API_STANDARD.md index 29b94a79..d7ebb5d5 100644 --- a/server/API_STANDARD.md +++ b/server/API_STANDARD.md @@ -35,4 +35,6 @@ This request will return you the session data with an `userId` and a `token`. Yo **All the paths that have permission `user`, `staff1`, `staff2` or `staff3`, require *userId* and *token* to be passed as parameter**. You need to pass them as `csrf_userid` and `csrf_token` respectively. -If you don't pass the userId and token, a `NO_PERMISSION` error will be returned. \ No newline at end of file +If you don't pass the userId and token, a `NO_PERMISSION` error will be returned. + +Additionally, if there is no users (only staff members), you can check a ticket you created by providing your email and the ticketNumber to the `/ticket/check` path. This path will return you a `token` and `ticketNumber` you will use to comment, retrieve, or do any other operations to the ticket. diff --git a/server/controllers/article/add-topic.php b/server/controllers/article/add-topic.php index b5abee2e..5b30bf77 100755 --- a/server/controllers/article/add-topic.php +++ b/server/controllers/article/add-topic.php @@ -3,15 +3,16 @@ use Respect\Validation\Validator as DataValidator; DataValidator::with('CustomValidations', true); /** - * @api {post} /article/add-topic Add a new topic. + * @api {post} /article/add-topic Add topic + * @apiVersion 4.0.0 * * @apiName Add topic * - * @apiGroup article + * @apiGroup Article * * @apiDescription This path adds a new topic. * - * @apiPermission Staff level 2 + * @apiPermission staff2 * * @apiParam {String} name Name of the new topic. * @apiParam {String} icon Icon of the new topic. diff --git a/server/controllers/article/add.php b/server/controllers/article/add.php index 9addb9dc..2f1b250a 100755 --- a/server/controllers/article/add.php +++ b/server/controllers/article/add.php @@ -3,15 +3,16 @@ use Respect\Validation\Validator as DataValidator; DataValidator::with('CustomValidations', true); /** - * @api {post} /article/add Add a article. + * @api {post} /article/add Add article + * @apiVersion 4.0.0 * - * @apiName Add + * @apiName Add article * - * @apiGroup article + * @apiGroup Article * * @apiDescription This path adds a new article. * - * @apiPermission Staff level 2 + * @apiPermission staff2 * * @apiParam {String} title Title of the new article. * @apiParam {String} content Content of the new article. diff --git a/server/controllers/article/delete-topic.php b/server/controllers/article/delete-topic.php index 18bbe396..18bd628d 100755 --- a/server/controllers/article/delete-topic.php +++ b/server/controllers/article/delete-topic.php @@ -3,15 +3,16 @@ use Respect\Validation\Validator as DataValidator; DataValidator::with('CustomValidations', true); /** - * @api {post} /article/delete-topic Delete a topic. + * @api {post} /article/delete-topic Delete topic + * @apiVersion 4.0.0 * * @apiName Delete topic * - * @apiGroup article + * @apiGroup Article * * @apiDescription This path deletes a topic. * - * @apiPermission Staff level 2 + * @apiPermission staff2 * * @apiParam {Number} topicId Id of the topic. * diff --git a/server/controllers/article/delete.php b/server/controllers/article/delete.php index 49afe4e1..948a37b0 100755 --- a/server/controllers/article/delete.php +++ b/server/controllers/article/delete.php @@ -3,15 +3,16 @@ use Respect\Validation\Validator as DataValidator; DataValidator::with('CustomValidations', true); /** - * @api {post} /article/delete Delete a article. + * @api {post} /article/delete Delete article + * @apiVersion 4.0.0 * - * @apiName Delete + * @apiName Delete article * - * @apiGroup article + * @apiGroup Article * - * @apiDescription This path deletes a article. + * @apiDescription This path deletes an article. * - * @apiPermission Staff level 2 + * @apiPermission staff2 * * @apiParam {Number} articleId Id of the article. * diff --git a/server/controllers/article/edit-topic.php b/server/controllers/article/edit-topic.php index 32369ab6..88468014 100755 --- a/server/controllers/article/edit-topic.php +++ b/server/controllers/article/edit-topic.php @@ -3,20 +3,21 @@ use Respect\Validation\Validator as DataValidator; DataValidator::with('CustomValidations', true); /** - * @api {post} /article/edit-topic Edit a topic. + * @api {post} /article/edit-topic Edit topic + * @apiVersion 4.0.0 * * @apiName Edit topic * - * @apiGroup article + * @apiGroup Article * * @apiDescription This path edits a topic. * - * @apiPermission Staff level 2 + * @apiPermission staff2 * * @apiParam {Number} topicId Id of the topic. - * @apiParam {String} name The new name of the topic. - * @apiParam {String} icon The new icon of the topic. - * @apiParam {String} iconColor The new Icon's color of the topic. + * @apiParam {String} name The new name of the topic. Optional. + * @apiParam {String} icon The new icon of the topic. Optional. + * @apiParam {String} iconColor The new Icon's color of the topic. Optional. * * @apiUse NO_PERMISSION * @apiUse INVALID_TOPIC diff --git a/server/controllers/article/edit.php b/server/controllers/article/edit.php index c33ca008..d5d76109 100755 --- a/server/controllers/article/edit.php +++ b/server/controllers/article/edit.php @@ -3,21 +3,22 @@ use Respect\Validation\Validator as DataValidator; DataValidator::with('CustomValidations', true); /** - * @api {post} /article/edit Edit a article. + * @api {post} /article/edit Edit article + * @apiVersion 4.0.0 * * @apiName Edit a article * - * @apiGroup article + * @apiGroup Article * - * @apiDescription This path edits a article. + * @apiDescription This path edits an article. * - * @apiPermission Staff level 2 + * @apiPermission staff2 * * @apiParam {Number} articleId Id of the article. - * @apiParam {Number} topicId Id of the topic of the article. - * @apiParam {String} content The new content of the article. - * @apiParam {String} title The new title of the article. - * @apiParam {Number} position The new position of the article. + * @apiParam {Number} topicId Id of the topic of the article. Optional. + * @apiParam {String} content The new content of the article. Optional. + * @apiParam {String} title The new title of the article. Optional. + * @apiParam {Number} position The new position of the article. Optional. * * @apiUse NO_PERMISSION * @apiUse INVALID_TOPIC diff --git a/server/controllers/article/get-all.php b/server/controllers/article/get-all.php index a2031c1e..59e5fd42 100755 --- a/server/controllers/article/get-all.php +++ b/server/controllers/article/get-all.php @@ -3,11 +3,12 @@ use Respect\Validation\Validator as DataValidator; DataValidator::with('CustomValidations', true); /** - * @api {post} /article/get-all Retrieve all articles. + * @api {post} /article/get-all Get all articles + * @apiVersion 4.0.0 * - * @apiName Get all + * @apiName Get all articles * - * @apiGroup article + * @apiGroup Article * * @apiDescription This path retrieves all the articles. * diff --git a/server/controllers/staff/add.php b/server/controllers/staff/add.php index 2c4ccc07..eed23198 100755 --- a/server/controllers/staff/add.php +++ b/server/controllers/staff/add.php @@ -3,22 +3,23 @@ use Respect\Validation\Validator as DataValidator; DataValidator::with('CustomValidations', true); /** - * @api {post} /staff/add Add a new staff member. + * @api {post} /staff/add Add staff + * @apiVersion 4.0.0 * - * @apiName Add + * @apiName Add staff * - * @apiGroup staff + * @apiGroup Staff * - * @apiDescription This path add a new staff member. + * @apiDescription This path adds a new staff member. * - * @apiPermission Staff level 3 + * @apiPermission staff3 * * @apiParam {String} name The name of the new staff member. * @apiParam {String} email The email of the new staff member. * @apiParam {String} password The password of the new staff member. * @apiParam {Number} level The level of the new staff member. * @apiParam {String} profilePic The profile pic of the new staff member. - * @apiParam {String} departments The departments that will have assigned the new staff member. + * @apiParam {Number[]} departments The departments that will have assigned the new staff member. * * @apiUse NO_PERMISSION * @apiUse INVALID_NAME diff --git a/server/controllers/staff/assign-ticket.php b/server/controllers/staff/assign-ticket.php index 9a84e73e..ffab05c5 100755 --- a/server/controllers/staff/assign-ticket.php +++ b/server/controllers/staff/assign-ticket.php @@ -3,15 +3,16 @@ use Respect\Validation\Validator as DataValidator; DataValidator::with('CustomValidations', true); /** - * @api {post} /staff/assign-ticket Assign a ticket to a staff member. + * @api {post} /staff/assign-ticket Assign ticket + * @apiVersion 4.0.0 * * @apiName Assign ticket * - * @apiGroup staff + * @apiGroup Staff * * @apiDescription This path assigns a ticket to a staff member. * - * @apiPermission Staff level 1 + * @apiPermission staff1 * * @apiParam {Number} ticketNumber The number of the ticket to assign. * diff --git a/server/controllers/staff/delete.php b/server/controllers/staff/delete.php index cf9445fd..3fcadee9 100755 --- a/server/controllers/staff/delete.php +++ b/server/controllers/staff/delete.php @@ -3,15 +3,16 @@ use Respect\Validation\Validator as DataValidator; use RedBeanPHP\Facade as RedBean; /** - * @api {post} /staff/delete Delete a staff member. + * @api {post} /staff/delete Delete staff + * @apiVersion 4.0.0 * - * @apiName Delete + * @apiName Delete staff * - * @apiGroup staff + * @apiGroup Staff * * @apiDescription This path deletes a staff member. * - * @apiPermission Staff level 3 + * @apiPermission staff3 * * @apiParam {Number} staffId The id of the staff member. * diff --git a/server/controllers/staff/edit.php b/server/controllers/staff/edit.php index fa476102..ac7ab89f 100755 --- a/server/controllers/staff/edit.php +++ b/server/controllers/staff/edit.php @@ -2,21 +2,22 @@ use Respect\Validation\Validator as DataValidator; /** - * @api {post} /staff/edit Edit a staff member. + * @api {post} /staff/edit Edit staff + * @apiVersion 4.0.0 * - * @apiName Edit + * @apiName Edit staff * - * @apiGroup staff + * @apiGroup Staff * - * @apiDescription This path edits a staff member . + * @apiDescription This path edits a staff member. * - * @apiPermission Staff level 1 + * @apiPermission staff1 * * @apiParam {Number} staffId Id of the staff. - * @apiParam {String} departments The name of the departments to change. - * @apiParam {String} email The new email of the staff member. - * @apiParam {String} password The new password of the staff member. - * @apiParam {Number} level The new level of the staff member. + * @apiParam {String} departments The name of the departments to change. Optional. + * @apiParam {String} email The new email of the staff member. Optional. + * @apiParam {String} password The new password of the staff member. Optional. + * @apiParam {Number} level The new level of the staff member. Optional. * * @apiUse NO_PERMISSION * @apiUse INVALID_STAFF diff --git a/server/controllers/staff/get-all-tickets.php b/server/controllers/staff/get-all-tickets.php index 8cf367ac..c4b8f170 100755 --- a/server/controllers/staff/get-all-tickets.php +++ b/server/controllers/staff/get-all-tickets.php @@ -2,24 +2,25 @@ use Respect\Validation\Validator as DataValidator; /** - * @api {post} /staff/get-all-tickets Retrieve all tickets. + * @api {post} /staff/get-all-tickets Get all tickets + * @apiVersion 4.0.0 * * @apiName Get all tickets * - * @apiGroup staff + * @apiGroup Staff * - * @apiDescription This path retrieves all tickets created. + * @apiDescription This path retrieves all tickets. * - * @apiPermission Staff level 1 + * @apiPermission staff1 * - * @apiParam {Number} page The page's number that it's looking for. + * @apiParam {Number} page The page number. * * @apiUse NO_PERMISSION * @apiUse INVALID_PAGE * - * @apiSuccess {Object} data Information about a tickets and quantity of pages - * @apiSuccess {[Ticket](#api-Data_Structures-ObjectTicket)[]} data.tickets Array of tickets of the current page - * @apiSuccess {Number} data.pages Quantity of pages + * @apiSuccess {Object} data Information about a tickets and quantity of pages. + * @apiSuccess {[Ticket](#api-Data_Structures-ObjectTicket)[]} data.tickets Array of tickets of the current page. + * @apiSuccess {Number} data.pages Quantity of pages. * */ diff --git a/server/controllers/staff/get-all.php b/server/controllers/staff/get-all.php index 9ea663aa..f0b021e4 100755 --- a/server/controllers/staff/get-all.php +++ b/server/controllers/staff/get-all.php @@ -2,15 +2,16 @@ use Respect\Validation\Validator as DataValidator; /** - * @api {post} /staff/get-all Retrieve information about all the staff members. + * @api {post} /staff/get-all Get all staffs + * @apiVersion 4.0.0 * - * @apiName Get all + * @apiName Get all staffs * - * @apiGroup staff + * @apiGroup Staff * * @apiDescription This path retrieves information about all the staff member. * - * @apiPermission Staff level 3 + * @apiPermission staff3 * * @apiUse NO_PERMISSION * diff --git a/server/controllers/staff/get-new-tickets.php b/server/controllers/staff/get-new-tickets.php index ddfb439a..c469a0ff 100755 --- a/server/controllers/staff/get-new-tickets.php +++ b/server/controllers/staff/get-new-tickets.php @@ -3,19 +3,20 @@ use RedBeanPHP\Facade as RedBean; use Respect\Validation\Validator as DataValidator; /** - * @api {post} /staff/get-new-tickets Retrieve new tickets. + * @api {post} /staff/get-new-tickets Get new tickets + * @apiVersion 4.0.0 * * @apiName Get new tickets * - * @apiGroup staff + * @apiGroup Staff * - * @apiDescription This path retrieves new tickets. + * @apiDescription This path retrieves the new tickets of the departments the staff has assigned. * - * @apiPermission Staff level 1 + * @apiPermission staff1 * * @apiUse NO_PERMISSION * - * @apiSuccess {[Ticket](#api-Data_Structures-ObjectTicket)[]} data Array of new tickets + * @apiSuccess {[Ticket](#api-Data_Structures-ObjectTicket)[]} data Array of new tickets. * */ diff --git a/server/controllers/staff/get-tickets.php b/server/controllers/staff/get-tickets.php index 03b42950..fdb2335c 100755 --- a/server/controllers/staff/get-tickets.php +++ b/server/controllers/staff/get-tickets.php @@ -2,15 +2,16 @@ use Respect\Validation\Validator as DataValidator; /** - * @api {post} /staff/get-tickets Retrieve own tickets. + * @api {post} /staff/get-tickets Get tickets + * @apiVersion 4.0.0 * * @apiName Get tickets * - * @apiGroup staff + * @apiGroup Staff * - * @apiDescription This path retrieves the tickets of current staff member. + * @apiDescription This path retrieves the tickets assigned to the current staff member. * - * @apiPermission Staff level 1 + * @apiPermission staff1 * * @apiUse NO_PERMISSION * diff --git a/server/controllers/staff/get.php b/server/controllers/staff/get.php index a0737992..90de8990 100755 --- a/server/controllers/staff/get.php +++ b/server/controllers/staff/get.php @@ -3,17 +3,18 @@ use Respect\Validation\Validator as DataValidator; DataValidator::with('CustomValidations', true); /** - * @api {post} /staff/get Retrieve information about a staff member. + * @api {post} /staff/get Get staff + * @apiVersion 4.0.0 * - * @apiName Get + * @apiName Get staff * - * @apiGroup staff + * @apiGroup Staff * - * @apiDescription This path retrieves information about a staff member . + * @apiDescription This path retrieves information about a staff member. * - * @apiPermission Staff level 1 + * @apiPermission staff1 * - * @apiParam {Number} staffId The id of the staff member searched. + * @apiParam {Number} staffId The id of the staff member to be searched. * * @apiUse NO_PERMISSION * diff --git a/server/controllers/staff/last-events.php b/server/controllers/staff/last-events.php index b166bd5d..27bcc172 100755 --- a/server/controllers/staff/last-events.php +++ b/server/controllers/staff/last-events.php @@ -2,17 +2,18 @@ use Respect\Validation\Validator as DataValidator; /** - * @api {post} /staff/last-events Retrieve the last events. + * @api {post} /staff/last-events Get last events + * @apiVersion 4.0.0 * - * @apiName Last events + * @apiName Get last events * - * @apiGroup staff + * @apiGroup Staff * * @apiDescription This path retrieves the last events. * - * @apiPermission Staff level 1 + * @apiPermission staff1 * - * @apiParam {Number} page The page's number of the list. + * @apiParam {Number} page The page number. * * @apiUse NO_PERMISSION * @apiUse INVALID_PAGE diff --git a/server/controllers/staff/search-tickets.php b/server/controllers/staff/search-tickets.php index 7c3e5a72..7f2f08a9 100755 --- a/server/controllers/staff/search-tickets.php +++ b/server/controllers/staff/search-tickets.php @@ -2,18 +2,19 @@ use Respect\Validation\Validator as DataValidator; /** - * @api {post} /staff/search-tickets Search some tickets. + * @api {post} /staff/search-tickets Search tickets + * @apiVersion 4.0.0 * * @apiName Search tickets * - * @apiGroup staff + * @apiGroup Staff * * @apiDescription This path search some tickets. * - * @apiPermission Staff level 1 + * @apiPermission staff1 * - * @apiParam {String} query Key to search. - * @apiParam {Number} page The number of page. + * @apiParam {String} query Query string to search. + * @apiParam {Number} page The page number. * * @apiUse NO_PERMISSION * @apiUse INVALID_QUERY @@ -21,7 +22,7 @@ use Respect\Validation\Validator as DataValidator; * * @apiSuccess {Object} data Information about tickets * @apiSuccess {[Ticket](#api-Data_Structures-ObjectTicket)[]} data.tickets Array of tickets found - * @apiSuccess {Number} data.pages Number of the page + * @apiSuccess {Number} data.pages Number of pages * */ diff --git a/server/controllers/staff/un-assign-ticket.php b/server/controllers/staff/un-assign-ticket.php index cadc3cbd..09cb8112 100755 --- a/server/controllers/staff/un-assign-ticket.php +++ b/server/controllers/staff/un-assign-ticket.php @@ -3,15 +3,16 @@ use Respect\Validation\Validator as DataValidator; DataValidator::with('CustomValidations', true); /** - * @api {post} /staff/un-assign-ticket Un-assign a ticket. + * @api {post} /staff/un-assign-ticket Un-assign ticket + * @apiVersion 4.0.0 * * @apiName Un-assign ticket * - * @apiGroup staff + * @apiGroup Staff * - * @apiDescription This path un assign a ticket of a staff member. + * @apiDescription This path un-assigns a ticket to the current staff member. * - * @apiPermission Staff level 1 + * @apiPermission staff1 * * @apiParam {Number} ticketNumber Ticket number to un-assign. * diff --git a/server/controllers/system/add-api-key.php b/server/controllers/system/add-api-key.php index 88732751..40bdc307 100755 --- a/server/controllers/system/add-api-key.php +++ b/server/controllers/system/add-api-key.php @@ -2,23 +2,24 @@ use Respect\Validation\Validator as DataValidator; /** - * @api {post} /system/add-api-key Create a new api-key. + * @api {post} /system/add-api-key Add APIKey + * @apiVersion 4.0.0 * - * @apiName Add api-key + * @apiName Add APIKey * - * @apiGroup system + * @apiGroup System * - * @apiDescription This path create a new api-key. + * @apiDescription This path creates a new APIKey. * - * @apiPermission Staff level 3 + * @apiPermission staff3 * - * @apiParam {String} name Name of the new api-key. + * @apiParam {String} name Name of the new APIKey. * * @apiUse NO_PERMISSION * @apiUse INVALID_NAME * @apiUse NAME_ALREADY_USED * - * @apiSuccess {String} data Token of the api key + * @apiSuccess {String} data Token of the APIKey. * */ diff --git a/server/controllers/system/add-department.php b/server/controllers/system/add-department.php index 47a10fc8..b042d4c5 100755 --- a/server/controllers/system/add-department.php +++ b/server/controllers/system/add-department.php @@ -2,15 +2,16 @@ use Respect\Validation\Validator as DataValidator; /** - * @api {post} /system/add-department Create a new department. + * @api {post} /system/add-department Add department + * @apiVersion 4.0.0 * * @apiName Add department * - * @apiGroup system + * @apiGroup System * * @apiDescription This path create a new department. * - * @apiPermission Staff level 3 + * @apiPermission staff3 * * @apiParam {String} name Name of the new department. * diff --git a/server/controllers/system/backup-database.php b/server/controllers/system/backup-database.php index 80f03546..3fe9d2fd 100755 --- a/server/controllers/system/backup-database.php +++ b/server/controllers/system/backup-database.php @@ -2,15 +2,16 @@ use Ifsnop\Mysqldump as IMysqldump; /** - * @api {post} /system/backup-database Do a backup of the database. + * @api {post} /system/backup-database Backup database + * @apiVersion 4.0.0 * * @apiName Backup database * - * @apiGroup system + * @apiGroup System * - * @apiDescription This path do a backup of the database. + * @apiDescription This path does a backup of the database. * - * @apiPermission Staff level 3 + * @apiPermission staff3 * * @apiUse NO_PERMISSION * diff --git a/server/controllers/system/check-requirements.php b/server/controllers/system/check-requirements.php index 6dcd587d..c9b9ada1 100755 --- a/server/controllers/system/check-requirements.php +++ b/server/controllers/system/check-requirements.php @@ -1,13 +1,14 @@ Date: Fri, 19 May 2017 20:08:45 +0200 Subject: [PATCH 8/9] Fix #22 --- client/src/index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/index.php b/client/src/index.php index 172d8f29..2235750d 100755 --- a/client/src/index.php +++ b/client/src/index.php @@ -1,6 +1,6 @@ @@ -25,4 +25,4 @@ - \ No newline at end of file + From cf1490711a884fff5c13f006b874c5ecd8fe7ccf Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 7 Jun 2017 14:18:58 -0300 Subject: [PATCH 9/9] Guillermo - fix bug #11 --- client/src/reducers/config-reducer.js | 6 +++--- server/controllers/ticket/create.php | 5 +++++ tests/system/disable-user-system.rb | 25 ++++++++++++++++++++++++- tests/system/get-stats.rb | 24 ++++++++++++------------ 4 files changed, 44 insertions(+), 16 deletions(-) diff --git a/client/src/reducers/config-reducer.js b/client/src/reducers/config-reducer.js index 91928810..7f76c3e5 100644 --- a/client/src/reducers/config-reducer.js +++ b/client/src/reducers/config-reducer.js @@ -35,11 +35,11 @@ class ConfigReducer extends Reducer { const currentLanguage = sessionStore.getItem('language'); sessionStore.storeConfigs(_.extend({}, payload.data, { - language: currentLanguage || payload.language + language: currentLanguage || payload.data.language })); return _.extend({}, state, payload.data, { - language: currentLanguage || payload.language, + language: currentLanguage || payload.data.language, registration: !!(payload.data.registration * 1), 'user-system-enabled': !!(payload.data['user-system-enabled']* 1), 'allow-attachments': !!(payload.data['allow-attachments']* 1), @@ -56,4 +56,4 @@ class ConfigReducer extends Reducer { } } -export default ConfigReducer.getInstance(); \ No newline at end of file +export default ConfigReducer.getInstance(); diff --git a/server/controllers/ticket/create.php b/server/controllers/ticket/create.php index 2c8ada0b..1a28bb6b 100755 --- a/server/controllers/ticket/create.php +++ b/server/controllers/ticket/create.php @@ -27,6 +27,7 @@ DataValidator::with('CustomValidations', true); * @apiUse INVALID_DEPARTMENT * @apiUse INVALID_LANGUAGE * @apiUse INVALID_CAPTCHA + * @apiUse INVALID_EMAIL * * @apiSuccess {Object} data Information of the new ticket * @apiSuccess {Number} data.ticketNumber Number of the new ticket @@ -74,6 +75,10 @@ class CreateController extends Controller { 'validation' => DataValidator::captcha(), 'error' => ERRORS::INVALID_CAPTCHA ]; + $validations['requestData']['email'] = [ + 'validation' => DataValidator::email(), + 'error' => ERRORS::INVALID_EMAIL + ]; } return $validations; diff --git a/tests/system/disable-user-system.rb b/tests/system/disable-user-system.rb index 2764a0a8..44b1b287 100644 --- a/tests/system/disable-user-system.rb +++ b/tests/system/disable-user-system.rb @@ -41,6 +41,29 @@ describe'system/disable-user-system' do (result['message']).should.equal('USER_SYSTEM_DISABLED') end + it 'should create a ticket without user' do + request('/user/logout') + result = request('/ticket/create', { + title: 'test ticket without user', + content: 'The north remembers', + departmentId: 1, + language: 'en', + }) + + (result['status']).should.equal('fail') + (result['message']).should.equal('INVALID_EMAIL') + + result = request('/ticket/create', { + title: 'test ticket without user', + content: 'The north remembers', + departmentId: 1, + language: 'en', + email: 'emailtest@opensupports.com' + }) + + (result['status']).should.equal('success') + end + it 'should not disable the user system if it is already disabled 'do request('/user/logout') Scripts.login($staff[:email], $staff[:password], true) @@ -69,7 +92,7 @@ describe'system/disable-user-system' do numberOftickets= $database.query("SELECT * FROM ticket WHERE author_email IS NULL AND author_name IS NULL AND author_id IS NOT NULL" ) - (numberOftickets.num_rows).should.equal(36) + (numberOftickets.num_rows).should.equal(37) end diff --git a/tests/system/get-stats.rb b/tests/system/get-stats.rb index 5d6e30bb..19fe0054 100644 --- a/tests/system/get-stats.rb +++ b/tests/system/get-stats.rb @@ -13,16 +13,16 @@ describe'/system/get-stats' do #day 1 for i in 0..5 - $database.query("INSERT INTO log VALUES('', 'SIGNUP', NULL, " + yesterday3 + ", NULL, NULL);") + $database.query("INSERT INTO log VALUES('', 'SIGNUP', NULL, " + yesterday3 + ", NULL, NULL, NULL);") end for i in 0..0 - $database.query("INSERT INTO log VALUES('', 'CREATE_TICKET', NULL, " + yesterday3 + ", NULL, NULL);") + $database.query("INSERT INTO log VALUES('', 'CREATE_TICKET', NULL, " + yesterday3 + ", NULL, NULL, NULL);") end for i in 0..1 - $database.query("INSERT INTO log VALUES('', 'CLOSE', NULL, " + yesterday3 + ", NULL, NULL);") + $database.query("INSERT INTO log VALUES('', 'CLOSE', NULL, " + yesterday3 + ", NULL, NULL, NULL);") end for i in 0..2 - $database.query("INSERT INTO log VALUES('', 'COMMENT', NULL, " + yesterday3 + ", NULL, NULL);") + $database.query("INSERT INTO log VALUES('', 'COMMENT', NULL, " + yesterday3 + ", NULL, NULL, NULL);") end for i in 0..8 $database.query("INSERT INTO ticketevent VALUES('', 'CLOSE', NULL, NULL, " + yesterday3 + ", NULL, NULL, 1);") @@ -33,16 +33,16 @@ describe'/system/get-stats' do #day 2 for i in 0..7 - $database.query("INSERT INTO log VALUES('', 'SIGNUP', NULL, " + yesterday2 + ", NULL, NULL);") + $database.query("INSERT INTO log VALUES('', 'SIGNUP', NULL, " + yesterday2 + ", NULL, NULL, NULL);") end for i in 0..2 - $database.query("INSERT INTO log VALUES('', 'CREATE_TICKET', NULL, " + yesterday2 + ", NULL, NULL);") + $database.query("INSERT INTO log VALUES('', 'CREATE_TICKET', NULL, " + yesterday2 + ", NULL, NULL, NULL);") end for i in 0..9 - $database.query("INSERT INTO log VALUES('', 'CLOSE', NULL, " + yesterday2 + ", NULL, NULL);") + $database.query("INSERT INTO log VALUES('', 'CLOSE', NULL, " + yesterday2 + ", NULL, NULL, NULL);") end for i in 0..2 - $database.query("INSERT INTO log VALUES('', 'COMMENT', NULL, " + yesterday2 + ", NULL, NULL);") + $database.query("INSERT INTO log VALUES('', 'COMMENT', NULL, " + yesterday2 + ", NULL, NULL, NULL);") end for i in 0..10 $database.query("INSERT INTO ticketevent VALUES('', 'CLOSE', NULL, NULL, " + yesterday2 + ", NULL, NULL, 1);") @@ -53,16 +53,16 @@ describe'/system/get-stats' do #day 3 for i in 0..0 - $database.query("INSERT INTO log VALUES('', 'SIGNUP', NULL, " + yesterday + ", NULL, NULL);") + $database.query("INSERT INTO log VALUES('', 'SIGNUP', NULL, " + yesterday + ", NULL, NULL, NULL);") end for i in 0..1 - $database.query("INSERT INTO log VALUES('', 'CREATE_TICKET', NULL, " + yesterday + ", NULL, NULL);") + $database.query("INSERT INTO log VALUES('', 'CREATE_TICKET', NULL, " + yesterday + ", NULL, NULL, NULL);") end for i in 0..4 - $database.query("INSERT INTO log VALUES('', 'CLOSE', NULL, " + yesterday + ", NULL, NULL);") + $database.query("INSERT INTO log VALUES('', 'CLOSE', NULL, " + yesterday + ", NULL, NULL, NULL);") end for i in 0..7 - $database.query("INSERT INTO log VALUES('', 'COMMENT', NULL, " + yesterday + ", NULL, NULL);") + $database.query("INSERT INTO log VALUES('', 'COMMENT', NULL, " + yesterday + ", NULL, NULL, NULL);") end for i in 0..3 $database.query("INSERT INTO ticketevent VALUES('', 'CLOSE', NULL, NULL, " + yesterday + ", NULL, NULL, 1);")