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

improve page bulk export settings translation

Futa Arai 1 год назад
Родитель
Сommit
05c9efa6d7

+ 1 - 2
apps/app/public/static/locales/en_US/admin.json

@@ -364,8 +364,7 @@
     "attach_enable": "You can attach files other than image files if you enable this option.",
     "page_bulk_export_settings": "Page Bulk Export Settings",
     "enable_page_bulk_export": "Enable bulk export",
-    "page_bulk_export_execute_explanation": "Users will be able to bulk export from the page menu.",
-    "page_bulk_export_explanation": "Below are settings for exporting a page and all of its child pages. Exported results will be deleted from the file system and cannot be downloaded when the configured storage period passes.",
+    "page_bulk_export_explanation": "When bulk export is enabled, users will be able to export a page and it's child pages from the page menu. Exported results will be deleted from the file system and cannot be downloaded when the configured storage period passes.",
     "page_bulk_export_warning": "Running multiple large exports consecutively can fill up the file system.",
     "page_bulk_export_storage_period": "Storage period",
     "update": "Update",

+ 1 - 2
apps/app/public/static/locales/fr_FR/admin.json

@@ -364,8 +364,7 @@
     "attach_enable": "Autorise le téléversement de fichiers de n'importe quel type",
     "page_bulk_export_settings": "Paramètres d'exportation de pages par lots",
     "enable_page_bulk_export": "Activer l'exportation groupée",
-    "page_bulk_export_execute_explanation": "Il peut être exécuté à partir du menu des pages individuelles.",
-    "page_bulk_export_explanation": "Configurez les paramètres pour l'exportation groupée de pages et de leurs pages subordonnées. Les résultats de l'exportation seront supprimés du système de fichiers après la période de conservation définie et ne seront plus disponibles au téléchargement.",
+    "page_bulk_export_explanation": "Lorsque l'exportation groupée est activée, les utilisateurs pourront exporter une page et ses pages enfants à partir du menu des pages. Les résultats exportés seront supprimés du système de fichiers et ne pourront pas être téléchargés une fois la période de stockage configurée écoulée.",
     "page_bulk_export_warning": "Les exportations continues comportant un grand nombre de pages peuvent surcharger le système de fichiers.",
     "page_bulk_export_storage_period": "Date limite de téléchargement",
     "update": "Sauvegarder",

+ 1 - 2
apps/app/public/static/locales/ja_JP/admin.json

@@ -374,8 +374,7 @@
     "attach_enable": "許可をしている場合、画像以外のファイルをページに添付可能になります。",
     "page_bulk_export_settings": "ページ一括エクスポート設定",
     "enable_page_bulk_export": "一括エクスポートを有効にする",
-    "page_bulk_export_execute_explanation": "個別ページのメニューから実行可能になります。",
-    "page_bulk_export_explanation": "ページとその配下ページの一括エクスポートの設定を行います。エクスポート結果は設定された保存期間を過ぎるとファイルシステムから削除され、ダウンロードできなくなります。",
+    "page_bulk_export_explanation": "一括エクスポートを有効にすると、ページメニューからそのページと配下ページのエクスポートが可能になります。エクスポート結果は設定された保存期間を過ぎるとファイルシステムから削除され、ダウンロードできなくなります。",
     "page_bulk_export_warning": "ページ数の多いエクスポートを連続で実行すると、ファイルシステムを圧迫する可能性があります。",
     "page_bulk_export_storage_period": "保存期間",
     "update": "更新",

+ 1 - 2
apps/app/public/static/locales/zh_CN/admin.json

@@ -373,8 +373,7 @@
     "attach_enable": "如果启用此选项,则可以附加图像文件以外的文件。",
     "page_bulk_export_settings": "页面批量导出设置",
     "enable_page_bulk_export": "启用批量导出",
-    "page_bulk_export_execute_explanation": "用户将能够从页面菜单批量导出。",
-    "page_bulk_export_explanation": "以下是导出页面及其所有子页面的设置。当配置的存储期限过后,导出的结果将从文件系统中删除,并且无法下载。",
+    "page_bulk_export_explanation": "启用批量导出后,用户将能够从页面菜单导出页面及其子页面。当配置的存储期限过后,导出的结果将从文件系统中删除,并且无法下载。",
     "page_bulk_export_warning": "连续运行多个大型导出可能会填满文件系统。",
     "page_bulk_export_storage_period": "储存期限",
     "update": "更新",

+ 2 - 6
apps/app/src/client/components/Admin/App/PageBulkExportSettings.tsx

@@ -41,7 +41,7 @@ const PageBulkExportSettings = (): JSX.Element => {
   useEffect(() => {
     setIsBulkExportPagesEnabled(data?.isBulkExportPagesEnabled);
     setBulkExportDownloadExpirationSeconds(data?.bulkExportDownloadExpirationSeconds);
-  }, [data, data?.isBulkExportPagesEnabled, data?.bulkExportDownloadExpirationSeconds]);
+  }, [data]);
 
   const isLoading = data === undefined && error === undefined;
 
@@ -81,10 +81,6 @@ const PageBulkExportSettings = (): JSX.Element => {
                 <label className="form-label form-check-label" htmlFor="cbIsPageBulkExportEnabled">
                   {t('app_setting.enable_page_bulk_export')}
                 </label>
-
-                <p className="form-text text-muted">
-                  {t('app_setting.page_bulk_export_execute_explanation')}
-                </p>
               </div>
             </div>
           </div>
@@ -95,7 +91,7 @@ const PageBulkExportSettings = (): JSX.Element => {
                 <label
                   className="text-start text-md-end col-md-3 col-form-label"
                 >
-                  {t('app_setting.page_bulk_export_expire_time')}
+                  {t('app_setting.page_bulk_export_storage_period')}
                 </label>
 
                 <div className="col-md-2">