Browse Source

added translation key with variable

Skylsmoi 6 years ago
parent
commit
5a7203703c

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

37
   "Change your status": "Change your status",
37
   "Change your status": "Change your status",
38
   "subscriber": "subscriber",
38
   "subscriber": "subscriber",
39
   "unsubscribed": "unsubscribed",
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
   "Recent activity": "Recent activity",
40
   "Recent activity": "Recent activity",
46
   "Mark everything as read": "Mark everything as read",
41
   "Mark everything as read": "Mark everything as read",
47
   "See more": "See more",
42
   "See more": "See more",
50
   "Enter the name or email of the member": "Enter the name or email of the member",
45
   "Enter the name or email of the member": "Enter the name or email of the member",
51
   "Create an account": "Create an account",
46
   "Create an account": "Create an account",
52
   "Choose the role of the member": "Choose the role of the member",
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
   "Validate": "Validate",
48
   "Validate": "Validate",
58
   "Implement Tracim in your explorer": "Implement Tracim in your explorer",
49
   "Implement Tracim in your explorer": "Implement Tracim in your explorer",
59
   "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.",
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
   "Workspace Calendar": "Workspace Calendar",
51
   "Workspace Calendar": "Workspace Calendar",
61
   "Each workspace has its own calendar.": "Each workspace has its own calendar.",
52
   "Each workspace has its own calendar.": "Each workspace has its own calendar.",
62
   "Email Adress": "Email Adress",
53
   "Email Adress": "Email Adress",
63
-  "Explore the workspace": "Explore the workspace",
64
   "Old password": "Old password",
54
   "Old password": "Old password",
65
   "New password": "New password",
55
   "New password": "New password",
66
   "Name:": "Name:",
56
   "Name:": "Name:",
67
   "Email Adress:": "Email Adress:",
57
   "Email Adress:": "Email Adress:",
68
-  "An error has happened": "An error has happened",
69
   "You have subscribed to this workspace's notifications": "You have subscribed to this workspace's notifications",
58
   "You have subscribed to this workspace's notifications": "You have subscribed to this workspace's notifications",
70
   "Connection": "Connection",
59
   "Connection": "Connection",
71
   "Forgotten password ?": "Forgotten password ?",
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
   "Change your status": "Changer de status",
37
   "Change your status": "Changer de status",
38
   "subscriber": "Abonné(e)",
38
   "subscriber": "Abonné(e)",
39
   "unsubscribed": "Non Abonné(e)",
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
   "Recent activity": "Activité récente",
40
   "Recent activity": "Activité récente",
47
   "Mark everything as read": "Tout marquer comme lu",
41
   "Mark everything as read": "Tout marquer comme lu",
48
   "See more": "Voir plus",
42
   "See more": "Voir plus",
50
   "Add a member": "Ajouter un membre",
44
   "Add a member": "Ajouter un membre",
51
   "Enter the name or email of the member": "Renseigner le nom ou l'email de l'utilisateur",
45
   "Enter the name or email of the member": "Renseigner le nom ou l'email de l'utilisateur",
52
   "Create an account": "Créer un compte",
46
   "Create an account": "Créer un compte",
53
-  "Supervisor": "Responsable",
54
-  "Content Manager": "Gestionnaire de contenu",
55
-  "Contributor": "Contributeur",
56
-  "Reader": "Lecteur",
57
   "Validate": "Validé",
47
   "Validate": "Validé",
58
   "Implement Tracim in your explorer": "Implémenter Tracim dans votre explorateur",
48
   "Implement Tracim in your explorer": "Implémenter Tracim dans votre explorateur",
59
   "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.",
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
   "New password": "Nouveau mot de passe",
55
   "New password": "Nouveau mot de passe",
66
   "Name:": "Nom :",
56
   "Name:": "Nom :",
67
   "Email Adress:": "Adresse mail :",
57
   "Email Adress:": "Adresse mail :",
68
-  "An error has happened": "__NOT_TRANSLATED__",
69
   "You have subscribed to this workspace's notifications": "Vous êtes abonné aux notifications de cet espace de travail.",
58
   "You have subscribed to this workspace's notifications": "Vous êtes abonné aux notifications de cet espace de travail.",
70
   "Connection": "Connexion",
59
   "Connection": "Connexion",
71
   "Forgotten password ?": "Mot de passe oublié ?",
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
       case 200:
44
       case 200:
45
         props.dispatch(setWorkspaceDetail(fetchWorkspaceDetail.json)); break
45
         props.dispatch(setWorkspaceDetail(fetchWorkspaceDetail.json)); break
46
       default:
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
     const fetchWorkspaceMemberList = await props.dispatch(getWorkspaceMemberList(props.user, state.workspaceIdInUrl))
50
     const fetchWorkspaceMemberList = await props.dispatch(getWorkspaceMemberList(props.user, state.workspaceIdInUrl))
121
               <div className='dashboard__userstatut'>
121
               <div className='dashboard__userstatut'>
122
                 <div className='dashboard__userstatut__role'>
122
                 <div className='dashboard__userstatut__role'>
123
                   <div className='dashboard__userstatut__role__msg'>
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
                   </div>
125
                   </div>
126
 
126
 
127
                   {(() => {
127
                   {(() => {