Преглед изворни кода

fix translation.js ArchiveCreateModal PageShareManageMent

zahmis пре 6 година
родитељ
комит
1de531125c

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

@@ -48,6 +48,11 @@
   "Presentation Mode": "Presentation",
   "Not available for guest": "Not available for guest",
   "Shere this page link to public": "Shere this page link to public",
+  "Create Archive Page": "Create Archive Page",
+  "File type": "File type",
+  "Include Attachment File": "Include Attachment File",
+  "Include Comment": "Include Comment",
+  "Include Subordinated Page": "Include Subordinated Page",
   "username": "Username",
   "Created": "Created",
   "Last updated": "Updated",

+ 7 - 7
src/client/js/components/ArchiveCreateModal.jsx

@@ -10,20 +10,20 @@ const ArchiveCreateModal = (props) => {
 
   const { t } = props;
 
-  const [isCommentDownload, SetIsCommentDownload] = useState(false);
-  const [isFileDownload, SetIsFileDownload] = useState(false);
-  const [isSubordinatedPageDownload, SetIsSubordinatedPageDownload] = useState(false);
+  const [isCommentDownload, setIsCommentDownload] = useState(false);
+  const [isFileDownload, setIsFileDownload] = useState(false);
+  const [isSubordinatedPageDownload, setIsSubordinatedPageDownload] = useState(false);
 
 
   function changeIsCommentDownloadHandler() {
-    SetIsCommentDownload(true);
+    setIsCommentDownload(true);
   }
   function changeIsFileDownloadHandler() {
-    SetIsFileDownload(true);
+    setIsFileDownload(true);
   }
 
   function changeIsSubordinatedPageDownloadHandler() {
-    SetIsSubordinatedPageDownload(true);
+    setIsSubordinatedPageDownload(true);
   }
   return (
     <Modal size="lg" isOpen={props.isOpen} toggle={props.onClose}>
@@ -95,7 +95,7 @@ const ArchiveCreateModal = (props) => {
 ArchiveCreateModal.propTypes = {
   t: PropTypes.func.isRequired, //  i18next
   isOpen: PropTypes.bool.isRequired,
-  onClose: PropTypes.func.isRequired,
+  onClose: PropTypes.func,
 };
 
 export default withTranslation()(ArchiveCreateModal);

+ 1 - 1
src/client/js/components/Page/PageShareManagement.jsx

@@ -93,7 +93,7 @@ const PageShareManagement = (props) => {
         </button>
 
         <button className="dropdown-item" type="button" onClick={openArchiveModalHandler}>
-          <i className="icon-fw">アーカイブデータを作成する</i>
+          <i className="icon-fw">{t('Create Archive Page')}</i>
         </button>
 
       </div>