Просмотр исходного кода

i18n GrowiZipImportConfigurationModal

Yuki Takei 6 лет назад
Родитель
Сommit
44fee43b7a

+ 1 - 1
resource/locales/en-US/translation.json

@@ -772,7 +772,7 @@
           },
           },
           "set_public_to_page": {
           "set_public_to_page": {
             "label": "Set 'Public' to the pages that is '{{from}}'",
             "label": "Set 'Public' to the pages that is '{{from}}'",
-            "desc": "Make sure that this configuration makes all <b>'{{from}}'</b> pages readable from <span class=\"text-danger\">ANY</span> users."
+            "desc": "Make sure that this configuration makes all <b>'{{from}}'</b> pages readable from <span class=\"text-danger\">ANY users</span>."
           },
           },
           "initialize_meta_datas": {
           "initialize_meta_datas": {
             "label": "Initialize page's like, read users and comment count",
             "label": "Initialize page's like, read users and comment count",

+ 10 - 10
resource/locales/ja/translation.json

@@ -752,26 +752,26 @@
       "configuration": {
       "configuration": {
         "pages": {
         "pages": {
           "overwrite_author": {
           "overwrite_author": {
-            "label": "Overwrite page's author with the current user",
-            "desc": "Recommended <span class=\"text-danger\">NOT</span> to check this when users will also be restored."
+            "label": "ページ作成者を現在のユーザーで上書きする",
+            "desc": "users を同時に復元しない場合、このオプションは<span class=\"text-danger\">非推奨</span>です。"
           },
           },
           "set_public_to_page": {
           "set_public_to_page": {
-            "label": "Set 'Public' to the pages that is '{{from}}'",
-            "desc": "Make sure that this configuration makes all <b>'{{from}}'</b> pages readable from <span class=\"text-danger\">ANY</span> users."
+            "label": "'{{from}}' 設定のページを '公開' 設定にする",
+            "desc": "全ての <b>'{{from}}'</b> 設定のページが<span class=\"text-danger\">全ユーザーから</span>読み取り可能になることに注意してください。"
           },
           },
           "initialize_meta_datas": {
           "initialize_meta_datas": {
-            "label": "Initialize page's like, read users and comment count",
-            "desc": "Recommended <span class=\"text-danger\">NOT</span> to check this when users will also be restored."
+            "label": "「いいね」「閲覧したユーザー」「コメント数」を初期化する",
+            "desc": "users を同時に復元しない場合、このオプションは<span class=\"text-danger\">非推奨</span>です。"
           },
           },
           "initialize_hackmd_related_datas": {
           "initialize_hackmd_related_datas": {
-            "label": "Initialize HackMD related data",
-            "desc": "Recommended to check this unless there is important drafts on HackMD."
+            "label": "HackMD 関連データを初期化する",
+            "desc": "HackMD に重要な下書きデータがない限りはこのオプションをチェックすることを推奨します。"
           }
           }
         },
         },
         "revisions": {
         "revisions": {
           "overwrite_author": {
           "overwrite_author": {
-            "label": "Overwrite revision's author with the current user",
-            "desc": "Recommended <span class=\"text-danger\">NOT</span> to check this when users will also be restored."
+            "label": "リビジョン作成者を現在のユーザーで上書きする",
+            "desc": "users を同時に復元しない場合、このオプションは<span class=\"text-danger\">非推奨</span>です。"
           }
           }
         }
         }
       }
       }

+ 6 - 6
src/client/js/components/Admin/ImportData/GrowiZipImportConfigurationModal.jsx

@@ -82,8 +82,8 @@ class GrowiZipImportConfigurationModal extends React.Component {
             onChange={() => this.changeHandler({ makePublicForGrant2: !option.makePublicForGrant2 })}
             onChange={() => this.changeHandler({ makePublicForGrant2: !option.makePublicForGrant2 })}
           />
           />
           <label htmlFor="cbOpt1">
           <label htmlFor="cbOpt1">
-            {t(`${translationBase}.set_public_to_page.label`, { from: 'Anyone with the link' })}
-            <p className="help-block mt-0" dangerouslySetInnerHTML={{ __html: t(`${translationBase}.set_public_to_page.desc`, { from: 'Anyone with the link' }) }} />
+            {t(`${translationBase}.set_public_to_page.label`, { from: t('Anyone with the link') })}
+            <p className="help-block mt-0" dangerouslySetInnerHTML={{ __html: t(`${translationBase}.set_public_to_page.desc`, { from: t('Anyone with the link') }) }} />
           </label>
           </label>
         </div>
         </div>
         <div className="checkbox checkbox-warning">
         <div className="checkbox checkbox-warning">
@@ -94,8 +94,8 @@ class GrowiZipImportConfigurationModal extends React.Component {
             onChange={() => this.changeHandler({ makePublicForGrant4: !option.makePublicForGrant4 })}
             onChange={() => this.changeHandler({ makePublicForGrant4: !option.makePublicForGrant4 })}
           />
           />
           <label htmlFor="cbOpt2">
           <label htmlFor="cbOpt2">
-            {t(`${translationBase}.set_public_to_page.label`, { from: 'Just me' })}
-            <p className="help-block mt-0" dangerouslySetInnerHTML={{ __html: t(`${translationBase}.set_public_to_page.desc`, { from: 'Just me' }) }} />
+            {t(`${translationBase}.set_public_to_page.label`, { from: t('Just me') })}
+            <p className="help-block mt-0" dangerouslySetInnerHTML={{ __html: t(`${translationBase}.set_public_to_page.desc`, { from: t('Just me') }) }} />
           </label>
           </label>
         </div>
         </div>
         <div className="checkbox checkbox-warning">
         <div className="checkbox checkbox-warning">
@@ -106,8 +106,8 @@ class GrowiZipImportConfigurationModal extends React.Component {
             onChange={() => this.changeHandler({ makePublicForGrant5: !option.makePublicForGrant5 })}
             onChange={() => this.changeHandler({ makePublicForGrant5: !option.makePublicForGrant5 })}
           />
           />
           <label htmlFor="cbOpt3">
           <label htmlFor="cbOpt3">
-            {t(`${translationBase}.set_public_to_page.label`, { from: 'Only inside the group' })}
-            <p className="help-block mt-0" dangerouslySetInnerHTML={{ __html: t(`${translationBase}.set_public_to_page.desc`, { from: 'Only inside the group' }) }} />
+            {t(`${translationBase}.set_public_to_page.label`, { from: t('Only inside the group') })}
+            <p className="help-block mt-0" dangerouslySetInnerHTML={{ __html: t(`${translationBase}.set_public_to_page.desc`, { from: t('Only inside the group') }) }} />
           </label>
           </label>
         </div>
         </div>
         <div className="checkbox checkbox-default">
         <div className="checkbox checkbox-default">