Procházet zdrojové kódy

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

AlexiCauvin před 6 roky
rodič
revize
3aa4b0bbd8

+ 2 - 1
frontend_app_html-document/i18next.scanner/en/translation.json Zobrazit soubor

@@ -1,5 +1,6 @@
1 1
 {
2 2
   "Last version": "Last version",
3 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 Zobrazit soubor

@@ -1,5 +1,6 @@
1 1
 {
2 2
   "Last version": "Dernière version",
3 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 Zobrazit soubor

@@ -10,7 +10,7 @@ import i18n from '../i18n.js'
10 10
 
11 11
 const debug = { // outdated
12 12
   config: {
13
-    label: 'Text Document',
13
+    // label: 'New Document',
14 14
     slug: 'html-document',
15 15
     faIcon: 'file-text-o',
16 16
     hexcolor: '#3f52e3',
@@ -108,7 +108,7 @@ class PopupCreateHtmlDocument extends React.Component {
108 108
       <CardPopupCreateContent
109 109
         onClose={this.handleClose}
110 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 112
         customColor={this.state.config.hexcolor}
113 113
         faIcon={this.state.config.faIcon}
114 114
         contentName={this.state.newContentName}

+ 2 - 1
frontend_app_thread/i18next.scanner/en/translation.json Zobrazit soubor

@@ -1,4 +1,5 @@
1 1
 {
2 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 Zobrazit soubor

@@ -1,4 +1,5 @@
1 1
 {
2 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 Zobrazit soubor

@@ -10,8 +10,8 @@ import i18n from '../i18n.js'
10 10
 
11 11
 const debug = { // outdated
12 12
   config: {
13
-    label: 'PopupCreateThread',
14
-    slug: 'thread',
13
+    // label: 'PopupCreateThread',
14
+    slug: 'New thread',
15 15
     faIcon: 'file-text-o',
16 16
     hexcolor: '#ad4cf9',
17 17
     creationLabel: 'Write a thread',
@@ -116,7 +116,7 @@ class PopupCreateThread extends React.Component {
116 116
       <CardPopupCreateContent
117 117
         onClose={this.handleClose}
118 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 120
         customColor={this.state.config.hexcolor}
121 121
         faIcon={this.state.config.faIcon}
122 122
         contentName={this.state.newContentName}