Parcourir la source

https://github.com/tracim/tracim/issues/748, translation of login and dashboard page

AlexiCauvin il y a 6 ans
Parent
révision
ce06fad0f4

+ 6 - 1
frontend/i18next.scanner/en/translation.json Voir le fichier

@@ -64,5 +64,10 @@
64 64
   "Old password": "Old password",
65 65
   "New password": "New password",
66 66
   "Name:": "Name:",
67
-  "Email Adress:": "Email Adress:"
67
+  "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",
70
+  "Connection": "Connection",
71
+  "Forgotten password ?": "Forgotten password ?",
72
+  "currently, you are ": "currently, you are "
68 73
 }

+ 6 - 1
frontend/i18next.scanner/fr/translation.json Voir le fichier

@@ -64,5 +64,10 @@
64 64
   "Old password": "Ancien mot de passe",
65 65
   "New password": "Nouveau mot de passe",
66 66
   "Name:": "Nom :",
67
-  "Email Adress:": "Adresse mail :"
67
+  "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.",
70
+  "Connection": "Connexion",
71
+  "Forgotten password ?": "Mot de passe oublié ?",
72
+  "currently, you are ": "actuellement, vous êtes "
68 73
 }

+ 2 - 2
frontend/src/container/Dashboard.jsx Voir le fichier

@@ -109,7 +109,7 @@ class Dashboard extends React.Component {
109 109
               <div className='dashboard__userstatut'>
110 110
                 <div className='dashboard__userstatut__role'>
111 111
                   <div className='dashboard__userstatut__role__msg'>
112
-                    {props.t(`Hi ! ${props.user.public_name}, vous êtes actuellement`)}
112
+                    {props.t(`Hi ! ${props.user.public_name} `)}{props.t('currently, you are ')}
113 113
                   </div>
114 114
 
115 115
                   <div className='dashboard__userstatut__role__definition'>
@@ -139,7 +139,7 @@ class Dashboard extends React.Component {
139 139
                           aria-haspopup='true'
140 140
                           aria-expanded='false'
141 141
                         >
142
-                          Abonné(e)
142
+                          {props.t('subscriber')}
143 143
                         </button>
144 144
 
145 145
                         <div className='dashboard__userstatut__notification__subscribe__submenu dropdown-menu'>

+ 3 - 3
frontend/src/container/Login.jsx Voir le fichier

@@ -74,7 +74,7 @@ class Login extends React.Component {
74 74
               <div className='col-12 col-sm-11 col-md-8 col-lg-6 col-xl-4'>
75 75
 
76 76
                 <Card customClass='loginpage__connection'>
77
-                  <CardHeader customClass='connection__header text-center'>{'Connexion'}</CardHeader>
77
+                  <CardHeader customClass='connection__header text-center'>{this.props.t('Connection')}</CardHeader>
78 78
 
79 79
                   <CardBody formClass='connection__form'>
80 80
                     <div>
@@ -118,7 +118,7 @@ class Login extends React.Component {
118 118
                         <div className='col-12 col-sm-6 col-md-6 col-lg-6 col-xl-6 text-sm-right'>
119 119
                           <LoginBtnForgotPw
120 120
                             customClass='connection__form__pwforgot'
121
-                            label='Mot de passe oublié ?'
121
+                            label={this.props.t('Forgotten password ?')}
122 122
                           />
123 123
                         </div>
124 124
                       </div>
@@ -127,7 +127,7 @@ class Login extends React.Component {
127 127
                         htmlType='button'
128 128
                         bootstrapType='primary'
129 129
                         customClass='connection__form__btnsubmit ml-auto'
130
-                        label='Connexion'
130
+                        label={this.props.t('Connection')}
131 131
                         onClick={this.handleClickSubmit}
132 132
                       />
133 133
                     </div>