Browse Source

https://github.com/tracim/tracim/issues/743, PopupCreate translation

AlexiCauvin 5 years ago
parent
commit
3aa4b0bbd8

+ 2 - 1
frontend_app_html-document/i18next.scanner/en/translation.json View File

1
 {
1
 {
2
   "Last version": "Last version",
2
   "Last version": "Last version",
3
   "Validate and create": "Validate and create",
3
   "Validate and create": "Validate and create",
4
-  "Document's title": "Document's title"
4
+  "Document's title": "Document's title",
5
+  "New Document": "New Document"
5
 }
6
 }

+ 2 - 1
frontend_app_html-document/i18next.scanner/fr/translation.json View File

1
 {
1
 {
2
   "Last version": "Dernière version",
2
   "Last version": "Dernière version",
3
   "Validate and create": "Valider et créer",
3
   "Validate and create": "Valider et créer",
4
-  "Document's title": "Titre du document"
4
+  "Document's title": "Titre du document",
5
+  "New Document": "Nouveau document"
5
 }
6
 }

+ 2 - 2
frontend_app_html-document/src/container/PopupCreateHtmlDocument.jsx View File

10
 
10
 
11
 const debug = { // outdated
11
 const debug = { // outdated
12
   config: {
12
   config: {
13
-    label: 'Text Document',
13
+    // label: 'New Document',
14
     slug: 'html-document',
14
     slug: 'html-document',
15
     faIcon: 'file-text-o',
15
     faIcon: 'file-text-o',
16
     hexcolor: '#3f52e3',
16
     hexcolor: '#3f52e3',
108
       <CardPopupCreateContent
108
       <CardPopupCreateContent
109
         onClose={this.handleClose}
109
         onClose={this.handleClose}
110
         onValidate={this.handleValidate}
110
         onValidate={this.handleValidate}
111
-        label={this.state.config.label} // @TODO get the lang of user
111
+        label={this.props.t('New Document')} // @TODO get the lang of user
112
         customColor={this.state.config.hexcolor}
112
         customColor={this.state.config.hexcolor}
113
         faIcon={this.state.config.faIcon}
113
         faIcon={this.state.config.faIcon}
114
         contentName={this.state.newContentName}
114
         contentName={this.state.newContentName}

+ 2 - 1
frontend_app_thread/i18next.scanner/en/translation.json View File

1
 {
1
 {
2
   "Validate and create": "Validate and create",
2
   "Validate and create": "Validate and create",
3
-  "Topic's subject": "Topic's subject"
3
+  "Topic's subject": "Topic's subject",
4
+  "New Thread": "New Thread"
4
 }
5
 }

+ 2 - 1
frontend_app_thread/i18next.scanner/fr/translation.json View File

1
 {
1
 {
2
   "Validate and create": "Valider et créer",
2
   "Validate and create": "Valider et créer",
3
-  "Topic's subject": "Sujet de la discussion"
3
+  "Topic's subject": "Sujet de la discussion",
4
+  "New Thread": "Nouvelle discussion"
4
 }
5
 }

+ 3 - 3
frontend_app_thread/src/container/PopupCreateThread.jsx View File

10
 
10
 
11
 const debug = { // outdated
11
 const debug = { // outdated
12
   config: {
12
   config: {
13
-    label: 'PopupCreateThread',
14
-    slug: 'thread',
13
+    // label: 'PopupCreateThread',
14
+    slug: 'New thread',
15
     faIcon: 'file-text-o',
15
     faIcon: 'file-text-o',
16
     hexcolor: '#ad4cf9',
16
     hexcolor: '#ad4cf9',
17
     creationLabel: 'Write a thread',
17
     creationLabel: 'Write a thread',
116
       <CardPopupCreateContent
116
       <CardPopupCreateContent
117
         onClose={this.handleClose}
117
         onClose={this.handleClose}
118
         onValidate={this.handleValidate}
118
         onValidate={this.handleValidate}
119
-        label={this.state.config.label} // @TODO get the lang of user
119
+        label={this.props.t('New Thread')} // @TODO get the lang of user
120
         customColor={this.state.config.hexcolor}
120
         customColor={this.state.config.hexcolor}
121
         faIcon={this.state.config.faIcon}
121
         faIcon={this.state.config.faIcon}
122
         contentName={this.state.newContentName}
122
         contentName={this.state.newContentName}