Browse Source

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

AlexiCauvin 6 years ago
parent
commit
ce06fad0f4

+ 6 - 1
frontend/i18next.scanner/en/translation.json View File

64
   "Old password": "Old password",
64
   "Old password": "Old password",
65
   "New password": "New password",
65
   "New password": "New password",
66
   "Name:": "Name:",
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 View File

64
   "Old password": "Ancien mot de passe",
64
   "Old password": "Ancien mot de passe",
65
   "New password": "Nouveau mot de passe",
65
   "New password": "Nouveau mot de passe",
66
   "Name:": "Nom :",
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 View File

109
               <div className='dashboard__userstatut'>
109
               <div className='dashboard__userstatut'>
110
                 <div className='dashboard__userstatut__role'>
110
                 <div className='dashboard__userstatut__role'>
111
                   <div className='dashboard__userstatut__role__msg'>
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
                   </div>
113
                   </div>
114
 
114
 
115
                   <div className='dashboard__userstatut__role__definition'>
115
                   <div className='dashboard__userstatut__role__definition'>
139
                           aria-haspopup='true'
139
                           aria-haspopup='true'
140
                           aria-expanded='false'
140
                           aria-expanded='false'
141
                         >
141
                         >
142
-                          Abonné(e)
142
+                          {props.t('subscriber')}
143
                         </button>
143
                         </button>
144
 
144
 
145
                         <div className='dashboard__userstatut__notification__subscribe__submenu dropdown-menu'>
145
                         <div className='dashboard__userstatut__notification__subscribe__submenu dropdown-menu'>

+ 3 - 3
frontend/src/container/Login.jsx View File

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