mizozobu 6 лет назад
Родитель
Сommit
951a7617af

+ 8 - 0
resource/locales/en-US/translation.json

@@ -738,6 +738,14 @@
 
   "importer_management": {
     "import_from": "Import from %s",
+    "import_form_growi": "Import from GROWI",
+    "growi_settings": {
+      "overwrite_documents": "Imported documents will overwrite existing documents",
+      "zip_file": "Zip File",
+      "extracted_file": "Extracted File",
+      "collection": "Collection",
+      "upload": "Upload"
+    },
     "esa_settings": {
       "team_name": "Team name",
       "access_token": "Access token",

+ 8 - 0
resource/locales/ja/translation.json

@@ -721,6 +721,14 @@
 
   "importer_management": {
     "import_from": "%s からインポート",
+    "import_form_growi": "GROWIからインポート",
+    "growi_settings": {
+      "overwrite_documents": "インポートされたドキュメントは既存のドキュメントを上書きします",
+      "zip_file": "Zip ファイル",
+      "extracted_file": "展開されたファイル",
+      "collection": "コレクション",
+      "upload": "アップロード"
+    },
     "esa_settings": {
       "team_name": "チーム名",
       "access_token": "アクセストークン",

+ 3 - 3
src/client/js/components/Admin/Import/GrowiZipImportForm.jsx

@@ -72,8 +72,8 @@ class GrowiImportForm extends React.Component {
             <thead>
               <tr>
                 <th></th>
-                <th>Extracted File</th>
-                <th>Collection</th>
+                <th>{t('importer_management.growi_settings.extracted_file')}</th>
+                <th>{t('importer_management.growi_settings.collection')}</th>
               </tr>
             </thead>
             <tbody>
@@ -100,7 +100,7 @@ class GrowiImportForm extends React.Component {
                       {checked && (
                         <tr>
                           <td className="text-muted" colSpan="3">
-                            TBD: define how to import {collectionName}
+                            TBD: define how {collectionName} are imported
                             {/* TODO: create a component for each collection to modify this.state.schema */}
                           </td>
                         </tr>

+ 2 - 3
src/client/js/components/Admin/Import/GrowiZipImportSection.jsx

@@ -28,15 +28,14 @@ class GrowiZipImportSection extends React.Component {
   }
 
   render() {
-    // eslint-disable-next-line no-unused-vars
     const { t } = this.props;
 
     return (
       <Fragment>
-        <legend>Import from GROWI</legend>
+        <legend>{t('importer_management.import_form_growi')}</legend>
         <div className="well well-sm small">
           <ul>
-            <li>Imported documents will overwrite existing pages</li>
+            <li>{t('importer_management.growi_settings.overwrite_documents')}</li>
           </ul>
         </div>
         <GrowiZipUploadForm

+ 2 - 3
src/client/js/components/Admin/Import/GrowiZipUploadForm.jsx

@@ -46,14 +46,13 @@ class GrowiZipUploadForm extends React.Component {
   }
 
   render() {
-    // eslint-disable-next-line no-unused-vars
     const { t } = this.props;
 
     return (
       <form className="form-horizontal" onSubmit={this.uploadZipFile}>
         <fieldset>
           <div className="form-group d-flex align-items-center">
-            <label htmlFor="file" className="col-xs-3 control-label">Zip File</label>
+            <label htmlFor="file" className="col-xs-3 control-label">{t('importer_management.growi_settings.zip_file')}</label>
             <div className="col-xs-6">
               <input
                 type="file"
@@ -67,7 +66,7 @@ class GrowiZipUploadForm extends React.Component {
           <div className="form-group">
             <div className="col-xs-offset-3 col-xs-6">
               <button type="submit" className="btn btn-primary" disabled={!this.validateForm()}>
-                Upload
+                {t('importer_management.growi_settings.upload')}
               </button>
             </div>
           </div>