Browse Source

added translation key with variable

Skylsmoi 5 years ago
parent
commit
5a7203703c

+ 5 - 12
frontend/i18next.scanner/en/translation.json View File

@@ -37,11 +37,6 @@
37 37
   "Change your status": "Change your status",
38 38
   "subscriber": "subscriber",
39 39
   "unsubscribed": "unsubscribed",
40
-  "Start a new Thread": "Start a new Thread",
41
-  "Writing a document": "Writing a document",
42
-  "Upload a file": "Upload a file",
43
-  "Start a videoconference": "Start a videoconference",
44
-  "View the Calendar": "View the Calendar",
45 40
   "Recent activity": "Recent activity",
46 41
   "Mark everything as read": "Mark everything as read",
47 42
   "See more": "See more",
@@ -50,24 +45,22 @@
50 45
   "Enter the name or email of the member": "Enter the name or email of the member",
51 46
   "Create an account": "Create an account",
52 47
   "Choose the role of the member": "Choose the role of the member",
53
-  "Supervisor": "Supervisor",
54
-  "Content Manager": "Content Manager",
55
-  "Contributor": "Contributor",
56
-  "Reader": "Reader",
57 48
   "Validate": "Validate",
58 49
   "Implement Tracim in your explorer": "Implement Tracim in your explorer",
59 50
   "Find all your documents deposited online directly on your computer via the workstation, without going through the software.": "Find all your documents deposited online directly on your computer via the workstation, without going through the software.",
60 51
   "Workspace Calendar": "Workspace Calendar",
61 52
   "Each workspace has its own calendar.": "Each workspace has its own calendar.",
62 53
   "Email Adress": "Email Adress",
63
-  "Explore the workspace": "Explore the workspace",
64 54
   "Old password": "Old password",
65 55
   "New password": "New password",
66 56
   "Name:": "Name:",
67 57
   "Email Adress:": "Email Adress:",
68
-  "An error has happened": "An error has happened",
69 58
   "You have subscribed to this workspace's notifications": "You have subscribed to this workspace's notifications",
70 59
   "Connection": "Connection",
71 60
   "Forgotten password ?": "Forgotten password ?",
72
-  "currently, you are ": "currently, you are "
61
+  "An error has happened when fetching workspace detail": "An error has happened when fetching workspace detail",
62
+  "An error has happened while fetching member list": "An error has happened while fetching member list",
63
+  "An error has happened while fetching recent activity list": "An error has happened while fetching recent activity list",
64
+  "An error has happened while fetching read status list": "An error has happened while fetching read status list",
65
+  "Hi {{name}} ! Currently, you are ": "Hi {{name}} ! Currently, you are "
73 66
 }

+ 5 - 12
frontend/i18next.scanner/fr/translation.json View File

@@ -37,12 +37,6 @@
37 37
   "Change your status": "Changer de status",
38 38
   "subscriber": "Abonné(e)",
39 39
   "unsubscribed": "Non Abonné(e)",
40
-  "Start a new Thread": "Débuter une nouvelle discussion",
41
-  "Writing a document": "Rédiger un document",
42
-  "Upload a file": "Importer un fichier",
43
-  "Start a videoconference": "Débuter une visioconférence",
44
-  "View the Calendar": "Voir le Calendrier",
45
-  "Explore the workspace": "Explorer l'espace de travail",
46 40
   "Recent activity": "Activité récente",
47 41
   "Mark everything as read": "Tout marquer comme lu",
48 42
   "See more": "Voir plus",
@@ -50,10 +44,6 @@
50 44
   "Add a member": "Ajouter un membre",
51 45
   "Enter the name or email of the member": "Renseigner le nom ou l'email de l'utilisateur",
52 46
   "Create an account": "Créer un compte",
53
-  "Supervisor": "Responsable",
54
-  "Content Manager": "Gestionnaire de contenu",
55
-  "Contributor": "Contributeur",
56
-  "Reader": "Lecteur",
57 47
   "Validate": "Validé",
58 48
   "Implement Tracim in your explorer": "Implémenter Tracim dans votre explorateur",
59 49
   "Find all your documents deposited online directly on your computer via the workstation, without going through the software.": "Retrouvez tous vos documents déposés en ligne directement sur votre ordinateur via le poste de travail, sans passer par le logiciel.",
@@ -65,9 +55,12 @@
65 55
   "New password": "Nouveau mot de passe",
66 56
   "Name:": "Nom :",
67 57
   "Email Adress:": "Adresse mail :",
68
-  "An error has happened": "__NOT_TRANSLATED__",
69 58
   "You have subscribed to this workspace's notifications": "Vous êtes abonné aux notifications de cet espace de travail.",
70 59
   "Connection": "Connexion",
71 60
   "Forgotten password ?": "Mot de passe oublié ?",
72
-  "currently, you are ": "actuellement, vous êtes "
61
+  "An error has happened when fetching workspace detail": "__NOT_TRANSLATED__",
62
+  "An error has happened while fetching member list": "__NOT_TRANSLATED__",
63
+  "An error has happened while fetching recent activity list": "__NOT_TRANSLATED__",
64
+  "An error has happened while fetching read status list": "__NOT_TRANSLATED__",
65
+  "Hi {{name}} ! Currently, you are ": "Bonjour {{name}} ! Vous êtes actuellement"
73 66
 }

+ 2 - 2
frontend/src/container/Dashboard.jsx View File

@@ -44,7 +44,7 @@ class Dashboard extends React.Component {
44 44
       case 200:
45 45
         props.dispatch(setWorkspaceDetail(fetchWorkspaceDetail.json)); break
46 46
       default:
47
-        props.dispatch(newFlashMessage(props.t('An error has happened when fetching workspace detail'), 'warning')); break
47
+        props.dispatch(newFlashMessage(props.t('An error has happened while fetching workspace detail'), 'warning')); break
48 48
     }
49 49
 
50 50
     const fetchWorkspaceMemberList = await props.dispatch(getWorkspaceMemberList(props.user, state.workspaceIdInUrl))
@@ -121,7 +121,7 @@ class Dashboard extends React.Component {
121 121
               <div className='dashboard__userstatut'>
122 122
                 <div className='dashboard__userstatut__role'>
123 123
                   <div className='dashboard__userstatut__role__msg'>
124
-                    {props.t(`Hi ! ${props.user.public_name} `)}{props.t('currently, you are ')}
124
+                    {props.t('Hi {{name}} ! Currently, you are ', {name: props.user.public_name})}
125 125
                   </div>
126 126
 
127 127
                   {(() => {