From 3377cd67af274594c09a4753f8f583881febf2d7 Mon Sep 17 00:00:00 2001 From: dingguodong Date: Wed, 17 Apr 2024 08:46:06 +0800 Subject: [PATCH] + Change the lang config when env is container. --- module/backup/lang/de.php | 3 +++ module/backup/lang/en.php | 3 +++ module/backup/lang/fr.php | 3 +++ module/backup/lang/zh-cn.php | 3 +++ module/backup/lang/zh-tw.php | 3 +++ 5 files changed, 15 insertions(+) diff --git a/module/backup/lang/de.php b/module/backup/lang/de.php index 8123ab503f..3285fc088a 100644 --- a/module/backup/lang/de.php +++ b/module/backup/lang/de.php @@ -27,6 +27,9 @@ $lang->backup->settingDir = 'Backup Directory'; $lang->backup->settingList['nofile'] = 'Do not back up files or codes.'; $lang->backup->settingList['nosafe'] = 'Do not prevent downloading PHP file header.'; +global $app; +if($app->isContainer()) $lang->backup->settingList['nofile'] = 'Do not back up files.'; + $lang->backup->waitting = ' In Arbeit. Bitte warten...'; $lang->backup->progressSQL = '

SQL backup: %s is backed up.

'; $lang->backup->progressAttach = '

SQL backup is completed.

Attachment backing up.

'; diff --git a/module/backup/lang/en.php b/module/backup/lang/en.php index ac3b7e3e28..17508544d1 100644 --- a/module/backup/lang/en.php +++ b/module/backup/lang/en.php @@ -27,6 +27,9 @@ $lang->backup->settingDir = 'Backup Directory'; $lang->backup->settingList['nofile'] = 'Do not back up files or codes.'; $lang->backup->settingList['nosafe'] = 'Do not prevent downloading PHP file header.'; +global $app; +if($app->isContainer()) $lang->backup->settingList['nofile'] = 'Do not back up files.'; + $lang->backup->waitting = ' is ongoing. Please wait...'; $lang->backup->progressSQL = '

SQL backup: %s is backed up.

'; $lang->backup->progressAttach = '

SQL backup is completed.

Attachment backing up.

'; diff --git a/module/backup/lang/fr.php b/module/backup/lang/fr.php index 1e55060221..dc183fc907 100644 --- a/module/backup/lang/fr.php +++ b/module/backup/lang/fr.php @@ -27,6 +27,9 @@ $lang->backup->settingDir = 'Répertoire Backup'; $lang->backup->settingList['nofile'] = 'Ne pas archiver fichiers et codes.'; $lang->backup->settingList['nosafe'] = 'Ne pas prévenir du téléchargement par PHP file header.'; +global $app; +if($app->isContainer()) $lang->backup->settingList['nofile'] = 'Ne pas archiver fichiers'; + $lang->backup->waitting = ' est en cours. Patientez s´il vous plait...'; $lang->backup->progressSQL = '

SQL backup: %s est sauvegardé.

'; $lang->backup->progressAttach = '

SQL backup est terminé.

Les fichiers sont en cours de sauvegarde.

'; diff --git a/module/backup/lang/zh-cn.php b/module/backup/lang/zh-cn.php index 849027f036..2e03fe2dd6 100644 --- a/module/backup/lang/zh-cn.php +++ b/module/backup/lang/zh-cn.php @@ -27,6 +27,9 @@ $lang->backup->settingDir = '备份目录'; $lang->backup->settingList['nofile'] = '不备份附件和代码'; $lang->backup->settingList['nosafe'] = '不需要防下载PHP文件头'; +global $app; +if($app->isContainer()) $lang->backup->settingList['nofile'] = '不备份附件'; + $lang->backup->waitting = '正在进行中,请稍候...'; $lang->backup->progressSQL = '

SQL备份中,已备份%s

'; $lang->backup->progressAttach = '

SQL备份完成

附件备份中,共有%s个文件,已经备份%s个

'; diff --git a/module/backup/lang/zh-tw.php b/module/backup/lang/zh-tw.php index 64f8c5e89f..ceb96c1ff8 100644 --- a/module/backup/lang/zh-tw.php +++ b/module/backup/lang/zh-tw.php @@ -26,6 +26,9 @@ $lang->backup->settingDir = '備份目錄'; $lang->backup->settingList['nofile'] = '不備份附件和代碼'; $lang->backup->settingList['nosafe'] = '不需要防下載PHP檔案頭'; +global $app; +if($app->isContainer()) $lang->backup->settingList['nofile'] = '不備份附件'; + $lang->backup->waitting = '正在進行中,請稍候...'; $lang->backup->progressSQL = '

SQL備份中,已備份%s

'; $lang->backup->progressAttach = '

SQL備份完成

附件備份中,共有%s個檔案,已經備份%s個

';