From f00220298c732a40070c88a9c0bf9565ef63bf32 Mon Sep 17 00:00:00 2001 From: HachemJ Date: Tue, 21 Jul 2026 15:52:25 -0400 Subject: [PATCH 1/6] add missing translations --- modules/imaging_uploader/jsx/ImagingUploader.js | 1 + .../imaging_uploader/locale/fr/LC_MESSAGES/imaging_uploader.po | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/imaging_uploader/jsx/ImagingUploader.js b/modules/imaging_uploader/jsx/ImagingUploader.js index 0c9e156436..2359a98289 100644 --- a/modules/imaging_uploader/jsx/ImagingUploader.js +++ b/modules/imaging_uploader/jsx/ImagingUploader.js @@ -18,6 +18,7 @@ class ImagingUploader extends Component { * @param {object} props - React Component properties */ constructor(props) { + const {t} = props; super(props); this.state = { diff --git a/modules/imaging_uploader/locale/fr/LC_MESSAGES/imaging_uploader.po b/modules/imaging_uploader/locale/fr/LC_MESSAGES/imaging_uploader.po index ad88ac4451..2e26884a74 100644 --- a/modules/imaging_uploader/locale/fr/LC_MESSAGES/imaging_uploader.po +++ b/modules/imaging_uploader/locale/fr/LC_MESSAGES/imaging_uploader.po @@ -148,7 +148,7 @@ msgstr "Détaillé" #, fuzzy msgid "" +msgstr "" #, fuzzy msgid "Number Of Files Created" From ceefe5a0d3360e2947997a74a18582057ebed9d7 Mon Sep 17 00:00:00 2001 From: HachemJ Date: Wed, 22 Jul 2026 18:39:54 -0400 Subject: [PATCH 2/6] fix merge conflicts with critical to release imaging_uploader PR that got merged --- modules/imaging_uploader/jsx/ImagingUploader.js | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/imaging_uploader/jsx/ImagingUploader.js b/modules/imaging_uploader/jsx/ImagingUploader.js index 2359a98289..0c9e156436 100644 --- a/modules/imaging_uploader/jsx/ImagingUploader.js +++ b/modules/imaging_uploader/jsx/ImagingUploader.js @@ -18,7 +18,6 @@ class ImagingUploader extends Component { * @param {object} props - React Component properties */ constructor(props) { - const {t} = props; super(props); this.state = { From 5cadb3aaa1c66147a33fecccf7d3ec989d400ad4 Mon Sep 17 00:00:00 2001 From: HachemJ Date: Thu, 23 Jul 2026 12:02:44 -0400 Subject: [PATCH 3/6] uniformizing 'Upload Successful' to 'Upload successful' and moving it to LORIS namespace and adapting code accordingly --- locale/fr/LC_MESSAGES/loris.po | 3 +++ locale/hi/LC_MESSAGES/loris.po | 3 +++ locale/ja/LC_MESSAGES/loris.po | 3 +++ locale/loris.pot | 2 ++ locale/zh/LC_MESSAGES/loris.po | 3 +++ modules/data_release/jsx/uploadFileForm.js | 2 +- modules/data_release/locale/data_release.pot | 3 --- modules/data_release/locale/fr/LC_MESSAGES/data_release.po | 3 --- modules/data_release/locale/hi/LC_MESSAGES/data_release.po | 3 --- modules/data_release/locale/ja/LC_MESSAGES/data_release.po | 3 --- modules/data_release/locale/zh/LC_MESSAGES/data_release.po | 3 --- modules/document_repository/jsx/uploadForm.js | 4 ++-- modules/document_repository/locale/document_repository.pot | 3 --- .../locale/fr/LC_MESSAGES/document_repository.po | 4 ---- .../locale/hi/LC_MESSAGES/document_repository.po | 3 --- .../locale/ja/LC_MESSAGES/document_repository.po | 3 --- .../locale/zh/LC_MESSAGES/document_repository.po | 3 --- modules/electrophysiology_uploader/jsx/UploadForm.js | 4 ++-- .../locale/electrophysiology_uploader.pot | 3 --- .../locale/fr/LC_MESSAGES/electrophysiology_uploader.po | 4 ---- .../locale/hi/LC_MESSAGES/electrophysiology_uploader.po | 3 --- .../locale/ja/LC_MESSAGES/electrophysiology_uploader.po | 3 --- .../locale/zh/LC_MESSAGES/electrophysiology_uploader.po | 3 --- .../jsx/tabs_content/filemanager/uploadForm.js | 3 +-- modules/imaging_uploader/jsx/UploadForm.js | 2 +- .../locale/fr/LC_MESSAGES/imaging_uploader.po | 4 ---- .../locale/hi/LC_MESSAGES/imaging_uploader.po | 3 --- modules/imaging_uploader/locale/imaging_uploader.pot | 3 --- .../locale/ja/LC_MESSAGES/imaging_uploader.po | 3 --- .../locale/zh/LC_MESSAGES/imaging_uploader.po | 3 --- modules/instrument_manager/jsx/uploadForm.js | 2 +- .../locale/fr/LC_MESSAGES/instrument_manager.po | 3 --- modules/instrument_manager/locale/instrument_manager.pot | 3 --- modules/issue_tracker/jsx/attachments/uploadForm.js | 4 ++-- modules/issue_tracker/locale/fr/LC_MESSAGES/issue_tracker.po | 3 --- modules/issue_tracker/locale/hi/LC_MESSAGES/issue_tracker.po | 3 --- modules/issue_tracker/locale/issue_tracker.pot | 3 --- modules/issue_tracker/locale/ja/LC_MESSAGES/issue_tracker.po | 3 --- modules/media/jsx/editForm.js | 2 +- 39 files changed, 25 insertions(+), 93 deletions(-) diff --git a/locale/fr/LC_MESSAGES/loris.po b/locale/fr/LC_MESSAGES/loris.po index 920ae5d294..0425f35cab 100644 --- a/locale/fr/LC_MESSAGES/loris.po +++ b/locale/fr/LC_MESSAGES/loris.po @@ -649,3 +649,6 @@ msgstr "État du contrôle qualité" msgid "TarchiveID" msgstr "Identifiant de tarchive" + +msgid "Upload successful!" +msgstr "Téléversement réussi!" diff --git a/locale/hi/LC_MESSAGES/loris.po b/locale/hi/LC_MESSAGES/loris.po index d4492992d5..31a9283bc6 100644 --- a/locale/hi/LC_MESSAGES/loris.po +++ b/locale/hi/LC_MESSAGES/loris.po @@ -584,3 +584,6 @@ msgstr "QC स्थिति" msgid "TarchiveID" msgstr "टीआर्काइवआईडी" + +msgid "Upload successful!" +msgstr "अपलोड सफल!" diff --git a/locale/ja/LC_MESSAGES/loris.po b/locale/ja/LC_MESSAGES/loris.po index 8b176fb185..a05c7a737a 100644 --- a/locale/ja/LC_MESSAGES/loris.po +++ b/locale/ja/LC_MESSAGES/loris.po @@ -608,3 +608,6 @@ msgstr "品質管理状況" msgid "TarchiveID" msgstr "TarchiveID" + +msgid "Upload successful!" +msgstr "アップロード成功しました!" diff --git a/locale/loris.pot b/locale/loris.pot index ab4f2fabeb..410c1afd79 100644 --- a/locale/loris.pot +++ b/locale/loris.pot @@ -618,4 +618,6 @@ msgid "QC Status" msgstr "" msgid "TarchiveID" + +msgid "Upload successful!" msgstr "" diff --git a/locale/zh/LC_MESSAGES/loris.po b/locale/zh/LC_MESSAGES/loris.po index bd32c706a3..2ecfdd1c1d 100644 --- a/locale/zh/LC_MESSAGES/loris.po +++ b/locale/zh/LC_MESSAGES/loris.po @@ -589,3 +589,6 @@ msgstr "质量控制状态" msgid "TarchiveID" msgstr "档案ID" + +msgid "Upload successful!" +msgstr "上传成功!" diff --git a/modules/data_release/jsx/uploadFileForm.js b/modules/data_release/jsx/uploadFileForm.js index e97dc31fc8..28ee53e48d 100644 --- a/modules/data_release/jsx/uploadFileForm.js +++ b/modules/data_release/jsx/uploadFileForm.js @@ -228,7 +228,7 @@ class UploadFileForm extends Component { console.error(msg); } else { swal.fire({ - text: t('Upload Successful!', {ns: 'data_release'}), + text: t('Upload successful!', {ns: 'loris'}), title: '', type: 'success', confirmButtonText: t('OK', {ns: 'loris'}), diff --git a/modules/data_release/locale/data_release.pot b/modules/data_release/locale/data_release.pot index 8504175ccf..5ecda83b3a 100644 --- a/modules/data_release/locale/data_release.pot +++ b/modules/data_release/locale/data_release.pot @@ -69,9 +69,6 @@ msgstr "" msgid "Upload error!" msgstr "" -msgid "Upload Successful!" -msgstr "" - msgid "A file with this name already exists!" msgstr "" diff --git a/modules/data_release/locale/fr/LC_MESSAGES/data_release.po b/modules/data_release/locale/fr/LC_MESSAGES/data_release.po index 0dd57107b0..a8070d07bf 100644 --- a/modules/data_release/locale/fr/LC_MESSAGES/data_release.po +++ b/modules/data_release/locale/fr/LC_MESSAGES/data_release.po @@ -73,9 +73,6 @@ msgstr "Erreur" msgid "Upload error!" msgstr "Erreur de téléversement!" -msgid "Upload Successful!" -msgstr "Téléversement réussi!" - msgid "A file with this name already exists!" msgstr "Un fichier portant ce nom existe déjà!" diff --git a/modules/data_release/locale/hi/LC_MESSAGES/data_release.po b/modules/data_release/locale/hi/LC_MESSAGES/data_release.po index 2faa746aa7..5de6893aaf 100644 --- a/modules/data_release/locale/hi/LC_MESSAGES/data_release.po +++ b/modules/data_release/locale/hi/LC_MESSAGES/data_release.po @@ -70,9 +70,6 @@ msgstr "त्रुटि" msgid "Upload error!" msgstr "अपलोड त्रुटि!" -msgid "Upload Successful!" -msgstr "अपलोड सफल!" - msgid "A file with this name already exists!" msgstr "इस नाम की फ़ाइल पहले से मौजूद है!" diff --git a/modules/data_release/locale/ja/LC_MESSAGES/data_release.po b/modules/data_release/locale/ja/LC_MESSAGES/data_release.po index cb234f49a5..b32a63e938 100644 --- a/modules/data_release/locale/ja/LC_MESSAGES/data_release.po +++ b/modules/data_release/locale/ja/LC_MESSAGES/data_release.po @@ -70,9 +70,6 @@ msgstr "エラー" msgid "Upload error!" msgstr "アップロードエラー" -msgid "Upload Successful!" -msgstr "アップロード成功しました!" - msgid "A file with this name already exists!" msgstr "この名前のファイルは既に存在します。" diff --git a/modules/data_release/locale/zh/LC_MESSAGES/data_release.po b/modules/data_release/locale/zh/LC_MESSAGES/data_release.po index 0ee7912763..748748025f 100644 --- a/modules/data_release/locale/zh/LC_MESSAGES/data_release.po +++ b/modules/data_release/locale/zh/LC_MESSAGES/data_release.po @@ -70,9 +70,6 @@ msgstr "错误" msgid "Upload error!" msgstr "上传错误!" -msgid "Upload Successful!" -msgstr "上传成功!" - msgid "A file with this name already exists!" msgstr "同名的文件已存在!" diff --git a/modules/document_repository/jsx/uploadForm.js b/modules/document_repository/jsx/uploadForm.js index 78a72061a0..a4e896378d 100644 --- a/modules/document_repository/jsx/uploadForm.js +++ b/modules/document_repository/jsx/uploadForm.js @@ -234,8 +234,8 @@ class DocUploadForm extends Component { resp.json().then((data) => { if (data.error_count === 0) { swal.fire( - this.props.t('Upload Successful!', - {ns: 'document_repository'}), + this.props.t('Upload successful!', + {ns: 'loris'}), '', 'success' ).then((result) => { diff --git a/modules/document_repository/locale/document_repository.pot b/modules/document_repository/locale/document_repository.pot index 1d72930b21..0daa90369d 100644 --- a/modules/document_repository/locale/document_repository.pot +++ b/modules/document_repository/locale/document_repository.pot @@ -51,9 +51,6 @@ msgstr "" msgid "Uploading..." msgstr "" -msgid "Upload Successful!" -msgstr "" - msgid "Upload Incomplete" msgstr "" diff --git a/modules/document_repository/locale/fr/LC_MESSAGES/document_repository.po b/modules/document_repository/locale/fr/LC_MESSAGES/document_repository.po index 8ca2c05067..0f9a70fc6c 100644 --- a/modules/document_repository/locale/fr/LC_MESSAGES/document_repository.po +++ b/modules/document_repository/locale/fr/LC_MESSAGES/document_repository.po @@ -54,10 +54,6 @@ msgstr "Téléverser fichier(s)" msgid "Uploading..." msgstr "Téléversement..." -#, fuzzy -msgid "Upload Successful!" -msgstr "Téléversement réussi!" - msgid "Upload Incomplete" msgstr "Téléversement incomplet" diff --git a/modules/document_repository/locale/hi/LC_MESSAGES/document_repository.po b/modules/document_repository/locale/hi/LC_MESSAGES/document_repository.po index f83dbca245..7f2833a6a3 100644 --- a/modules/document_repository/locale/hi/LC_MESSAGES/document_repository.po +++ b/modules/document_repository/locale/hi/LC_MESSAGES/document_repository.po @@ -51,9 +51,6 @@ msgstr "फ़ाइल(ें) अपलोड करें" msgid "Uploading..." msgstr "अपलोड हो रहा है..." -msgid "Upload Successful!" -msgstr "अपलोड सफल रहा!" - msgid "Upload Incomplete" msgstr "अपलोड अधूरा है" diff --git a/modules/document_repository/locale/ja/LC_MESSAGES/document_repository.po b/modules/document_repository/locale/ja/LC_MESSAGES/document_repository.po index 0cb24d0778..d1d1c3e42b 100644 --- a/modules/document_repository/locale/ja/LC_MESSAGES/document_repository.po +++ b/modules/document_repository/locale/ja/LC_MESSAGES/document_repository.po @@ -52,9 +52,6 @@ msgstr "ファイルをアップロード" msgid "Uploading..." msgstr "アップロード中..." -msgid "Upload Successful!" -msgstr "アップロード成功しました!" - msgid "Upload Incomplete" msgstr "アップロードが不完全です" diff --git a/modules/document_repository/locale/zh/LC_MESSAGES/document_repository.po b/modules/document_repository/locale/zh/LC_MESSAGES/document_repository.po index f37b84e5ae..48af11f45d 100644 --- a/modules/document_repository/locale/zh/LC_MESSAGES/document_repository.po +++ b/modules/document_repository/locale/zh/LC_MESSAGES/document_repository.po @@ -52,9 +52,6 @@ msgstr "上传文件" msgid "Uploading..." msgstr "正在上传..." -msgid "Upload Successful!" -msgstr "上传成功!" - msgid "Upload Incomplete" msgstr "上传不完整" diff --git a/modules/electrophysiology_uploader/jsx/UploadForm.js b/modules/electrophysiology_uploader/jsx/UploadForm.js index ba140c9920..ee88aa81f8 100644 --- a/modules/electrophysiology_uploader/jsx/UploadForm.js +++ b/modules/electrophysiology_uploader/jsx/UploadForm.js @@ -163,8 +163,8 @@ export default function UploadForm(props) { {ns: 'electrophysiology_uploader'}); } swal.fire({ - title: t('Upload Successful!', - {ns: 'electrophysiology_uploader'}), + title: t('Upload successful!', + {ns: 'loris'}), text: text, type: 'success', }).then((result) => { diff --git a/modules/electrophysiology_uploader/locale/electrophysiology_uploader.pot b/modules/electrophysiology_uploader/locale/electrophysiology_uploader.pot index e6725de22c..1bdfa3fec5 100644 --- a/modules/electrophysiology_uploader/locale/electrophysiology_uploader.pot +++ b/modules/electrophysiology_uploader/locale/electrophysiology_uploader.pot @@ -57,9 +57,6 @@ msgstr "" msgid "The file does not respect name convention" msgstr "" -msgid "Upload Successful!" -msgstr "" - msgid "Processing of this file by the EEG pipeline has started" msgstr "" diff --git a/modules/electrophysiology_uploader/locale/fr/LC_MESSAGES/electrophysiology_uploader.po b/modules/electrophysiology_uploader/locale/fr/LC_MESSAGES/electrophysiology_uploader.po index 0b4478c3a3..39d148028f 100644 --- a/modules/electrophysiology_uploader/locale/fr/LC_MESSAGES/electrophysiology_uploader.po +++ b/modules/electrophysiology_uploader/locale/fr/LC_MESSAGES/electrophysiology_uploader.po @@ -67,10 +67,6 @@ msgstr "Le nom du fichier doit être au format" msgid "The file does not respect name convention" msgstr "Le fichier ne respecte pas la convention de nomenclature." -#, fuzzy -msgid "Upload Successful!" -msgstr "Téléversement réussi!" - #, fuzzy msgid "Processing of this file by the EEG pipeline has started" msgstr "Le traitement de ce fichier par le pipeline EEG a commencé." diff --git a/modules/electrophysiology_uploader/locale/hi/LC_MESSAGES/electrophysiology_uploader.po b/modules/electrophysiology_uploader/locale/hi/LC_MESSAGES/electrophysiology_uploader.po index b93ea2d24d..6689873755 100644 --- a/modules/electrophysiology_uploader/locale/hi/LC_MESSAGES/electrophysiology_uploader.po +++ b/modules/electrophysiology_uploader/locale/hi/LC_MESSAGES/electrophysiology_uploader.po @@ -58,9 +58,6 @@ msgstr "फ़ाइलनाम इस रूप में होना चा msgid "The file does not respect name convention" msgstr "फ़ाइल नाम परंपरा का पालन नहीं करती है" -msgid "Upload Successful!" -msgstr "अपलोड सफल!" - msgid "Processing of this file by the EEG pipeline has started" msgstr "EEG पाइपलाइन द्वारा इस फ़ाइल की प्रोसेसिंग शुरू हो गई है" diff --git a/modules/electrophysiology_uploader/locale/ja/LC_MESSAGES/electrophysiology_uploader.po b/modules/electrophysiology_uploader/locale/ja/LC_MESSAGES/electrophysiology_uploader.po index 18a83cca3a..10271f9067 100644 --- a/modules/electrophysiology_uploader/locale/ja/LC_MESSAGES/electrophysiology_uploader.po +++ b/modules/electrophysiology_uploader/locale/ja/LC_MESSAGES/electrophysiology_uploader.po @@ -58,9 +58,6 @@ msgstr "ファイル名は次の形式である必要があります" msgid "The file does not respect name convention" msgstr "ファイルは命名規則に従っていません" -msgid "Upload Successful!" -msgstr "アップロード成功しました!" - msgid "Processing of this file by the EEG pipeline has started" msgstr "電気生理学パイプラインによるこのファイルの処理が開始されました。" diff --git a/modules/electrophysiology_uploader/locale/zh/LC_MESSAGES/electrophysiology_uploader.po b/modules/electrophysiology_uploader/locale/zh/LC_MESSAGES/electrophysiology_uploader.po index e6545895f1..18daa8aeeb 100644 --- a/modules/electrophysiology_uploader/locale/zh/LC_MESSAGES/electrophysiology_uploader.po +++ b/modules/electrophysiology_uploader/locale/zh/LC_MESSAGES/electrophysiology_uploader.po @@ -58,9 +58,6 @@ msgstr "文件名应采用以下形式" msgid "The file does not respect name convention" msgstr "该文件不遵守名称约定" -msgid "Upload Successful!" -msgstr "上传成功!" - msgid "Processing of this file by the EEG pipeline has started" msgstr "EEG 管道已开始处理此文件" diff --git a/modules/genomic_browser/jsx/tabs_content/filemanager/uploadForm.js b/modules/genomic_browser/jsx/tabs_content/filemanager/uploadForm.js index 28844b0be5..34e5d8494a 100644 --- a/modules/genomic_browser/jsx/tabs_content/filemanager/uploadForm.js +++ b/modules/genomic_browser/jsx/tabs_content/filemanager/uploadForm.js @@ -204,8 +204,7 @@ class GenomicUploadForm extends Component { }, // reset form data after successful file upload uploadProgress: -1, }); - swal.fire(t('Upload Successful!', {ns: 'genomic_browser'}), '', - 'success'); + swal.fire('Upload successful!', '', 'success'); this.props.closeFileUploadModal(); } ).catch((error) => { diff --git a/modules/imaging_uploader/jsx/UploadForm.js b/modules/imaging_uploader/jsx/UploadForm.js index c8dd5985c5..e3cea36847 100644 --- a/modules/imaging_uploader/jsx/UploadForm.js +++ b/modules/imaging_uploader/jsx/UploadForm.js @@ -327,7 +327,7 @@ class UploadForm extends Component { {ns: 'imaging_uploader'}); } swal.fire({ - title: t('Upload Successful!', {ns: 'imaging_uploader'}), + title: t('Upload successful!', {ns: 'loris'}), text: text, type: 'success', confirmButtonText: t('OK', {ns: 'loris'}), diff --git a/modules/imaging_uploader/locale/fr/LC_MESSAGES/imaging_uploader.po b/modules/imaging_uploader/locale/fr/LC_MESSAGES/imaging_uploader.po index 2e26884a74..6cbed3f8ce 100644 --- a/modules/imaging_uploader/locale/fr/LC_MESSAGES/imaging_uploader.po +++ b/modules/imaging_uploader/locale/fr/LC_MESSAGES/imaging_uploader.po @@ -105,10 +105,6 @@ msgstr "Votre téléversement a été annulé." msgid "A file with this name has been uploaded but has not yet been processed by the MRI pipeline. Would you like to overwrite the existing file?" msgstr "Un fichier portant ce nom a été téléversé, mais n'a pas encore été traité par le pipeline IRM. Souhaitez-vous remplacer le fichier existant ?" -#, fuzzy -msgid "Upload Successful!" -msgstr "Téléversement réussi !" - #, fuzzy msgid "Processing of this file by the MRI pipeline has started" msgstr "Le traitement de ce fichier par le pipeline IRM a commencé." diff --git a/modules/imaging_uploader/locale/hi/LC_MESSAGES/imaging_uploader.po b/modules/imaging_uploader/locale/hi/LC_MESSAGES/imaging_uploader.po index d8550b7916..7525c88e40 100644 --- a/modules/imaging_uploader/locale/hi/LC_MESSAGES/imaging_uploader.po +++ b/modules/imaging_uploader/locale/hi/LC_MESSAGES/imaging_uploader.po @@ -85,9 +85,6 @@ msgstr "आपका अपलोड रद्द कर दिया गया msgid "A file with this name has been uploaded but has not yet been processed by the MRI pipeline. Would you like to overwrite the existing file?" msgstr "इस नाम की फ़ाइल अपलोड की गई है लेकिन अभी MRI पाइपलाइन द्वारा प्रोसेस नहीं हुई है। क्या आप मौजूदा फ़ाइल को अधिलेखित करना चाहेंगे?" -msgid "Upload Successful!" -msgstr "अपलोड सफल!" - msgid "Processing of this file by the MRI pipeline has started" msgstr "इस फ़ाइल का MRI पाइपलाइन द्वारा प्रोसेसिंग शुरू हो गई है" diff --git a/modules/imaging_uploader/locale/imaging_uploader.pot b/modules/imaging_uploader/locale/imaging_uploader.pot index 6b7d5d765a..7ec8d663c6 100644 --- a/modules/imaging_uploader/locale/imaging_uploader.pot +++ b/modules/imaging_uploader/locale/imaging_uploader.pot @@ -84,9 +84,6 @@ msgstr "" msgid "A file with this name has been uploaded but has not yet been processed by the MRI pipeline. Would you like to overwrite the existing file?" msgstr "" -msgid "Upload Successful!" -msgstr "" - msgid "Processing of this file by the MRI pipeline has started" msgstr "" diff --git a/modules/imaging_uploader/locale/ja/LC_MESSAGES/imaging_uploader.po b/modules/imaging_uploader/locale/ja/LC_MESSAGES/imaging_uploader.po index d6186b7b95..d78771be75 100644 --- a/modules/imaging_uploader/locale/ja/LC_MESSAGES/imaging_uploader.po +++ b/modules/imaging_uploader/locale/ja/LC_MESSAGES/imaging_uploader.po @@ -85,9 +85,6 @@ msgstr "アップロードはキャンセルされました。" msgid "A file with this name has been uploaded but has not yet been processed by the MRI pipeline. Would you like to overwrite the existing file?" msgstr "この名前のファイルはアップロードされていますが、MRIパイプラインでまだ処理されていません。既存のファイルを上書きしますか?" -msgid "Upload Successful!" -msgstr "アップロード成功しました!" - msgid "Processing of this file by the MRI pipeline has started" msgstr "MRIパイプラインによるこのファイルの処理が開始されました" diff --git a/modules/imaging_uploader/locale/zh/LC_MESSAGES/imaging_uploader.po b/modules/imaging_uploader/locale/zh/LC_MESSAGES/imaging_uploader.po index d1cf7dc95f..38f15435a3 100644 --- a/modules/imaging_uploader/locale/zh/LC_MESSAGES/imaging_uploader.po +++ b/modules/imaging_uploader/locale/zh/LC_MESSAGES/imaging_uploader.po @@ -85,9 +85,6 @@ msgstr "您的上传已被取消。" msgid "A file with this name has been uploaded but has not yet been processed by the MRI pipeline. Would you like to overwrite the existing file?" msgstr "具有此名称的文件已上传,但尚未由 MRI 管道处理。您想覆盖现有文件吗?" -msgid "Upload Successful!" -msgstr "上传成功!" - msgid "Processing of this file by the MRI pipeline has started" msgstr "MRI 管道已开始处理此文件" diff --git a/modules/instrument_manager/jsx/uploadForm.js b/modules/instrument_manager/jsx/uploadForm.js index bcb399a8a4..496c3d26ff 100644 --- a/modules/instrument_manager/jsx/uploadForm.js +++ b/modules/instrument_manager/jsx/uploadForm.js @@ -63,7 +63,7 @@ class InstrumentUploadForm extends Component { .then((data) => { if (data.message) { swal.fire({ - title: t('Upload Successful!', {ns: 'instrument_manager'}), + title: t('Upload successful!', {ns: 'loris'}), type: t('success', {ns: 'instrument_manager'}), text: data.message, }).then(function() { diff --git a/modules/instrument_manager/locale/fr/LC_MESSAGES/instrument_manager.po b/modules/instrument_manager/locale/fr/LC_MESSAGES/instrument_manager.po index 7603230e9e..02a9fce902 100644 --- a/modules/instrument_manager/locale/fr/LC_MESSAGES/instrument_manager.po +++ b/modules/instrument_manager/locale/fr/LC_MESSAGES/instrument_manager.po @@ -85,9 +85,6 @@ msgstr "Installation réussie!" msgid "success" msgstr "succès" -msgid "Upload Successful!" -msgstr "Téléversement réussi!" - msgid "Instrument file" msgstr "Fichier d'instrument" diff --git a/modules/instrument_manager/locale/instrument_manager.pot b/modules/instrument_manager/locale/instrument_manager.pot index 45ddc91908..ab89acf918 100644 --- a/modules/instrument_manager/locale/instrument_manager.pot +++ b/modules/instrument_manager/locale/instrument_manager.pot @@ -84,9 +84,6 @@ msgstr "" msgid "success" msgstr "" -msgid "Upload Successful!" -msgstr "" - msgid "Instrument file" msgstr "" diff --git a/modules/issue_tracker/jsx/attachments/uploadForm.js b/modules/issue_tracker/jsx/attachments/uploadForm.js index 1f6298a370..d9c67a678c 100644 --- a/modules/issue_tracker/jsx/attachments/uploadForm.js +++ b/modules/issue_tracker/jsx/attachments/uploadForm.js @@ -101,8 +101,8 @@ class IssueUploadAttachmentForm extends Component { uploadProgress: -1, }); swal.fire( - this.props.t('Upload Successful!', - {ns: 'issue_tracker'}), + this.props.t('Upload successful!', + {ns: 'loris'}), '', 'success' ); diff --git a/modules/issue_tracker/locale/fr/LC_MESSAGES/issue_tracker.po b/modules/issue_tracker/locale/fr/LC_MESSAGES/issue_tracker.po index ab18e56a80..58dc900fc6 100644 --- a/modules/issue_tracker/locale/fr/LC_MESSAGES/issue_tracker.po +++ b/modules/issue_tracker/locale/fr/LC_MESSAGES/issue_tracker.po @@ -226,9 +226,6 @@ msgstr "Aucun incident ne correspond aux filtres sélectionnés." msgid "Please confirm the request to delete the \"{{fileName}}\" attachment." msgstr "Veuillez confirmer la demande de suppression de la pièce jointe « {{fileName}} »." -msgid "Upload Successful!" -msgstr "Téléversement réussi !" - msgid "Upload error!" msgstr "Erreur lors du téléversement !" diff --git a/modules/issue_tracker/locale/hi/LC_MESSAGES/issue_tracker.po b/modules/issue_tracker/locale/hi/LC_MESSAGES/issue_tracker.po index 03e8bdb95d..d1ae343176 100644 --- a/modules/issue_tracker/locale/hi/LC_MESSAGES/issue_tracker.po +++ b/modules/issue_tracker/locale/hi/LC_MESSAGES/issue_tracker.po @@ -298,9 +298,6 @@ msgstr "संलग्नक इतिहास" msgid "Please confirm the request to delete the \"{{fileName}}\" attachment." msgstr "कृपया \"{{fileName}}\" संलग्नक को हटाने के अनुरोध की पुष्टि करें" -msgid "Upload Successful!" -msgstr "अपलोड सफल!" - msgid "Upload error!" msgstr "अपलोड त्रुटि!" diff --git a/modules/issue_tracker/locale/issue_tracker.pot b/modules/issue_tracker/locale/issue_tracker.pot index 837131d6c8..bdae20bf35 100644 --- a/modules/issue_tracker/locale/issue_tracker.pot +++ b/modules/issue_tracker/locale/issue_tracker.pot @@ -210,9 +210,6 @@ msgstr[0] "" msgid "Please confirm the request to delete the \"{{fileName}}\" attachment." msgstr "" -msgid "Upload Successful!" -msgstr "" - msgid "Upload error!" msgstr "" diff --git a/modules/issue_tracker/locale/ja/LC_MESSAGES/issue_tracker.po b/modules/issue_tracker/locale/ja/LC_MESSAGES/issue_tracker.po index 7bb4c8372c..d3f51d81a3 100644 --- a/modules/issue_tracker/locale/ja/LC_MESSAGES/issue_tracker.po +++ b/modules/issue_tracker/locale/ja/LC_MESSAGES/issue_tracker.po @@ -214,9 +214,6 @@ msgstr[0] "{{count}} 件のコメント" msgid "Please confirm the request to delete the \"{{fileName}}\" attachment." msgstr "添付ファイル「{{fileName}}」の削除リクエストを確認してください。" -msgid "Upload Successful!" -msgstr "アップロードに成功しました!" - msgid "Upload error!" msgstr "アップロードエラー!" diff --git a/modules/media/jsx/editForm.js b/modules/media/jsx/editForm.js index 7dbeaff16d..92a7a7c92d 100644 --- a/modules/media/jsx/editForm.js +++ b/modules/media/jsx/editForm.js @@ -216,7 +216,7 @@ class MediaEditForm extends Component { let xhr = new XMLHttpRequest(); xhr.addEventListener('load', () => { if (xhr.status < 400) { - swal.fire(t('Upload Successful!', {ns: 'media'}), + swal.fire(t('Upload successful!', {ns: 'loris'}), '', 'success'); this.props.fetchData(); } else { From 249cff5d4477b6f1ae92d77e15471184800e9349 Mon Sep 17 00:00:00 2001 From: HachemJ Date: Thu, 23 Jul 2026 11:31:35 -0400 Subject: [PATCH 4/6] Fix Japanese translation for 'Logs to display' --- .../imaging_uploader/locale/ja/LC_MESSAGES/imaging_uploader.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/imaging_uploader/locale/ja/LC_MESSAGES/imaging_uploader.po b/modules/imaging_uploader/locale/ja/LC_MESSAGES/imaging_uploader.po index d78771be75..309023a01c 100644 --- a/modules/imaging_uploader/locale/ja/LC_MESSAGES/imaging_uploader.po +++ b/modules/imaging_uploader/locale/ja/LC_MESSAGES/imaging_uploader.po @@ -107,7 +107,7 @@ msgid "Log Viewer" msgstr "ログビューア" msgid "Logs to display" -msgstr "表示する" +msgstr "表示するログ" msgid "Summary" msgstr "まとめ" From 687b7aaa4a25bccb8c1699a19b60824a70fe8ab9 Mon Sep 17 00:00:00 2001 From: HachemJ Date: Thu, 23 Jul 2026 11:28:55 -0400 Subject: [PATCH 5/6] removing 'File to Upload' from this module's locale because 'File to upload' present in LORIS namespace --- modules/imaging_uploader/jsx/UploadForm.js | 2 +- .../locale/fr/LC_MESSAGES/imaging_uploader.po | 4 ---- .../locale/hi/LC_MESSAGES/imaging_uploader.po | 3 --- modules/imaging_uploader/locale/imaging_uploader.pot | 3 --- .../locale/ja/LC_MESSAGES/imaging_uploader.po | 3 --- .../locale/zh/LC_MESSAGES/imaging_uploader.po | 3 --- modules/imaging_uploader/php/imaging_uploader.class.inc | 2 +- .../test/ImagingUploaderTestIntegrationTest.php | 2 +- modules/imaging_uploader/test/TestPlan.md | 4 ++-- 9 files changed, 5 insertions(+), 21 deletions(-) diff --git a/modules/imaging_uploader/jsx/UploadForm.js b/modules/imaging_uploader/jsx/UploadForm.js index e3cea36847..fa32a37c38 100644 --- a/modules/imaging_uploader/jsx/UploadForm.js +++ b/modules/imaging_uploader/jsx/UploadForm.js @@ -512,7 +512,7 @@ class UploadForm extends Component { /> addBasicText('candID', dgettext('loris', 'DCCID')); $this->addBasicText('pSCID', 'PSCID'); $this->addSelect('visitLabel', 'Visit Label', $visitlabels); - $this->addFile('mriFile', 'File to Upload'); + $this->addFile('mriFile', 'File to upload'); /////////////////////////////////////////////////////////////////////// //////////////////Upload-related Error messages /////////////////////// /////////////////////////////////////////////////////////////////////// diff --git a/modules/imaging_uploader/test/ImagingUploaderTestIntegrationTest.php b/modules/imaging_uploader/test/ImagingUploaderTestIntegrationTest.php index af7b761ba0..45d25d83ce 100644 --- a/modules/imaging_uploader/test/ImagingUploaderTestIntegrationTest.php +++ b/modules/imaging_uploader/test/ImagingUploaderTestIntegrationTest.php @@ -118,7 +118,7 @@ class ImagingUploaderTestIntegrationTest extends LorisIntegrationTest "selector" => "#upload", ], [ - "label" => "File to Upload", + "label" => "File to upload", "selector" => "#upload", ], ]; diff --git a/modules/imaging_uploader/test/TestPlan.md b/modules/imaging_uploader/test/TestPlan.md index 6f5c9a0124..ab952c1efd 100644 --- a/modules/imaging_uploader/test/TestPlan.md +++ b/modules/imaging_uploader/test/TestPlan.md @@ -60,8 +60,8 @@ [Manual Testing] -4. Test validations for 'File to Upload' in the 'Upload' tab and ensure that the appropriate - error messages are displayed under the 'File to Upload' element. +4. Test validations for 'File to upload' in the 'Upload' tab and ensure that the appropriate + error messages are displayed under the 'File to upload' element. Set Phantom Scans to 'Yes' and try to upload a file for each scenario below: - A file that is not of type `.tgz` or `tar.gz` or `.zip` (e.g. a `.jpg` or `.txt`) From 1ca4ffc57d3df2cb9e0a7f55de1a7446343c6189 Mon Sep 17 00:00:00 2001 From: HachemJ Date: Thu, 23 Jul 2026 14:23:04 -0400 Subject: [PATCH 6/6] cleanup genomic_browser.po --- .../genomic_browser/jsx/tabs_content/filemanager/uploadForm.js | 2 +- .../genomic_browser/locale/fr/LC_MESSAGES/genomic_browser.po | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/modules/genomic_browser/jsx/tabs_content/filemanager/uploadForm.js b/modules/genomic_browser/jsx/tabs_content/filemanager/uploadForm.js index 34e5d8494a..09e2a03860 100644 --- a/modules/genomic_browser/jsx/tabs_content/filemanager/uploadForm.js +++ b/modules/genomic_browser/jsx/tabs_content/filemanager/uploadForm.js @@ -204,7 +204,7 @@ class GenomicUploadForm extends Component { }, // reset form data after successful file upload uploadProgress: -1, }); - swal.fire('Upload successful!', '', 'success'); + swal.fire(t('Upload successful!', {ns: 'loris'}), '', 'success'); this.props.closeFileUploadModal(); } ).catch((error) => { diff --git a/modules/genomic_browser/locale/fr/LC_MESSAGES/genomic_browser.po b/modules/genomic_browser/locale/fr/LC_MESSAGES/genomic_browser.po index 52d3dd23a5..6a1fe56b72 100644 --- a/modules/genomic_browser/locale/fr/LC_MESSAGES/genomic_browser.po +++ b/modules/genomic_browser/locale/fr/LC_MESSAGES/genomic_browser.po @@ -318,8 +318,5 @@ msgstr "non classé" msgid "unknown" msgstr "inconnu" -msgid "Upload Successful!" -msgstr "Téléversement réussi !" - msgid "Upload error!" msgstr "Erreur de téléversement !"