From dd72ef581ffa308aa7f66ab3b4ff8f27b4f52121 Mon Sep 17 00:00:00 2001 From: Dave MacFarlane Date: Thu, 30 Oct 2025 13:39:07 -0400 Subject: [PATCH 1/5] [i18n/meta] Update Makefile to only compile changed language files This updates the makefile so that it will only run the msgfmt or i18next-conv commands if the source file has changed. This should speed up compile time during development. --- Makefile | 273 ++++++++++++++++--------------------------------------- 1 file changed, 77 insertions(+), 196 deletions(-) diff --git a/Makefile b/Makefile index 777faca8017..26ac89d17f0 100755 --- a/Makefile +++ b/Makefile @@ -1,11 +1,83 @@ .PHONY: clean dev all check checkstatic unittests jslatest testdata locales +POFILES=locale/fr/LC_MESSAGES/loris.po \ + locale/ja/LC_MESSAGES/loris.po \ + locale/hi/LC_MESSAGES/loris.po \ + locale/es/LC_MESSAGES/loris.po \ + locale/en/LC_MESSAGES/loris.po \ + modules/media/locale/ja/LC_MESSAGES/media.po \ + modules/datadict/locale/ja/LC_MESSAGES/datadict.po \ + modules/datadict/locale/hi/LC_MESSAGES/datadict.po \ + modules/mri_violations/locale/ja/LC_MESSAGES/mri_violations.po \ + modules/statistics/locale/ja/LC_MESSAGES/statistics.po \ + modules/server_processes_manager/locale/ja/LC_MESSAGES/server_processes_manager.po \ + modules/module_manager/locale/ja/LC_MESSAGES/module_manager.po \ + modules/configuration/locale/ja/LC_MESSAGES/configuration.po \ + modules/oidc/locale/ja/LC_MESSAGES/oidc.po \ + modules/instrument_list/locale/ja/LC_MESSAGES/instrument_list.po \ + modules/instrument_list/locale/es/LC_MESSAGES/instrument_list.po \ + modules/my_preferences/locale/ja/LC_MESSAGES/my_preferences.po \ + modules/my_preferences/locale/hi/LC_MESSAGES/my_preferences.po \ + modules/dicom_archive/locale/ja/LC_MESSAGES/dicom_archive.po \ + modules/new_profile/locale/ja/LC_MESSAGES/new_profile.po \ + modules/new_profile/locale/hi/LC_MESSAGES/new_profile.po \ + modules/new_profile/locale/es/LC_MESSAGES/new_profile.po \ + modules/dqt/locale/ja/LC_MESSAGES/dqt.po \ + modules/bvl_feedback/locale/ja/LC_MESSAGES/bvl_feedback.po \ + modules/genomic_browser/locale/ja/LC_MESSAGES/genomic_browser.po \ + modules/instruments/locale/ja/LC_MESSAGES/instruments.po \ + modules/instruments/locale/es/LC_MESSAGES/instruments.po \ + modules/dictionary/locale/ja/LC_MESSAGES/dictionary.po \ + modules/dictionary/locale/hi/LC_MESSAGES/dictionary.po \ + modules/instrument_manager/locale/ja/LC_MESSAGES/instrument_manager.po \ + modules/candidate_profile/locale/ja/LC_MESSAGES/candidate_profile.po \ + modules/behavioural_qc/locale/ja/LC_MESSAGES/behavioural_qc.po \ + modules/user_accounts/locale/ja/LC_MESSAGES/user_accounts.po \ + modules/schedule_module/locale/ja/LC_MESSAGES/schedule_module.po \ + modules/imaging_uploader/locale/ja/LC_MESSAGES/imaging_uploader.po \ + modules/next_stage/locale/ja/LC_MESSAGES/next_stage.po \ + modules/next_stage/locale/es/LC_MESSAGES/next_stage.po \ + modules/examiner/locale/ja/LC_MESSAGES/examiner.po \ + modules/login/locale/ja/LC_MESSAGES/login.po \ + modules/instrument_builder/locale/ja/LC_MESSAGES/instrument_builder.po \ + modules/document_repository/locale/ja/LC_MESSAGES/document_repository.po \ + modules/conflict_resolver/locale/ja/LC_MESSAGES/conflict_resolver.po \ + modules/candidate_list/locale/ja/LC_MESSAGES/candidate_list.po \ + modules/candidate_list/locale/hi/LC_MESSAGES/candidate_list.po \ + modules/create_timepoint/locale/ja/LC_MESSAGES/create_timepoint.po \ + modules/create_timepoint/locale/es/LC_MESSAGES/create_timepoint.po \ + modules/brainbrowser/locale/ja/LC_MESSAGES/brainbrowser.po \ + modules/dataquery/locale/ja/LC_MESSAGES/dataquery.po \ + modules/issue_tracker/locale/ja/LC_MESSAGES/issue_tracker.po \ + modules/timepoint_list/locale/ja/LC_MESSAGES/timepoint_list.po \ + modules/timepoint_list/locale/es/LC_MESSAGES/timepoint_list.po \ + modules/data_release/locale/ja/LC_MESSAGES/data_release.po \ + modules/data_release/locale/hi/LC_MESSAGES/data_release.po \ + modules/electrophysiology_uploader/locale/ja/LC_MESSAGES/electrophysiology_uploader.po \ + modules/acknowledgements/locale/ja/LC_MESSAGES/acknowledgements.po \ + modules/survey_accounts/locale/ja/LC_MESSAGES/survey_accounts.po \ + modules/battery_manager/locale/ja/LC_MESSAGES/battery_manager.po \ + modules/imaging_qc/locale/ja/LC_MESSAGES/imaging_qc.po \ + modules/electrophysiology_browser/locale/ja/LC_MESSAGES/electrophysiology_browser.po \ + modules/api_docs/locale/ja/LC_MESSAGES/api_docs.po \ + modules/publication/locale/ja/LC_MESSAGES/publication.po \ + modules/dashboard/locale/ja/LC_MESSAGES/dashboard.po \ + modules/candidate_parameters/locale/ja/LC_MESSAGES/candidate_parameters.po \ + modules/imaging_browser/locale/ja/LC_MESSAGES/imaging_browser.po \ + modules/help_editor/locale/ja/LC_MESSAGES/help_editor.po + +MOFILES=$(patsubst %.po,%.mo,$(POFILES)) +I18NJSONFILES=$(patsubst %.po,%.json,$(POFILES)) + all: node_modules locales VERSION vendor npm run build %.mo: %.po msgfmt -o $@ $< +%.json: %.po + npx i18next-conv -l UNUSED -t $@ -s $< --compatibilityJSON v4 + # If anything changes, re-generate the VERSION file VERSION: . tools/gen-version.sh @@ -62,187 +134,7 @@ check: checkstatic unittests testdata: php tools/raisinbread_refresh.php -locales: - msgfmt -o locale/en/LC_MESSAGES/loris.mo locale/en/LC_MESSAGES/loris.po - npx i18next-conv -l en -s locale/en/LC_MESSAGES/loris.po -t locale/en/LC_MESSAGES/loris.json --compatibilityJSON v4 - msgfmt -o locale/fr/LC_MESSAGES/loris.mo locale/fr/LC_MESSAGES/loris.po - npx i18next-conv -l fr -s locale/fr/LC_MESSAGES/loris.po -t locale/fr/LC_MESSAGES/loris.json --compatibilityJSON v4 - msgfmt -o locale/ja/LC_MESSAGES/loris.mo locale/ja/LC_MESSAGES/loris.po - npx i18next-conv -l ja -s locale/ja/LC_MESSAGES/loris.po -t locale/ja/LC_MESSAGES/loris.json --compatibilityJSON v4 - msgfmt -o locale/hi/LC_MESSAGES/loris.mo locale/hi/LC_MESSAGES/loris.po - npx i18next-conv -l hi -s locale/hi/LC_MESSAGES/loris.po -t locale/hi/LC_MESSAGES/loris.json --compatibilityJSON v4 - msgfmt -o locale/es/LC_MESSAGES/loris.mo locale/es/LC_MESSAGES/loris.po - npx i18next-conv -l es -s locale/es/LC_MESSAGES/loris.po -t locale/es/LC_MESSAGES/loris.json --compatibilityJSON v4 - msgfmt -o modules/new_profile/locale/ja/LC_MESSAGES/new_profile.mo modules/new_profile/locale/ja/LC_MESSAGES/new_profile.po - msgfmt -o modules/new_profile/locale/fr/LC_MESSAGES/new_profile.mo modules/new_profile/locale/fr/LC_MESSAGES/new_profile.po - npx i18next-conv -l ja -s modules/new_profile/locale/ja/LC_MESSAGES/new_profile.po -t modules/new_profile/locale/ja/LC_MESSAGES/new_profile.json - npx i18next-conv -l fr -s modules/new_profile/locale/fr/LC_MESSAGES/new_profile.po -t modules/new_profile/locale/fr/LC_MESSAGES/new_profile.json - msgfmt -o modules/new_profile/locale/hi/LC_MESSAGES/new_profile.mo modules/new_profile/locale/hi/LC_MESSAGES/new_profile.po - npx i18next-conv -l hi -s modules/new_profile/locale/hi/LC_MESSAGES/new_profile.po -t modules/new_profile/locale/hi/LC_MESSAGES/new_profile.json - msgfmt -o modules/new_profile/locale/es/LC_MESSAGES/new_profile.mo modules/new_profile/locale/es/LC_MESSAGES/new_profile.po - npx i18next-conv -l es -s modules/new_profile/locale/es/LC_MESSAGES/new_profile.po -t modules/new_profile/locale/es/LC_MESSAGES/new_profile.json --compatibilityJSON v4 - msgfmt -o modules/new_profile/locale/hi/LC_MESSAGES/new_profile.mo modules/new_profile/locale/hi/LC_MESSAGES/new_profile.po - msgfmt -o modules/acknowledgements/locale/ja/LC_MESSAGES/acknowledgements.mo modules/acknowledgements/locale/ja/LC_MESSAGES/acknowledgements.po - msgfmt -o modules/api_docs/locale/ja/LC_MESSAGES/api_docs.mo modules/api_docs/locale/ja/LC_MESSAGES/api_docs.po - msgfmt -o modules/battery_manager/locale/ja/LC_MESSAGES/battery_manager.mo modules/battery_manager/locale/ja/LC_MESSAGES/battery_manager.po - msgfmt -o modules/battery_manager/locale/hi/LC_MESSAGES/battery_manager.mo modules/battery_manager/locale/hi/LC_MESSAGES/battery_manager.po - npx i18next-conv -l hi -s modules/battery_manager/locale/hi/LC_MESSAGES/battery_manager.po -t modules/battery_manager/locale/hi/LC_MESSAGES/battery_manager.json --compatibilityJSON v4 - npx i18next-conv -l ja -s modules/battery_manager/locale/ja/LC_MESSAGES/battery_manager.po -t modules/battery_manager/locale/ja/LC_MESSAGES/battery_manager.json --compatibilityJSON v4 - msgfmt -o modules/behavioural_qc/locale/ja/LC_MESSAGES/behavioural_qc.mo modules/behavioural_qc/locale/ja/LC_MESSAGES/behavioural_qc.po - msgfmt -o modules/behavioural_qc/locale/hi/LC_MESSAGES/behavioural_qc.mo modules/behavioural_qc/locale/hi/LC_MESSAGES/behavioural_qc.po - npx i18next-conv -l hi -s modules/behavioural_qc/locale/hi/LC_MESSAGES/behavioural_qc.po -t modules/behavioural_qc/locale/hi/LC_MESSAGES/behavioural_qc.json - npx i18next-conv -l ja -s modules/behavioural_qc/locale/ja/LC_MESSAGES/behavioural_qc.po -t modules/behavioural_qc/locale/ja/LC_MESSAGES/behavioural_qc.json - msgfmt -o modules/brainbrowser/locale/ja/LC_MESSAGES/brainbrowser.mo modules/brainbrowser/locale/ja/LC_MESSAGES/brainbrowser.po - msgfmt -o modules/bvl_feedback/locale/ja/LC_MESSAGES/bvl_feedback.mo modules/bvl_feedback/locale/ja/LC_MESSAGES/bvl_feedback.po - npx i18next-conv -l ja -s modules/bvl_feedback/locale/ja/LC_MESSAGES/bvl_feedback.po -t modules/bvl_feedback/locale/ja/LC_MESSAGES/bvl_feedback.json - msgfmt -o modules/candidate_list/locale/fr/LC_MESSAGES/candidate_list.mo modules/candidate_list/locale/fr/LC_MESSAGES/candidate_list.po - msgfmt -o modules/candidate_list/locale/ja/LC_MESSAGES/candidate_list.mo modules/candidate_list/locale/ja/LC_MESSAGES/candidate_list.po - npx i18next-conv -l fr -s modules/candidate_list/locale/fr/LC_MESSAGES/candidate_list.po -t modules/candidate_list/locale/fr/LC_MESSAGES/candidate_list.json - npx i18next-conv -l ja -s modules/candidate_list/locale/ja/LC_MESSAGES/candidate_list.po -t modules/candidate_list/locale/ja/LC_MESSAGES/candidate_list.json - msgfmt -o modules/candidate_list/locale/hi/LC_MESSAGES/candidate_list.mo modules/candidate_list/locale/hi/LC_MESSAGES/candidate_list.po - npx i18next-conv -l hi -s modules/candidate_list/locale/hi/LC_MESSAGES/candidate_list.po -t modules/candidate_list/locale/hi/LC_MESSAGES/candidate_list.json - msgfmt -o modules/candidate_parameters/locale/ja/LC_MESSAGES/candidate_parameters.mo modules/candidate_parameters/locale/ja/LC_MESSAGES/candidate_parameters.po - npx i18next-conv -l ja -s modules/candidate_parameters/locale/ja/LC_MESSAGES/candidate_parameters.po -t modules/candidate_parameters/locale/ja/LC_MESSAGES/candidate_parameters.json - msgfmt -o modules/candidate_profile/locale/ja/LC_MESSAGES/candidate_profile.mo modules/candidate_profile/locale/ja/LC_MESSAGES/candidate_profile.po - msgfmt -o modules/candidate_profile/locale/fr/LC_MESSAGES/candidate_profile.mo modules/candidate_profile/locale/fr/LC_MESSAGES/candidate_profile.po - msgfmt -o modules/configuration/locale/ja/LC_MESSAGES/configuration.mo modules/configuration/locale/ja/LC_MESSAGES/configuration.po - msgfmt -o modules/configuration/locale/ja/LC_MESSAGES/configuration.mo modules/configuration/locale/ja/LC_MESSAGES/configuration.po - msgfmt -o modules/conflict_resolver/locale/ja/LC_MESSAGES/conflict_resolver.mo modules/conflict_resolver/locale/ja/LC_MESSAGES/conflict_resolver.po - msgfmt -o modules/conflict_resolver/locale/hi/LC_MESSAGES/conflict_resolver.mo modules/conflict_resolver/locale/hi/LC_MESSAGES/conflict_resolver.po - npx i18next-conv -l hi -s modules/conflict_resolver/locale/hi/LC_MESSAGES/conflict_resolver.po -t modules/conflict_resolver/locale/hi/LC_MESSAGES/conflict_resolver.json - npx i18next-conv -l ja -s modules/conflict_resolver/locale/ja/LC_MESSAGES/conflict_resolver.po -t modules/conflict_resolver/locale/ja/LC_MESSAGES/conflict_resolver.json - msgfmt -o modules/create_timepoint/locale/ja/LC_MESSAGES/create_timepoint.mo modules/create_timepoint/locale/ja/LC_MESSAGES/create_timepoint.po - npx i18next-conv -l ja -s modules/create_timepoint/locale/ja/LC_MESSAGES/create_timepoint.po -t modules/create_timepoint/locale/ja/LC_MESSAGES/create_timepoint.json - msgfmt -o modules/create_timepoint/locale/fr/LC_MESSAGES/create_timepoint.mo modules/create_timepoint/locale/fr/LC_MESSAGES/create_timepoint.po - npx i18next-conv -l fr -s modules/create_timepoint/locale/fr/LC_MESSAGES/create_timepoint.po -t modules/create_timepoint/locale/fr/LC_MESSAGES/create_timepoint.json - msgfmt -o modules/create_timepoint/locale/es/LC_MESSAGES/create_timepoint.mo modules/create_timepoint/locale/es/LC_MESSAGES/create_timepoint.po - npx i18next-conv -l es -s modules/create_timepoint/locale/es/LC_MESSAGES/create_timepoint.po -t modules/create_timepoint/locale/es/LC_MESSAGES/create_timepoint.json - msgfmt -o modules/dashboard/locale/ja/LC_MESSAGES/dashboard.mo modules/dashboard/locale/ja/LC_MESSAGES/dashboard.po - msgfmt -o modules/datadict/locale/ja/LC_MESSAGES/datadict.mo modules/datadict/locale/ja/LC_MESSAGES/datadict.po - msgfmt -o modules/datadict/locale/fr/LC_MESSAGES/datadict.mo modules/datadict/locale/fr/LC_MESSAGES/datadict.po - msgfmt -o modules/datadict/locale/hi/LC_MESSAGES/datadict.mo modules/datadict/locale/hi/LC_MESSAGES/datadict.po - npx i18next-conv -l hi -s modules/datadict/locale/hi/LC_MESSAGES/datadict.po -t modules/datadict/locale/hi/LC_MESSAGES/datadict.json - npx i18next-conv -l ja -s modules/datadict/locale/ja/LC_MESSAGES/datadict.po -t modules/datadict/locale/ja/LC_MESSAGES/datadict.json - npx i18next-conv -l fr -s modules/datadict/locale/fr/LC_MESSAGES/datadict.po -t modules/datadict/locale/fr/LC_MESSAGES/datadict.json - msgfmt -o modules/dataquery/locale/ja/LC_MESSAGES/dataquery.mo modules/dataquery/locale/ja/LC_MESSAGES/dataquery.po - msgfmt -o modules/data_release/locale/ja/LC_MESSAGES/data_release.mo modules/data_release/locale/ja/LC_MESSAGES/data_release.po - npx i18next-conv -l ja -s modules/data_release/locale/ja/LC_MESSAGES/data_release.po -t modules/data_release/locale/ja/LC_MESSAGES/data_release.json - msgfmt -o modules/data_release/locale/fr/LC_MESSAGES/data_release.mo modules/data_release/locale/fr/LC_MESSAGES/data_release.po - npx i18next-conv -l fr -s modules/data_release/locale/fr/LC_MESSAGES/data_release.po -t modules/data_release/locale/fr/LC_MESSAGES/data_release.json - msgfmt -o modules/data_release/locale/hi/LC_MESSAGES/data_release.mo modules/data_release/locale/hi/LC_MESSAGES/data_release.po - npx i18next-conv -l hi -s modules/data_release/locale/hi/LC_MESSAGES/data_release.po -t modules/data_release/locale/hi/LC_MESSAGES/data_release.json - msgfmt -o modules/dicom_archive/locale/ja/LC_MESSAGES/dicom_archive.mo modules/dicom_archive/locale/ja/LC_MESSAGES/dicom_archive.po - msgfmt -o modules/dicom_archive/locale/hi/LC_MESSAGES/dicom_archive.mo modules/dicom_archive/locale/hi/LC_MESSAGES/dicom_archive.po - npx i18next-conv -l hi -s modules/dicom_archive/locale/hi/LC_MESSAGES/dicom_archive.po -t modules/dicom_archive/locale/hi/LC_MESSAGES/dicom_archive.json - npx i18next-conv -l ja -s modules/dicom_archive/locale/ja/LC_MESSAGES/dicom_archive.po -t modules/dicom_archive/locale/ja/LC_MESSAGES/dicom_archive.json - msgfmt -o modules/dictionary/locale/ja/LC_MESSAGES/dictionary.mo modules/dictionary/locale/ja/LC_MESSAGES/dictionary.po - npx i18next-conv -l ja -s modules/dictionary/locale/ja/LC_MESSAGES/dictionary.po -t modules/dictionary/locale/ja/LC_MESSAGES/dictionary.json - msgfmt -o modules/dictionary/locale/fr/LC_MESSAGES/dictionary.mo modules/dictionary/locale/fr/LC_MESSAGES/dictionary.po - npx i18next-conv -l fr -s modules/dictionary/locale/fr/LC_MESSAGES/dictionary.po -t modules/dictionary/locale/fr/LC_MESSAGES/dictionary.json - msgfmt -o modules/dictionary/locale/hi/LC_MESSAGES/dictionary.mo modules/dictionary/locale/hi/LC_MESSAGES/dictionary.po - npx i18next-conv -l hi -s modules/dictionary/locale/hi/LC_MESSAGES/dictionary.po -t modules/dictionary/locale/hi/LC_MESSAGES/dictionary.json - msgfmt -o modules/document_repository/locale/ja/LC_MESSAGES/document_repository.mo modules/document_repository/locale/ja/LC_MESSAGES/document_repository.po - msgfmt -o modules/document_repository/locale/hi/LC_MESSAGES/document_repository.mo modules/document_repository/locale/hi/LC_MESSAGES/document_repository.po - npx i18next-conv -l hi -s modules/document_repository/locale/hi/LC_MESSAGES/document_repository.po -t modules/document_repository/locale/hi/LC_MESSAGES/document_repository.json - npx i18next-conv -l ja -s modules/document_repository/locale/ja/LC_MESSAGES/document_repository.po -t modules/document_repository/locale/ja/LC_MESSAGES/document_repository.json - msgfmt -o modules/dqt/locale/ja/LC_MESSAGES/dqt.mo modules/dqt/locale/ja/LC_MESSAGES/dqt.po - msgfmt -o modules/electrophysiology_browser/locale/ja/LC_MESSAGES/electrophysiology_browser.mo modules/electrophysiology_browser/locale/ja/LC_MESSAGES/electrophysiology_browser.po - msgfmt -o modules/electrophysiology_uploader/locale/ja/LC_MESSAGES/electrophysiology_uploader.mo modules/electrophysiology_uploader/locale/ja/LC_MESSAGES/electrophysiology_uploader.po - msgfmt -o modules/examiner/locale/ja/LC_MESSAGES/examiner.mo modules/examiner/locale/ja/LC_MESSAGES/examiner.po - msgfmt -o modules/examiner/locale/hi/LC_MESSAGES/examiner.mo modules/examiner/locale/hi/LC_MESSAGES/examiner.po - npx i18next-conv -l hi -s modules/examiner/locale/hi/LC_MESSAGES/examiner.po -t modules/examiner/locale/hi/LC_MESSAGES/examiner.json - npx i18next-conv -l ja -s modules/examiner/locale/ja/LC_MESSAGES/examiner.po -t modules/examiner/locale/ja/LC_MESSAGES/examiner.json - msgfmt -o modules/genomic_browser/locale/ja/LC_MESSAGES/genomic_browser.mo modules/genomic_browser/locale/ja/LC_MESSAGES/genomic_browser.po - msgfmt -o modules/help_editor/locale/ja/LC_MESSAGES/help_editor.mo modules/help_editor/locale/ja/LC_MESSAGES/help_editor.po - msgfmt -o modules/help_editor/locale/hi/LC_MESSAGES/help_editor.mo modules/help_editor/locale/hi/LC_MESSAGES/help_editor.po - npx i18next-conv -l hi -s modules/help_editor/locale/hi/LC_MESSAGES/help_editor.po -t modules/help_editor/locale/hi/LC_MESSAGES/help_editor.json - npx i18next-conv -l ja -s modules/help_editor/locale/ja/LC_MESSAGES/help_editor.po -t modules/help_editor/locale/ja/LC_MESSAGES/help_editor.json - msgfmt -o modules/imaging_browser/locale/ja/LC_MESSAGES/imaging_browser.mo modules/imaging_browser/locale/ja/LC_MESSAGES/imaging_browser.po - npx i18next-conv -l ja -s modules/imaging_browser/locale/ja/LC_MESSAGES/imaging_browser.po -t modules/imaging_browser/locale/ja/LC_MESSAGES/imaging_browser.json --compatibilityJSON v4 - msgfmt -o modules/imaging_browser/locale/hi/LC_MESSAGES/imaging_browser.mo modules/imaging_browser/locale/hi/LC_MESSAGES/imaging_browser.po - npx i18next-conv -l hi -s modules/imaging_browser/locale/hi/LC_MESSAGES/imaging_browser.po -t modules/imaging_browser/locale/hi/LC_MESSAGES/imaging_browser.json --compatibilityJSON v4 - msgfmt -o modules/imaging_qc/locale/ja/LC_MESSAGES/imaging_qc.mo modules/imaging_qc/locale/ja/LC_MESSAGES/imaging_qc.po - msgfmt -o modules/imaging_uploader/locale/ja/LC_MESSAGES/imaging_uploader.mo modules/imaging_uploader/locale/ja/LC_MESSAGES/imaging_uploader.po - msgfmt -o modules/imaging_uploader/locale/hi/LC_MESSAGES/imaging_uploader.mo modules/imaging_uploader/locale/hi/LC_MESSAGES/imaging_uploader.po - npx i18next-conv -l hi -s modules/imaging_uploader/locale/hi/LC_MESSAGES/imaging_uploader.po -t modules/imaging_uploader/locale/hi/LC_MESSAGES/imaging_uploader.json - npx i18next-conv -l ja -s modules/imaging_uploader/locale/ja/LC_MESSAGES/imaging_uploader.po -t modules/imaging_uploader/locale/ja/LC_MESSAGES/imaging_uploader.json - msgfmt -o modules/instrument_builder/locale/ja/LC_MESSAGES/instrument_builder.mo modules/instrument_builder/locale/ja/LC_MESSAGES/instrument_builder.po - msgfmt -o modules/instrument_builder/locale/hi/LC_MESSAGES/instrument_builder.mo modules/instrument_builder/locale/hi/LC_MESSAGES/instrument_builder.po - npx i18next-conv -l hi -s modules/instrument_builder/locale/hi/LC_MESSAGES/instrument_builder.po -t modules/instrument_builder/locale/hi/LC_MESSAGES/instrument_builder.json --compatibilityJSON v4 - npx i18next-conv -l ja -s modules/instrument_builder/locale/ja/LC_MESSAGES/instrument_builder.po -t modules/instrument_builder/locale/ja/LC_MESSAGES/instrument_builder.json --compatibilityJSON v4 - msgfmt -o modules/instrument_list/locale/ja/LC_MESSAGES/instrument_list.mo modules/instrument_list/locale/ja/LC_MESSAGES/instrument_list.po - msgfmt -o modules/instrument_list/locale/es/LC_MESSAGES/instrument_list.mo modules/instrument_list/locale/es/LC_MESSAGES/instrument_list.po - msgfmt -o modules/instrument_list/locale/fr/LC_MESSAGES/instrument_list.mo modules/instrument_list/locale/fr/LC_MESSAGES/instrument_list.po - msgfmt -o modules/instrument_manager/locale/ja/LC_MESSAGES/instrument_manager.mo modules/instrument_manager/locale/ja/LC_MESSAGES/instrument_manager.po - msgfmt -o modules/instruments/locale/ja/LC_MESSAGES/instruments.mo modules/instruments/locale/ja/LC_MESSAGES/instruments.po - msgfmt -o modules/instruments/locale/fr/LC_MESSAGES/instruments.mo modules/instruments/locale/fr/LC_MESSAGES/instruments.po - npx i18next-conv -l ja -s modules/instruments/locale/ja/LC_MESSAGES/instruments.po -t modules/instruments/locale/ja/LC_MESSAGES/instruments.json --compatibilityJSON v4 - msgfmt -o modules/instruments/locale/fr/LC_MESSAGES/instruments.mo modules/instruments/locale/fr/LC_MESSAGES/instruments.po - npx i18next-conv -l fr -s modules/instruments/locale/fr/LC_MESSAGES/instruments.po -t modules/instruments/locale/fr/LC_MESSAGES/instruments.json --compatibilityJSON v4 - msgfmt -o modules/instruments/locale/es/LC_MESSAGES/instruments.mo modules/instruments/locale/es/LC_MESSAGES/instruments.po - msgfmt -o modules/issue_tracker/locale/ja/LC_MESSAGES/issue_tracker.mo modules/issue_tracker/locale/ja/LC_MESSAGES/issue_tracker.po - msgfmt -o modules/issue_tracker/locale/hi/LC_MESSAGES/issue_tracker.mo modules/issue_tracker/locale/hi/LC_MESSAGES/issue_tracker.po - npx i18next-conv -l hi -s modules/issue_tracker/locale/hi/LC_MESSAGES/issue_tracker.po -t modules/issue_tracker/locale/hi/LC_MESSAGES/issue_tracker.json --compatibilityJSON v4 - npx i18next-conv -l ja -s modules/issue_tracker/locale/ja/LC_MESSAGES/issue_tracker.po -t modules/issue_tracker/locale/ja/LC_MESSAGES/issue_tracker.json --compatibilityJSON v4 - msgfmt -o modules/login/locale/ja/LC_MESSAGES/login.mo modules/login/locale/ja/LC_MESSAGES/login.po - npx i18next-conv -l ja -s modules/login/locale/ja/LC_MESSAGES/login.po -t modules/login/locale/ja/LC_MESSAGES/login.json --compatibilityJSON v4 - msgfmt -o modules/media/locale/es/LC_MESSAGES/media.mo modules/media/locale/es/LC_MESSAGES/media.po - msgfmt -o modules/media/locale/fr/LC_MESSAGES/media.mo modules/media/locale/fr/LC_MESSAGES/media.po - msgfmt -o modules/media/locale/ja/LC_MESSAGES/media.mo modules/media/locale/ja/LC_MESSAGES/media.po - msgfmt -o modules/media/locale/hi/LC_MESSAGES/media.mo modules/media/locale/hi/LC_MESSAGES/media.po - npx i18next-conv -l es -s modules/media/locale/es/LC_MESSAGES/media.po -t modules/media/locale/es/LC_MESSAGES/media.json - npx i18next-conv -l fr -s modules/media/locale/fr/LC_MESSAGES/media.po -t modules/media/locale/fr/LC_MESSAGES/media.json - npx i18next-conv -l ja -s modules/media/locale/ja/LC_MESSAGES/media.po -t modules/media/locale/ja/LC_MESSAGES/media.json - npx i18next-conv -l hi -s modules/media/locale/hi/LC_MESSAGES/media.po -t modules/media/locale/hi/LC_MESSAGES/media.json - msgfmt -o modules/module_manager/locale/ja/LC_MESSAGES/module_manager.mo modules/module_manager/locale/ja/LC_MESSAGES/module_manager.po - msgfmt -o modules/mri_violations/locale/es/LC_MESSAGES/mri_violations.mo modules/mri_violations/locale/es/LC_MESSAGES/mri_violations.po - msgfmt -o modules/mri_violations/locale/fr/LC_MESSAGES/mri_violations.mo modules/mri_violations/locale/fr/LC_MESSAGES/mri_violations.po - msgfmt -o modules/module_manager/locale/hi/LC_MESSAGES/module_manager.mo modules/module_manager/locale/hi/LC_MESSAGES/module_manager.po - npx i18next-conv -l hi -s modules/module_manager/locale/hi/LC_MESSAGES/module_manager.po -t modules/module_manager/locale/hi/LC_MESSAGES/module_manager.json - npx i18next-conv -l ja -s modules/module_manager/locale/ja/LC_MESSAGES/module_manager.po -t modules/module_manager/locale/ja/LC_MESSAGES/module_manager.json - msgfmt -o modules/mri_violations/locale/ja/LC_MESSAGES/mri_violations.mo modules/mri_violations/locale/ja/LC_MESSAGES/mri_violations.po - msgfmt -o modules/mri_violations/locale/hi/LC_MESSAGES/mri_violations.mo modules/mri_violations/locale/hi/LC_MESSAGES/mri_violations.po - npx i18next-conv -l es -s modules/mri_violations/locale/es/LC_MESSAGES/mri_violations.po -t modules/mri_violations/locale/es/LC_MESSAGES/mri_violations.json - npx i18next-conv -l fr -s modules/mri_violations/locale/fr/LC_MESSAGES/mri_violations.po -t modules/mri_violations/locale/fr/LC_MESSAGES/mri_violations.json - npx i18next-conv -l ja -s modules/mri_violations/locale/ja/LC_MESSAGES/mri_violations.po -t modules/mri_violations/locale/ja/LC_MESSAGES/mri_violations.json - npx i18next-conv -l hi -s modules/mri_violations/locale/hi/LC_MESSAGES/mri_violations.po -t modules/mri_violations/locale/hi/LC_MESSAGES/mri_violations.json - msgfmt -o modules/my_preferences/locale/hi/LC_MESSAGES/my_preferences.mo modules/my_preferences/locale/hi/LC_MESSAGES/my_preferences.po - msgfmt -o modules/my_preferences/locale/fr/LC_MESSAGES/my_preferences.mo modules/my_preferences/locale/fr/LC_MESSAGES/my_preferences.po - npx i18next-conv -l ja -s modules/my_preferences/locale/ja/LC_MESSAGES/my_preferences.po -t modules/my_preferences/locale/ja/LC_MESSAGES/my_preferences.json --compatibilityJSON v4 - npx i18next-conv -l hi -s modules/my_preferences/locale/hi/LC_MESSAGES/my_preferences.po -t modules/my_preferences/locale/hi/LC_MESSAGES/my_preferences.json --compatibilityJSON v4 - npx i18next-conv -l fr -s modules/my_preferences/locale/fr/LC_MESSAGES/my_preferences.po -t modules/my_preferences/locale/fr/LC_MESSAGES/my_preferences.json --compatibilityJSON v4 - msgfmt -o modules/my_preferences/locale/ja/LC_MESSAGES/my_preferences.mo modules/my_preferences/locale/ja/LC_MESSAGES/my_preferences.po - msgfmt -o modules/next_stage/locale/ja/LC_MESSAGES/next_stage.mo modules/next_stage/locale/ja/LC_MESSAGES/next_stage.po - msgfmt -o modules/next_stage/locale/fr/LC_MESSAGES/next_stage.mo modules/next_stage/locale/fr/LC_MESSAGES/next_stage.po - msgfmt -o modules/next_stage/locale/es/LC_MESSAGES/next_stage.mo modules/next_stage/locale/es/LC_MESSAGES/next_stage.po - msgfmt -o modules/oidc/locale/ja/LC_MESSAGES/oidc.mo modules/oidc/locale/ja/LC_MESSAGES/oidc.po - msgfmt -o modules/publication/locale/ja/LC_MESSAGES/publication.mo modules/publication/locale/ja/LC_MESSAGES/publication.po - msgfmt -o modules/publication/locale/en/LC_MESSAGES/publication.mo modules/publication/locale/en/LC_MESSAGES/publication.po - msgfmt -o modules/publication/locale/hi/LC_MESSAGES/publication.mo modules/publication/locale/hi/LC_MESSAGES/publication.po - npx i18next-conv -l hi -s modules/publication/locale/hi/LC_MESSAGES/publication.po -t modules/publication/locale/hi/LC_MESSAGES/publication.json - npx i18next-conv -l ja -s modules/publication/locale/ja/LC_MESSAGES/publication.po -t modules/publication/locale/ja/LC_MESSAGES/publication.json - npx i18next-conv -l en -s modules/publication/locale/en/LC_MESSAGES/publication.po -t modules/publication/locale/en/LC_MESSAGES/publication.json - msgfmt -o modules/schedule_module/locale/ja/LC_MESSAGES/schedule_module.mo modules/schedule_module/locale/ja/LC_MESSAGES/schedule_module.po - msgfmt -o modules/schedule_module/locale/hi/LC_MESSAGES/schedule_module.mo modules/schedule_module/locale/hi/LC_MESSAGES/schedule_module.po - npx i18next-conv -l hi -s modules/schedule_module/locale/hi/LC_MESSAGES/schedule_module.po -t modules/schedule_module/locale/hi/LC_MESSAGES/schedule_module.json - npx i18next-conv -l ja -s modules/schedule_module/locale/ja/LC_MESSAGES/schedule_module.po -t modules/schedule_module/locale/ja/LC_MESSAGES/schedule_module.json - msgfmt -o modules/server_processes_manager/locale/ja/LC_MESSAGES/server_processes_manager.mo modules/server_processes_manager/locale/ja/LC_MESSAGES/server_processes_manager.po - msgfmt -o modules/statistics/locale/ja/LC_MESSAGES/statistics.mo modules/statistics/locale/ja/LC_MESSAGES/statistics.po - npx i18next-conv -l ja -s modules/statistics/locale/ja/LC_MESSAGES/statistics.po -t modules/statistics/locale/ja/LC_MESSAGES/statistics.json - msgfmt -o modules/statistics/locale/fr/LC_MESSAGES/statistics.mo modules/statistics/locale/fr/LC_MESSAGES/statistics.po - npx i18next-conv -l fr -s modules/statistics/locale/fr/LC_MESSAGES/statistics.po -t modules/statistics/locale/fr/LC_MESSAGES/statistics.json - msgfmt -o modules/survey_accounts/locale/ja/LC_MESSAGES/survey_accounts.mo modules/survey_accounts/locale/ja/LC_MESSAGES/survey_accounts.po - msgfmt -o modules/timepoint_list/locale/ja/LC_MESSAGES/timepoint_list.mo modules/timepoint_list/locale/ja/LC_MESSAGES/timepoint_list.po - msgfmt -o modules/timepoint_list/locale/es/LC_MESSAGES/timepoint_list.mo modules/timepoint_list/locale/es/LC_MESSAGES/timepoint_list.po - msgfmt -o modules/timepoint_list/locale/fr/LC_MESSAGES/timepoint_list.mo modules/timepoint_list/locale/fr/LC_MESSAGES/timepoint_list.po - msgfmt -o modules/user_accounts/locale/ja/LC_MESSAGES/user_accounts.mo modules/user_accounts/locale/ja/LC_MESSAGES/user_accounts.po - msgfmt -o modules/user_accounts/locale/hi/LC_MESSAGES/user_accounts.mo modules/user_accounts/locale/hi/LC_MESSAGES/user_accounts.po - msgfmt -o modules/user_accounts/locale/fr/LC_MESSAGES/user_accounts.mo modules/user_accounts/locale/fr/LC_MESSAGES/user_accounts.po - npx i18next-conv -l hi -s modules/user_accounts/locale/hi/LC_MESSAGES/user_accounts.po -t modules/user_accounts/locale/hi/LC_MESSAGES/user_accounts.json --compatibilityJSON v4 - npx i18next-conv -l ja -s modules/user_accounts/locale/ja/LC_MESSAGES/user_accounts.po -t modules/user_accounts/locale/ja/LC_MESSAGES/user_accounts.json --compatibilityJSON v4 - npx i18next-conv -l fr -s modules/user_accounts/locale/fr/LC_MESSAGES/user_accounts.po -t modules/user_accounts/locale/fr/LC_MESSAGES/user_accounts.json --compatibilityJSON v4 - msgfmt -o modules/brainbrowser/locale/hi/LC_MESSAGES/brainbrowser.mo modules/brainbrowser/locale/hi/LC_MESSAGES/brainbrowser.po - npx i18next-conv -l hi -s modules/brainbrowser/locale/hi/LC_MESSAGES/brainbrowser.po -t modules/brainbrowser/locale/hi/LC_MESSAGES/brainbrowser.json +locales: $(MOFILES) $(I18NJSONFILES) acknowledgements: modules/acknowledgements/locale/ja/LC_MESSAGES/acknowledgements.mo target=acknowledgements npm run compile @@ -250,20 +142,16 @@ acknowledgements: modules/acknowledgements/locale/ja/LC_MESSAGES/acknowledgement create_timepoint: target=data_release npm run compile -data_release: modules/data_release/locale/hi/LC_MESSAGES/data_release.mo modules/data_release/locale/ja/LC_MESSAGES/data_release.mo - npx i18next-conv -l hi -s modules/data_release/locale/hi/LC_MESSAGES/data_release.po -t modules/data_release/locale/hi/LC_MESSAGES/data_release.json - npx i18next-conv -l ja -s modules/data_release/locale/ja/LC_MESSAGES/data_release.po -t modules/data_release/locale/ja/LC_MESSAGES/data_release.json +data_release: modules/data_release/locale/hi/LC_MESSAGES/data_release.mo modules/data_release/locale/ja/LC_MESSAGES/data_release.mo modules/data_release/locale/hi/LC_MESSAGES/data_release.json modules/data_release/locale/ja/LC_MESSAGES/data_release.json target=data_release npm run compile instrument_manager: modules/instrument_manager/locale/ja/LC_MESSAGES/instrument_manager.mo target=instrument_manager npm run compile instrument_builder: modules/instrument_builder/locale/ja/LC_MESSAGES/instrument_builder.mo modules/instrument_builder/locale/hi/LC_MESSAGES/instrument_builder.mo - npx i18next-conv -l hi -s modules/instrument_builder/locale/hi/LC_MESSAGES/instrument_builder.po -t modules/instrument_builder/locale/hi/LC_MESSAGES/instrument_builder.json --compatibilityJSON v4 target=instrument_builder npm run compile dataquery: modules/dataquery/locale/ja/LC_MESSAGES/dataquery.mo - msgfmt -o modules/dataquery/locale/ja/LC_MESSAGES/dataquery.mo modules/dataquery/locale/ja/LC_MESSAGES/dataquery.po target=dataquery npm run compile login: modules/login/locale/ja/LC_MESSAGES/login.mo @@ -283,10 +171,7 @@ issue_tracker: npx i18next-conv -l hi -s modules/issue_tracker/locale/hi/LC_MESSAGES/issue_tracker.po -t modules/issue_tracker/locale/hi/LC_MESSAGES/issue_tracker.json target=issue_tracker npm run compile -candidate_list: modules/candidate_list/locale/ja/LC_MESSAGES/candidate_list.mo modules/candidate_list/locale/hi/LC_MESSAGES/candidate_list.mo - npx i18next-conv -l ja -s modules/candidate_list/locale/ja/LC_MESSAGES/candidate_list.po -t modules/candidate_list/locale/ja/LC_MESSAGES/candidate_list.json - npx i18next-conv -l hi -s modules/candidate_list/locale/hi/LC_MESSAGES/candidate_list.po -t modules/candidate_list/locale/hi/LC_MESSAGES/candidate_list.json - npx i18next-conv -l fr -s modules/candidate_list/locale/fr/LC_MESSAGES/candidate_list.po -t modules/candidate_list/locale/fr/LC_MESSAGES/candidate_list.json +candidate_list: modules/candidate_list/locale/ja/LC_MESSAGES/candidate_list.mo modules/candidate_list/locale/hi/LC_MESSAGES/candidate_list.mo modules/candidate_list/locale/ja/LC_MESSAGES/candidate_list.json modules/candidate_list/locale/hi/LC_MESSAGES/candidate_list.json target=candidate_list npm run compile candidate_parameters: modules/candidate_parameters/locale/ja/LC_MESSAGES/candidate_parameters.mo @@ -319,12 +204,8 @@ conflict_resolver: npx i18next-conv -l ja -s modules/conflict_resolver/locale/ja/LC_MESSAGES/conflict_resolver.po -t modules/conflict_resolver/locale/ja/LC_MESSAGES/conflict_resolver.json target=conflict_resolver npm run compile -behavioural_qc: - msgfmt -o modules/behavioural_qc/locale/hi/LC_MESSAGES/behavioural_qc.mo modules/behavioural_qc/locale/hi/LC_MESSAGES/behavioural_qc.po - npx i18next-conv -l hi -s modules/behavioural_qc/locale/hi/LC_MESSAGES/behavioural_qc.po -t modules/behavioural_qc/locale/hi/LC_MESSAGES/behavioural_qc.json +behavioural_qc: modules/behavioural_qc/locale/hi/LC_MESSAGES/behavioural_qc.mo modules/behavioural_qc/locale/hi/LC_MESSAGES/behavioural_qc.json target=behavioural_qc npm run compile -my_preferences: modules/my_preferences/locale/ja/LC_MESSAGES/my_preferences.mo modules/my_preferences/locale/hi/LC_MESSAGES/my_preferences.mo - npx i18next-conv -l ja -s modules/my_preferences/locale/ja/LC_MESSAGES/my_preferences.po -t modules/my_preferences/locale/ja/LC_MESSAGES/my_preferences.json --compatibilityJSON v4 - npx i18next-conv -l hi -s modules/my_preferences/locale/hi/LC_MESSAGES/my_preferences.po -t modules/my_preferences/locale/hi/LC_MESSAGES/my_preferences.json --compatibilityJSON v4 +my_preferences: modules/my_preferences/locale/ja/LC_MESSAGES/my_preferences.mo modules/my_preferences/locale/hi/LC_MESSAGES/my_preferences.mo modules/my_preferences/locale/ja/LC_MESSAGES/my_preferences.json modules/my_preferences/locale/hi/LC_MESSAGES/my_preferences.json target=my_preferences npm run compile From 72adf28fe19ea4a2e950b39f2ff6da3a78daa9f1 Mon Sep 17 00:00:00 2001 From: Dave MacFarlane Date: Fri, 31 Oct 2025 15:05:26 -0400 Subject: [PATCH 2/5] Use filter to generate dependency list --- Makefile | 60 +++++++++++++++++++++++--------------------------------- 1 file changed, 24 insertions(+), 36 deletions(-) diff --git a/Makefile b/Makefile index 26ac89d17f0..e3444a6ce79 100755 --- a/Makefile +++ b/Makefile @@ -136,76 +136,64 @@ testdata: locales: $(MOFILES) $(I18NJSONFILES) -acknowledgements: modules/acknowledgements/locale/ja/LC_MESSAGES/acknowledgements.mo +acknowledgements: $(filter modules/acknowledgements/%,$(MOFILES)) $(filter modules/acknowledgements/%,$(I18NJSONFILES)) target=acknowledgements npm run compile -create_timepoint: +create_timepoint: $(filter modules/create_timepoint/%,$(MOFILES)) $(filter modules/create_timepoint/%,$(I18NJSONFILES)) target=data_release npm run compile -data_release: modules/data_release/locale/hi/LC_MESSAGES/data_release.mo modules/data_release/locale/ja/LC_MESSAGES/data_release.mo modules/data_release/locale/hi/LC_MESSAGES/data_release.json modules/data_release/locale/ja/LC_MESSAGES/data_release.json +data_release: $(filter modules/data_release/%,$(MOFILES)) $(filter modules/data_release/%,$(I18NJSONFILES)) target=data_release npm run compile -instrument_manager: modules/instrument_manager/locale/ja/LC_MESSAGES/instrument_manager.mo +instrument_manager: $(filter modules/instrument_manager/%,$(MOFILES)) $(filter modules/instrument_manager/%,$(I18NJSONFILES)) target=instrument_manager npm run compile -instrument_builder: modules/instrument_builder/locale/ja/LC_MESSAGES/instrument_builder.mo modules/instrument_builder/locale/hi/LC_MESSAGES/instrument_builder.mo +instrument_builder: $(filter modules/instrument_builder/%,$(MOFILES)) $(filter modules/instrument_builder/%,$(I18NJSONFILES)) target=instrument_builder npm run compile -dataquery: modules/dataquery/locale/ja/LC_MESSAGES/dataquery.mo +dataquery: $(filter modules/dataquery/%,$(MOFILES)) $(filter modules/dataquery/%,$(I18NJSONFILES)) target=dataquery npm run compile -login: modules/login/locale/ja/LC_MESSAGES/login.mo - npx i18next-conv -l ja -s modules/login/locale/ja/LC_MESSAGES/login.po -t modules/login/locale/ja/LC_MESSAGES/login.json --compatibilityJSON v4 +login: $(filter modules/login/%,$(MOFILES)) $(filter modules/login/%,$(I18NJSONFILES)) target=login npm run compile -module_manager: modules/module_manager/locale/ja/LC_MESSAGES/module_manager.mo modules/module_manager/locale/hi/LC_MESSAGES/module_manager.mo +module_manager: $(filter modules/module_manager/%,$(MOFILES)) $(filter modules/module_manager/%,$(I18NJSONFILES)) target=module_manager npm run compile -mri_violations: - msgfmt -o modules/mri_violations/locale/hi/LC_MESSAGES/mri_violations.mo modules/mri_violations/locale/hi/LC_MESSAGES/mri_violations.po - npx i18next-conv -l hi -s modules/mri_violations/locale/hi/LC_MESSAGES/mri_violations.po -t modules/mri_violations/locale/hi/LC_MESSAGES/mri_violations.json +mri_violations: $(filter modules/mri_violations/%,$(MOFILES)) $(filter modules/mri_violations/%,$(I18NJSONFILES)) target=mri_violations npm run compile -issue_tracker: - msgfmt -o modules/issue_tracker/locale/hi/LC_MESSAGES/issue_tracker.mo modules/issue_tracker/locale/hi/LC_MESSAGES/issue_tracker.po - npx i18next-conv -l hi -s modules/issue_tracker/locale/hi/LC_MESSAGES/issue_tracker.po -t modules/issue_tracker/locale/hi/LC_MESSAGES/issue_tracker.json +issue_tracker: $(filter modules/issue_tracker/%,$(MOFILES)) $(filter modules/issue_tracker/%,$(I18NJSONFILES)) target=issue_tracker npm run compile -candidate_list: modules/candidate_list/locale/ja/LC_MESSAGES/candidate_list.mo modules/candidate_list/locale/hi/LC_MESSAGES/candidate_list.mo modules/candidate_list/locale/ja/LC_MESSAGES/candidate_list.json modules/candidate_list/locale/hi/LC_MESSAGES/candidate_list.json +candidate_list: $(filter modules/candidate_list/%,$(MOFILES)) $(filter modules/candidate_list/%,$(I18NJSONFILES)) target=candidate_list npm run compile -candidate_parameters: modules/candidate_parameters/locale/ja/LC_MESSAGES/candidate_parameters.mo +candidate_parameters: $(filter modules/candidate_parameters/%,$(MOFILES)) $(filter modules/candidate_parameters/%,$(I18NJSONFILES)) target=candidate_parameters npm run compile -dashboard: modules/dashboard/locale/ja/LC_MESSAGES/dashboard.mo +dashboard: $(filter modules/dashboard/%,$(MOFILES)) $(filter modules/dashboard/%,$(I18NJSONFILES)) target=dashboard npm run compile -publication: - msgfmt -o modules/publication/locale/hi/LC_MESSAGES/publication.mo modules/publication/locale/hi/LC_MESSAGES/publication.po - npx i18next-conv -l hi -s modules/publication/locale/hi/LC_MESSAGES/publication.po -t modules/publication/locale/hi/LC_MESSAGES/publication.json - target=publication npm run compile - -brainbrowser: +brainbrowser: $(filter modules/brainbrowser/%,$(MOFILES)) $(filter modules/brainbrowser/%,$(I18NJSONFILES)) msgfmt -o modules/brainbrowser/locale/hi/LC_MESSAGES/brainbrowser.mo modules/brainbrowser/locale/hi/LC_MESSAGES/brainbrowser.po npx i18next-conv -l hi -s modules/brainbrowser/locale/hi/LC_MESSAGES/brainbrowser.po -t modules/brainbrowser/locale/hi/LC_MESSAGES/brainbrowser.json target=brainbrowser npm run compile -schedule_module: - msgfmt -o modules/schedule_module/locale/hi/LC_MESSAGES/schedule_module.mo modules/schedule_module/locale/hi/LC_MESSAGES/schedule_module.po - npx i18next-conv -l hi -s modules/schedule_module/locale/hi/LC_MESSAGES/schedule_module.po -t modules/schedule_module/locale/hi/LC_MESSAGES/schedule_module.json +schedule_module: $(filter modules/schedule_module/%,$(MOFILES)) $(filter modules/schedule_module/%,$(I18NJSONFILES)) target=schedule_module npm run compile -server_processes_manager: modules/server_processes_manager/locale/ja/LC_MESSAGES/server_processes_manager.mo +behavioural_qc: $(filter modules/behavioural_qc/%,$(MOFILES)) $(filter modules/behavioural_qc/%,$(I18NJSONFILES)) + target=behavioural_qc npm run compile + +publication: $(filter modules/publication/%,$(MOFILES)) $(filter modules/publication/%,$(I18NJSONFILES)) + target=publication npm run compile + +server_processes_manager: $(filter modules/server_processes_manager/%,$(MOFILES)) $(filter modules/server_processes_manager/%,$(I18NJSONFILES)) target=server_processes_manager npm run compile -conflict_resolver: - msgfmt -o modules/conflict_resolver/locale/hi/LC_MESSAGES/conflict_resolver.mo modules/conflict_resolver/locale/hi/LC_MESSAGES/conflict_resolver.po - npx i18next-conv -l hi -s modules/conflict_resolver/locale/hi/LC_MESSAGES/conflict_resolver.po -t modules/conflict_resolver/locale/hi/LC_MESSAGES/conflict_resolver.json - npx i18next-conv -l ja -s modules/conflict_resolver/locale/ja/LC_MESSAGES/conflict_resolver.po -t modules/conflict_resolver/locale/ja/LC_MESSAGES/conflict_resolver.json +conflict_resolver: $(filter modules/conflict_resolver/%,$(MOFILES)) $(filter modules/conflict_resolver/%,$(I18NJSONFILES)) target=conflict_resolver npm run compile -behavioural_qc: modules/behavioural_qc/locale/hi/LC_MESSAGES/behavioural_qc.mo modules/behavioural_qc/locale/hi/LC_MESSAGES/behavioural_qc.json - target=behavioural_qc npm run compile - -my_preferences: modules/my_preferences/locale/ja/LC_MESSAGES/my_preferences.mo modules/my_preferences/locale/hi/LC_MESSAGES/my_preferences.mo modules/my_preferences/locale/ja/LC_MESSAGES/my_preferences.json modules/my_preferences/locale/hi/LC_MESSAGES/my_preferences.json +my_preferences: $(filter modules/my_preferences/%,$(MOFILES)) $(filter modules/my_preferences/%,$(I18NJSONFILES)) target=my_preferences npm run compile From 0a1f5f64046e143acea3aa6d9874ec5072ec6c78 Mon Sep 17 00:00:00 2001 From: Dave MacFarlane Date: Mon, 24 Nov 2025 14:31:50 -0500 Subject: [PATCH 3/5] Update po file list --- Makefile | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e3444a6ce79..070bbf2c1e0 100755 --- a/Makefile +++ b/Makefile @@ -5,20 +5,27 @@ POFILES=locale/fr/LC_MESSAGES/loris.po \ locale/hi/LC_MESSAGES/loris.po \ locale/es/LC_MESSAGES/loris.po \ locale/en/LC_MESSAGES/loris.po \ + modules/media/locale/fr/LC_MESSAGES/media.po \ modules/media/locale/ja/LC_MESSAGES/media.po \ + modules/media/locale/hi/LC_MESSAGES/media.po \ + modules/media/locale/es/LC_MESSAGES/media.po \ modules/datadict/locale/ja/LC_MESSAGES/datadict.po \ modules/datadict/locale/hi/LC_MESSAGES/datadict.po \ modules/mri_violations/locale/ja/LC_MESSAGES/mri_violations.po \ modules/statistics/locale/ja/LC_MESSAGES/statistics.po \ modules/server_processes_manager/locale/ja/LC_MESSAGES/server_processes_manager.po \ modules/module_manager/locale/ja/LC_MESSAGES/module_manager.po \ + modules/module_manager/locale/hi/LC_MESSAGES/module_manager.po \ modules/configuration/locale/ja/LC_MESSAGES/configuration.po \ modules/oidc/locale/ja/LC_MESSAGES/oidc.po \ + modules/instrument_list/locale/fr/LC_MESSAGES/instrument_list.po \ modules/instrument_list/locale/ja/LC_MESSAGES/instrument_list.po \ modules/instrument_list/locale/es/LC_MESSAGES/instrument_list.po \ modules/my_preferences/locale/ja/LC_MESSAGES/my_preferences.po \ modules/my_preferences/locale/hi/LC_MESSAGES/my_preferences.po \ modules/dicom_archive/locale/ja/LC_MESSAGES/dicom_archive.po \ + modules/dicom_archive/locale/hi/LC_MESSAGES/dicom_archive.po \ + modules/new_profile/locale/fr/LC_MESSAGES/new_profile.po \ modules/new_profile/locale/ja/LC_MESSAGES/new_profile.po \ modules/new_profile/locale/hi/LC_MESSAGES/new_profile.po \ modules/new_profile/locale/es/LC_MESSAGES/new_profile.po \ @@ -30,18 +37,26 @@ POFILES=locale/fr/LC_MESSAGES/loris.po \ modules/dictionary/locale/ja/LC_MESSAGES/dictionary.po \ modules/dictionary/locale/hi/LC_MESSAGES/dictionary.po \ modules/instrument_manager/locale/ja/LC_MESSAGES/instrument_manager.po \ + modules/candidate_profile/locale/fr/LC_MESSAGES/candidate_profile.po \ modules/candidate_profile/locale/ja/LC_MESSAGES/candidate_profile.po \ modules/behavioural_qc/locale/ja/LC_MESSAGES/behavioural_qc.po \ + modules/behavioural_qc/locale/hi/LC_MESSAGES/behavioural_qc.po \ modules/user_accounts/locale/ja/LC_MESSAGES/user_accounts.po \ + modules/user_accounts/locale/hi/LC_MESSAGES/user_accounts.po \ modules/schedule_module/locale/ja/LC_MESSAGES/schedule_module.po \ + modules/schedule_module/locale/hi/LC_MESSAGES/schedule_module.po \ modules/imaging_uploader/locale/ja/LC_MESSAGES/imaging_uploader.po \ + modules/imaging_uploader/locale/hi/LC_MESSAGES/imaging_uploader.po \ modules/next_stage/locale/ja/LC_MESSAGES/next_stage.po \ modules/next_stage/locale/es/LC_MESSAGES/next_stage.po \ modules/examiner/locale/ja/LC_MESSAGES/examiner.po \ modules/login/locale/ja/LC_MESSAGES/login.po \ modules/instrument_builder/locale/ja/LC_MESSAGES/instrument_builder.po \ + modules/instrument_builder/locale/hi/LC_MESSAGES/instrument_builder.po \ modules/document_repository/locale/ja/LC_MESSAGES/document_repository.po \ modules/conflict_resolver/locale/ja/LC_MESSAGES/conflict_resolver.po \ + modules/conflict_resolver/locale/hi/LC_MESSAGES/conflict_resolver.po \ + modules/candidate_list/locale/fr/LC_MESSAGES/candidate_list.po \ modules/candidate_list/locale/ja/LC_MESSAGES/candidate_list.po \ modules/candidate_list/locale/hi/LC_MESSAGES/candidate_list.po \ modules/create_timepoint/locale/ja/LC_MESSAGES/create_timepoint.po \ @@ -49,6 +64,8 @@ POFILES=locale/fr/LC_MESSAGES/loris.po \ modules/brainbrowser/locale/ja/LC_MESSAGES/brainbrowser.po \ modules/dataquery/locale/ja/LC_MESSAGES/dataquery.po \ modules/issue_tracker/locale/ja/LC_MESSAGES/issue_tracker.po \ + modules/issue_tracker/locale/hi/LC_MESSAGES/issue_tracker.po \ + modules/timepoint_list/locale/fr/LC_MESSAGES/timepoint_list.po \ modules/timepoint_list/locale/ja/LC_MESSAGES/timepoint_list.po \ modules/timepoint_list/locale/es/LC_MESSAGES/timepoint_list.po \ modules/data_release/locale/ja/LC_MESSAGES/data_release.po \ @@ -57,14 +74,19 @@ POFILES=locale/fr/LC_MESSAGES/loris.po \ modules/acknowledgements/locale/ja/LC_MESSAGES/acknowledgements.po \ modules/survey_accounts/locale/ja/LC_MESSAGES/survey_accounts.po \ modules/battery_manager/locale/ja/LC_MESSAGES/battery_manager.po \ + modules/battery_manager/locale/hi/LC_MESSAGES/battery_manager.po \ modules/imaging_qc/locale/ja/LC_MESSAGES/imaging_qc.po \ modules/electrophysiology_browser/locale/ja/LC_MESSAGES/electrophysiology_browser.po \ modules/api_docs/locale/ja/LC_MESSAGES/api_docs.po \ modules/publication/locale/ja/LC_MESSAGES/publication.po \ + modules/publication/locale/hi/LC_MESSAGES/publication.po \ + modules/publication/locale/en/LC_MESSAGES/publication.po \ modules/dashboard/locale/ja/LC_MESSAGES/dashboard.po \ modules/candidate_parameters/locale/ja/LC_MESSAGES/candidate_parameters.po \ modules/imaging_browser/locale/ja/LC_MESSAGES/imaging_browser.po \ - modules/help_editor/locale/ja/LC_MESSAGES/help_editor.po + modules/imaging_browser/locale/hi/LC_MESSAGES/imaging_browser.po \ + modules/help_editor/locale/ja/LC_MESSAGES/help_editor.po \ + modules/help_editor/locale/hi/LC_MESSAGES/help_editor.po MOFILES=$(patsubst %.po,%.mo,$(POFILES)) I18NJSONFILES=$(patsubst %.po,%.json,$(POFILES)) From 93771fab4fe7de86c0ea32f0c4f275196e552e93 Mon Sep 17 00:00:00 2001 From: Dave MacFarlane Date: Wed, 3 Dec 2025 15:32:33 -0500 Subject: [PATCH 4/5] Update po list --- Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Makefile b/Makefile index 070bbf2c1e0..244025852fd 100755 --- a/Makefile +++ b/Makefile @@ -9,9 +9,14 @@ POFILES=locale/fr/LC_MESSAGES/loris.po \ modules/media/locale/ja/LC_MESSAGES/media.po \ modules/media/locale/hi/LC_MESSAGES/media.po \ modules/media/locale/es/LC_MESSAGES/media.po \ + modules/datadict/locale/fr/LC_MESSAGES/datadict.po \ modules/datadict/locale/ja/LC_MESSAGES/datadict.po \ modules/datadict/locale/hi/LC_MESSAGES/datadict.po \ + modules/mri_violations/locale/fr/LC_MESSAGES/mri_violations.po \ modules/mri_violations/locale/ja/LC_MESSAGES/mri_violations.po \ + modules/mri_violations/locale/hi/LC_MESSAGES/mri_violations.po \ + modules/mri_violations/locale/es/LC_MESSAGES/mri_violations.po \ + modules/statistics/locale/fr/LC_MESSAGES/statistics.po \ modules/statistics/locale/ja/LC_MESSAGES/statistics.po \ modules/server_processes_manager/locale/ja/LC_MESSAGES/server_processes_manager.po \ modules/module_manager/locale/ja/LC_MESSAGES/module_manager.po \ @@ -21,6 +26,7 @@ POFILES=locale/fr/LC_MESSAGES/loris.po \ modules/instrument_list/locale/fr/LC_MESSAGES/instrument_list.po \ modules/instrument_list/locale/ja/LC_MESSAGES/instrument_list.po \ modules/instrument_list/locale/es/LC_MESSAGES/instrument_list.po \ + modules/my_preferences/locale/fr/LC_MESSAGES/my_preferences.po \ modules/my_preferences/locale/ja/LC_MESSAGES/my_preferences.po \ modules/my_preferences/locale/hi/LC_MESSAGES/my_preferences.po \ modules/dicom_archive/locale/ja/LC_MESSAGES/dicom_archive.po \ @@ -32,8 +38,10 @@ POFILES=locale/fr/LC_MESSAGES/loris.po \ modules/dqt/locale/ja/LC_MESSAGES/dqt.po \ modules/bvl_feedback/locale/ja/LC_MESSAGES/bvl_feedback.po \ modules/genomic_browser/locale/ja/LC_MESSAGES/genomic_browser.po \ + modules/instruments/locale/fr/LC_MESSAGES/instruments.po \ modules/instruments/locale/ja/LC_MESSAGES/instruments.po \ modules/instruments/locale/es/LC_MESSAGES/instruments.po \ + modules/dictionary/locale/fr/LC_MESSAGES/dictionary.po \ modules/dictionary/locale/ja/LC_MESSAGES/dictionary.po \ modules/dictionary/locale/hi/LC_MESSAGES/dictionary.po \ modules/instrument_manager/locale/ja/LC_MESSAGES/instrument_manager.po \ @@ -41,24 +49,29 @@ POFILES=locale/fr/LC_MESSAGES/loris.po \ modules/candidate_profile/locale/ja/LC_MESSAGES/candidate_profile.po \ modules/behavioural_qc/locale/ja/LC_MESSAGES/behavioural_qc.po \ modules/behavioural_qc/locale/hi/LC_MESSAGES/behavioural_qc.po \ + modules/user_accounts/locale/fr/LC_MESSAGES/user_accounts.po \ modules/user_accounts/locale/ja/LC_MESSAGES/user_accounts.po \ modules/user_accounts/locale/hi/LC_MESSAGES/user_accounts.po \ modules/schedule_module/locale/ja/LC_MESSAGES/schedule_module.po \ modules/schedule_module/locale/hi/LC_MESSAGES/schedule_module.po \ modules/imaging_uploader/locale/ja/LC_MESSAGES/imaging_uploader.po \ modules/imaging_uploader/locale/hi/LC_MESSAGES/imaging_uploader.po \ + modules/next_stage/locale/fr/LC_MESSAGES/next_stage.po \ modules/next_stage/locale/ja/LC_MESSAGES/next_stage.po \ modules/next_stage/locale/es/LC_MESSAGES/next_stage.po \ modules/examiner/locale/ja/LC_MESSAGES/examiner.po \ + modules/examiner/locale/hi/LC_MESSAGES/examiner.po \ modules/login/locale/ja/LC_MESSAGES/login.po \ modules/instrument_builder/locale/ja/LC_MESSAGES/instrument_builder.po \ modules/instrument_builder/locale/hi/LC_MESSAGES/instrument_builder.po \ modules/document_repository/locale/ja/LC_MESSAGES/document_repository.po \ + modules/document_repository/locale/hi/LC_MESSAGES/document_repository.po \ modules/conflict_resolver/locale/ja/LC_MESSAGES/conflict_resolver.po \ modules/conflict_resolver/locale/hi/LC_MESSAGES/conflict_resolver.po \ modules/candidate_list/locale/fr/LC_MESSAGES/candidate_list.po \ modules/candidate_list/locale/ja/LC_MESSAGES/candidate_list.po \ modules/candidate_list/locale/hi/LC_MESSAGES/candidate_list.po \ + modules/create_timepoint/locale/fr/LC_MESSAGES/create_timepoint.po \ modules/create_timepoint/locale/ja/LC_MESSAGES/create_timepoint.po \ modules/create_timepoint/locale/es/LC_MESSAGES/create_timepoint.po \ modules/brainbrowser/locale/ja/LC_MESSAGES/brainbrowser.po \ @@ -68,6 +81,7 @@ POFILES=locale/fr/LC_MESSAGES/loris.po \ modules/timepoint_list/locale/fr/LC_MESSAGES/timepoint_list.po \ modules/timepoint_list/locale/ja/LC_MESSAGES/timepoint_list.po \ modules/timepoint_list/locale/es/LC_MESSAGES/timepoint_list.po \ + modules/data_release/locale/fr/LC_MESSAGES/data_release.po \ modules/data_release/locale/ja/LC_MESSAGES/data_release.po \ modules/data_release/locale/hi/LC_MESSAGES/data_release.po \ modules/electrophysiology_uploader/locale/ja/LC_MESSAGES/electrophysiology_uploader.po \ From 5d5ff5cc71cd74d078e19e539a7085dfc6dda797 Mon Sep 17 00:00:00 2001 From: Dave MacFarlane Date: Thu, 4 Dec 2025 13:30:14 -0500 Subject: [PATCH 5/5] Update po list --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 244025852fd..e4f60c67fb0 100755 --- a/Makefile +++ b/Makefile @@ -75,6 +75,7 @@ POFILES=locale/fr/LC_MESSAGES/loris.po \ modules/create_timepoint/locale/ja/LC_MESSAGES/create_timepoint.po \ modules/create_timepoint/locale/es/LC_MESSAGES/create_timepoint.po \ modules/brainbrowser/locale/ja/LC_MESSAGES/brainbrowser.po \ + modules/brainbrowser/locale/hi/LC_MESSAGES/brainbrowser.po \ modules/dataquery/locale/ja/LC_MESSAGES/dataquery.po \ modules/issue_tracker/locale/ja/LC_MESSAGES/issue_tracker.po \ modules/issue_tracker/locale/hi/LC_MESSAGES/issue_tracker.po \ @@ -101,7 +102,6 @@ POFILES=locale/fr/LC_MESSAGES/loris.po \ modules/imaging_browser/locale/hi/LC_MESSAGES/imaging_browser.po \ modules/help_editor/locale/ja/LC_MESSAGES/help_editor.po \ modules/help_editor/locale/hi/LC_MESSAGES/help_editor.po - MOFILES=$(patsubst %.po,%.mo,$(POFILES)) I18NJSONFILES=$(patsubst %.po,%.json,$(POFILES))