From 31efa0bc637b98e00d6e3c477b8ba7bce1e24c4c Mon Sep 17 00:00:00 2001 From: Saket Hatwar Date: Mon, 28 Jul 2025 15:17:20 -0400 Subject: [PATCH 1/8] Add Translation --- Makefile | 2 + modules/dictionary/jsx/dataDictIndex.js | 69 +++++++------- modules/dictionary/locale/dictionary.pot | 72 ++++++++++++++ .../locale/hi/LC_MESSAGES/dictionary.po | 95 +++++++++++++++++++ 4 files changed, 206 insertions(+), 32 deletions(-) create mode 100644 modules/dictionary/locale/hi/LC_MESSAGES/dictionary.po diff --git a/Makefile b/Makefile index c614da9d7bb..4965f154dba 100755 --- a/Makefile +++ b/Makefile @@ -89,6 +89,8 @@ locales: 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/dictionary/locale/ja/LC_MESSAGES/dictionary.mo modules/dictionary/locale/ja/LC_MESSAGES/dictionary.po + 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/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 diff --git a/modules/dictionary/jsx/dataDictIndex.js b/modules/dictionary/jsx/dataDictIndex.js index e166dfdf769..21ad62b790d 100644 --- a/modules/dictionary/jsx/dataDictIndex.js +++ b/modules/dictionary/jsx/dataDictIndex.js @@ -9,6 +9,8 @@ import Loader from 'Loader'; import FilterableDataTable from 'FilterableDataTable'; import swal from 'sweetalert2'; +import hiStrings from '../locale/hi/LC_MESSAGES/dictionary.json'; + /** * Data Dictionary Page. * @@ -68,16 +70,17 @@ class DataDictIndex extends Component { * @return {Function} callback function for react to activate swal */ editSwal(row) { + const { t } = this.props; return () => { swal.fire({ - title: 'Edit Description', + title: t('Edit Description', {ns: 'dictionary'}), input: 'text', inputValue: row.Description, - confirmButtonText: 'Modify', + confirmButtonText: t('Modify', {ns: 'dictionary'}), showCancelButton: true, inputValidator: (value) => { if (!value) { - return 'Missing description'; + return t('Missing description', {ns: 'dictionary'}); } }, }).then((result) => { @@ -106,7 +109,7 @@ class DataDictIndex extends Component { // Aggressively update the state and assume // it's been modified. this.state.data.Data[i][3] = result.value; - this.state.data.Data[i][4] = 'Modified'; + this.state.data.Data[i][4] = t('Modified', {ns: 'dictionary'}); // Force a re-render this.setState({state: this.state}); @@ -183,20 +186,20 @@ class DataDictIndex extends Component { * @return {*} a formatted table cell for a given column */ formatColumn(column, cell, rowData, rowHeaders) { + const { t } = this.props; const hasEditPermission = loris.userHasPermission('data_dict_edit'); let editIcon = ''; - let edited=''; + let edited = ''; switch (column) { - case 'Description': + case t('Description', {ns: 'dictionary'}): if (hasEditPermission) { editIcon = ( ); } - - if (rowData['Description Status'] == 'Modified') { - edited = (edited); + if (rowData[t('Description Status', {ns: 'dictionary'})] === t('Modified', {ns: 'dictionary'})) { + edited = ({t('edited', {ns: 'dictionary'})}); } return {cell} {edited} {editIcon} @@ -212,8 +215,10 @@ class DataDictIndex extends Component { * @return {JSX} - React markup for the component */ render() { + const { t } = this.props; + if (this.state.error) { - return

An error occured while loading the page.

; + return

{t('An error occured while loading the page.', {ns: 'dictionary'})}

; } // Waiting for async data to load @@ -224,7 +229,7 @@ class DataDictIndex extends Component { let options = this.state.data.fieldOptions; let fields = [ { - label: 'Module', + label: t('Module', {ns: 'dictionary'}), show: true, filter: { name: 'Module', @@ -233,18 +238,18 @@ class DataDictIndex extends Component { }, }, { - label: 'Category', + label: t('Category', {ns: 'dictionary'}), show: false, filter: { name: 'Category', type: 'select', - options: this.state.moduleFilter == '' + options: this.state.moduleFilter === '' ? {} : options.categories[this.state.moduleFilter], }, }, { - label: 'Field Name', + label: t('Field Name', {ns: 'dictionary'}), show: true, filter: { name: 'Name', @@ -252,7 +257,7 @@ class DataDictIndex extends Component { }, }, { - label: 'Description', + label: t('Description', {ns: 'dictionary'}), show: true, filter: { name: 'Description', @@ -260,33 +265,33 @@ class DataDictIndex extends Component { }, }, { - label: 'Description Status', + label: t('Description Status', {ns: 'dictionary'}), show: false, filter: { name: 'DescriptionStatus', type: 'select', options: { - 'empty': 'Empty', - 'modified': 'Modified', - 'unchanged': 'Unchanged', + 'empty': t('Empty', {ns: 'dictionary'}), + 'modified': t('Modified', {ns: 'dictionary'}), + 'unchanged': t('Unchanged', {ns: 'dictionary'}), }, }, }, { - label: 'Data Scope', + label: t('Data Scope', {ns: 'dictionary'}), show: true, filter: { name: 'datascope', type: 'select', options: { - 'candidate': 'Candidate', - 'session': 'Session', - 'project': 'Project', + 'candidate': t('Candidate', {ns: 'dictionary'}), + 'session': t('Session', {ns: 'dictionary'}), + 'project': t('Project', {ns: 'dictionary'}), }, }, }, { - label: 'Data Type', + label: t('Data Type', {ns: 'dictionary'}), show: true, filter: { name: 'datatype', @@ -294,21 +299,21 @@ class DataDictIndex extends Component { }, }, { - label: 'Data Cardinality', + label: t('Data Cardinality', {ns: 'dictionary'}), show: true, filter: { name: 'cardinality', type: 'select', options: { - 'unique': 'Unique', - 'single': 'Single', - 'optional': 'Optional', - 'many': 'Many', + 'unique': t('Unique', {ns: 'dictionary'}), + 'single': t('Single', {ns: 'dictionary'}), + 'optional': t('Optional', {ns: 'dictionary'}), + 'many': t('Many', {ns: 'dictionary'}), }, }, }, { - label: 'Visits', + label: t('Visits', {ns: 'dictionary'}), show: true, filter: { name: 'Visits', @@ -317,7 +322,7 @@ class DataDictIndex extends Component { }, }, { - label: 'Cohorts', + label: t('Cohorts', {ns: 'dictionary'}), show: true, filter: { name: 'Cohorts', @@ -343,7 +348,7 @@ DataDictIndex.propTypes = { }; window.addEventListener('load', () => { - i18n.addResourceBundle('ja', 'dictionary', {}); + i18n.addResourceBundle('hi', 'dictionary', hiStrings); const Index = withTranslation( ['dictionary', 'loris'] )(DataDictIndex); diff --git a/modules/dictionary/locale/dictionary.pot b/modules/dictionary/locale/dictionary.pot index b874b6c4fb9..ba1166f335a 100644 --- a/modules/dictionary/locale/dictionary.pot +++ b/modules/dictionary/locale/dictionary.pot @@ -21,3 +21,75 @@ msgstr "" msgid "Data Dictionary" msgstr "" +msgid "Edit Description" +msgstr "" + +msgid "Modify" +msgstr "" + +msgid "Missing description" +msgstr "" + +msgid "Description Status" +msgstr "" + +msgid "Modified" +msgstr "" + +msgid "edited" +msgstr "" + +msgid "Empty" +msgstr "" + +msgid "Unchanged" +msgstr "" + +msgid "Module" +msgstr "" + +msgid "Category" +msgstr "" + +msgid "Field Name" +msgstr "" + +msgid "Data Scope" +msgstr "" + +msgid "Candidate" +msgstr "" + +msgid "Session" +msgstr "" + +msgid "Project" +msgstr "" + +msgid "Data Type" +msgstr "" + +msgid "Data Cardinality" +msgstr "" + +msgid "Unique" +msgstr "" + +msgid "Single" +msgstr "" + +msgid "Optional" +msgstr "" + +msgid "Many" +msgstr "" + +msgid "Visits" +msgstr "" + +msgid "Cohorts" +msgstr "" + +msgid "An error occured while loading the page." +msgstr "" + diff --git a/modules/dictionary/locale/hi/LC_MESSAGES/dictionary.po b/modules/dictionary/locale/hi/LC_MESSAGES/dictionary.po new file mode 100644 index 00000000000..c552a989800 --- /dev/null +++ b/modules/dictionary/locale/hi/LC_MESSAGES/dictionary.po @@ -0,0 +1,95 @@ +# Default LORIS strings to be translated (English). +# Copy this to a language specific file and add translations to the +# new file. +# Copyright (C) 2025 +# This file is distributed under the same license as the LORIS package. +# Dave MacFarlane , 2025. +# +msgid "" +msgstr "" +"Project-Id-Version: LORIS 27\n" +"Report-Msgid-Bugs-To: https://github.com/aces/Loris/issues\n" +"POT-Creation-Date: 2025-04-08 14:37-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: hi\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +msgid "Data Dictionary" +msgstr "डेटा शब्दकोश" + +msgid "Edit Description" +msgstr "विवरण संपादित करें" + +msgid "Modify" +msgstr "संशोधित करें" + +msgid "Missing description" +msgstr "विवरण अनुपलब्ध है" + +msgid "Description Status" +msgstr "विवरण स्थिति" + +msgid "Modified" +msgstr "संशोधित" + +msgid "edited" +msgstr "संपादित" + +msgid "Empty" +msgstr "खाली" + +msgid "Unchanged" +msgstr "अपरिवर्तित" + +msgid "Module" +msgstr "मॉड्यूल" + +msgid "Category" +msgstr "श्रेणी" + +msgid "Field Name" +msgstr "फ़ील्ड नाम" + +msgid "Data Scope" +msgstr "डेटा दायरा" + +msgid "Candidate" +msgstr "उम्मीदवार" + +msgid "Session" +msgstr "सत्र" + +msgid "Project" +msgstr "परियोजना" + +msgid "Data Type" +msgstr "डेटा प्रकार" + +msgid "Data Cardinality" +msgstr "डेटा कार्डिनैलिटी" + +msgid "Unique" +msgstr "अद्वितीय" + +msgid "Single" +msgstr "एकल" + +msgid "Optional" +msgstr "वैकल्पिक" + +msgid "Many" +msgstr "अनेक" + +msgid "Visits" +msgstr "दौरे" + +msgid "Cohorts" +msgstr "समूह" + +msgid "An error occured while loading the page." +msgstr "पृष्ठ लोड करते समय एक त्रुटि हुई।" + From e92e7ba81d6755cd7269ceed7dcfff7951540ccc Mon Sep 17 00:00:00 2001 From: Saket Hatwar Date: Sun, 10 Aug 2025 14:53:40 -0400 Subject: [PATCH 2/8] lint --- modules/dictionary/jsx/dataDictIndex.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/modules/dictionary/jsx/dataDictIndex.js b/modules/dictionary/jsx/dataDictIndex.js index 21ad62b790d..76afc9f6416 100644 --- a/modules/dictionary/jsx/dataDictIndex.js +++ b/modules/dictionary/jsx/dataDictIndex.js @@ -70,7 +70,7 @@ class DataDictIndex extends Component { * @return {Function} callback function for react to activate swal */ editSwal(row) { - const { t } = this.props; + const {t} = this.props; return () => { swal.fire({ title: t('Edit Description', {ns: 'dictionary'}), @@ -186,7 +186,7 @@ class DataDictIndex extends Component { * @return {*} a formatted table cell for a given column */ formatColumn(column, cell, rowData, rowHeaders) { - const { t } = this.props; + const {t} = this.props; const hasEditPermission = loris.userHasPermission('data_dict_edit'); let editIcon = ''; let edited = ''; @@ -198,7 +198,8 @@ class DataDictIndex extends Component { onClick={this.editSwal(rowData)}> ); } - if (rowData[t('Description Status', {ns: 'dictionary'})] === t('Modified', {ns: 'dictionary'})) { + if (rowData[t('Description Status', {ns: 'dictionary'})] === + t('Modified', {ns: 'dictionary'})) { edited = ({t('edited', {ns: 'dictionary'})}); } return {cell} @@ -215,10 +216,11 @@ class DataDictIndex extends Component { * @return {JSX} - React markup for the component */ render() { - const { t } = this.props; + const {t} = this.props; if (this.state.error) { - return

{t('An error occured while loading the page.', {ns: 'dictionary'})}

; + return

{t('An error occured while loading the page.', + {ns: 'dictionary'})}

; } // Waiting for async data to load @@ -345,6 +347,7 @@ class DataDictIndex extends Component { DataDictIndex.propTypes = { dataURL: PropTypes.string.isRequired, BaseURL: PropTypes.string, + t: PropTypes.func.isRequired, }; window.addEventListener('load', () => { From a5225c0e3e43e6ab46a983b1e81d8a5dbf622e0a Mon Sep 17 00:00:00 2001 From: Saket Hatwar Date: Tue, 19 Aug 2025 05:06:04 -0400 Subject: [PATCH 3/8] revision --- modules/dictionary/jsx/dataDictIndex.js | 2 +- modules/dictionary/locale/dictionary.pot | 8 -------- modules/dictionary/locale/hi/LC_MESSAGES/dictionary.po | 8 -------- 3 files changed, 1 insertion(+), 17 deletions(-) diff --git a/modules/dictionary/jsx/dataDictIndex.js b/modules/dictionary/jsx/dataDictIndex.js index 76afc9f6416..8097af28b4a 100644 --- a/modules/dictionary/jsx/dataDictIndex.js +++ b/modules/dictionary/jsx/dataDictIndex.js @@ -288,7 +288,7 @@ class DataDictIndex extends Component { options: { 'candidate': t('Candidate', {ns: 'dictionary'}), 'session': t('Session', {ns: 'dictionary'}), - 'project': t('Project', {ns: 'dictionary'}), + 'project': t('Project', {ns: 'loris'}), }, }, }, diff --git a/modules/dictionary/locale/dictionary.pot b/modules/dictionary/locale/dictionary.pot index ba1166f335a..50a255916f2 100644 --- a/modules/dictionary/locale/dictionary.pot +++ b/modules/dictionary/locale/dictionary.pot @@ -60,12 +60,6 @@ msgstr "" msgid "Candidate" msgstr "" -msgid "Session" -msgstr "" - -msgid "Project" -msgstr "" - msgid "Data Type" msgstr "" @@ -90,6 +84,4 @@ msgstr "" msgid "Cohorts" msgstr "" -msgid "An error occured while loading the page." -msgstr "" diff --git a/modules/dictionary/locale/hi/LC_MESSAGES/dictionary.po b/modules/dictionary/locale/hi/LC_MESSAGES/dictionary.po index c552a989800..f5272647945 100644 --- a/modules/dictionary/locale/hi/LC_MESSAGES/dictionary.po +++ b/modules/dictionary/locale/hi/LC_MESSAGES/dictionary.po @@ -60,12 +60,6 @@ msgstr "डेटा दायरा" msgid "Candidate" msgstr "उम्मीदवार" -msgid "Session" -msgstr "सत्र" - -msgid "Project" -msgstr "परियोजना" - msgid "Data Type" msgstr "डेटा प्रकार" @@ -90,6 +84,4 @@ msgstr "दौरे" msgid "Cohorts" msgstr "समूह" -msgid "An error occured while loading the page." -msgstr "पृष्ठ लोड करते समय एक त्रुटि हुई।" From 00dc2abf174936c914c4addc708c7d952bd280e8 Mon Sep 17 00:00:00 2001 From: Saket Hatwar Date: Thu, 28 Aug 2025 10:15:57 -0400 Subject: [PATCH 4/8] revision --- modules/dictionary/jsx/dataDictIndex.js | 2 +- modules/dictionary/locale/dictionary.pot | 7 ------- modules/dictionary/locale/hi/LC_MESSAGES/dictionary.po | 10 ---------- 3 files changed, 1 insertion(+), 18 deletions(-) diff --git a/modules/dictionary/jsx/dataDictIndex.js b/modules/dictionary/jsx/dataDictIndex.js index 8097af28b4a..2a464682daf 100644 --- a/modules/dictionary/jsx/dataDictIndex.js +++ b/modules/dictionary/jsx/dataDictIndex.js @@ -220,7 +220,7 @@ class DataDictIndex extends Component { if (this.state.error) { return

{t('An error occured while loading the page.', - {ns: 'dictionary'})}

; + {ns: 'loris'})}; } // Waiting for async data to load diff --git a/modules/dictionary/locale/dictionary.pot b/modules/dictionary/locale/dictionary.pot index 50a255916f2..d94c5e8cce7 100644 --- a/modules/dictionary/locale/dictionary.pot +++ b/modules/dictionary/locale/dictionary.pot @@ -57,9 +57,6 @@ msgstr "" msgid "Data Scope" msgstr "" -msgid "Candidate" -msgstr "" - msgid "Data Type" msgstr "" @@ -78,10 +75,6 @@ msgstr "" msgid "Many" msgstr "" -msgid "Visits" -msgstr "" -msgid "Cohorts" -msgstr "" diff --git a/modules/dictionary/locale/hi/LC_MESSAGES/dictionary.po b/modules/dictionary/locale/hi/LC_MESSAGES/dictionary.po index f5272647945..9d44b5fa085 100644 --- a/modules/dictionary/locale/hi/LC_MESSAGES/dictionary.po +++ b/modules/dictionary/locale/hi/LC_MESSAGES/dictionary.po @@ -45,9 +45,6 @@ msgstr "खाली" msgid "Unchanged" msgstr "अपरिवर्तित" -msgid "Module" -msgstr "मॉड्यूल" - msgid "Category" msgstr "श्रेणी" @@ -57,9 +54,6 @@ msgstr "फ़ील्ड नाम" msgid "Data Scope" msgstr "डेटा दायरा" -msgid "Candidate" -msgstr "उम्मीदवार" - msgid "Data Type" msgstr "डेटा प्रकार" @@ -78,10 +72,6 @@ msgstr "वैकल्पिक" msgid "Many" msgstr "अनेक" -msgid "Visits" -msgstr "दौरे" -msgid "Cohorts" -msgstr "समूह" From 52173bed4474c167393abcfb9575e05c860d01a7 Mon Sep 17 00:00:00 2001 From: Saket Hatwar Date: Sat, 30 Aug 2025 07:23:44 -0400 Subject: [PATCH 5/8] namespace --- modules/dictionary/jsx/dataDictIndex.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/dictionary/jsx/dataDictIndex.js b/modules/dictionary/jsx/dataDictIndex.js index 2a464682daf..77253e57e61 100644 --- a/modules/dictionary/jsx/dataDictIndex.js +++ b/modules/dictionary/jsx/dataDictIndex.js @@ -231,7 +231,7 @@ class DataDictIndex extends Component { let options = this.state.data.fieldOptions; let fields = [ { - label: t('Module', {ns: 'dictionary'}), + label: t('Module', {ns: 'loris'}), show: true, filter: { name: 'Module', @@ -315,7 +315,7 @@ class DataDictIndex extends Component { }, }, { - label: t('Visits', {ns: 'dictionary'}), + label: t('Visits', {ns: 'loris'}), show: true, filter: { name: 'Visits', @@ -324,7 +324,7 @@ class DataDictIndex extends Component { }, }, { - label: t('Cohorts', {ns: 'dictionary'}), + label: t('Cohorts', {ns: 'loris'}), show: true, filter: { name: 'Cohorts', From 01f10d9d8d6d198fa7f3d18e42b91ca07e18d233 Mon Sep 17 00:00:00 2001 From: Saket Hatwar Date: Sat, 30 Aug 2025 09:47:02 -0400 Subject: [PATCH 6/8] Shift Translations --- locale/hi/LC_MESSAGES/loris.po | 12 ++++++++++++ locale/loris.pot | 12 ++++++++++++ modules/dictionary/jsx/dataDictIndex.js | 4 ++-- modules/dictionary/locale/dictionary.pot | 3 --- 4 files changed, 26 insertions(+), 5 deletions(-) diff --git a/locale/hi/LC_MESSAGES/loris.po b/locale/hi/LC_MESSAGES/loris.po index 353699aabc6..0f0484f2d1a 100644 --- a/locale/hi/LC_MESSAGES/loris.po +++ b/locale/hi/LC_MESSAGES/loris.po @@ -130,12 +130,18 @@ msgstr "दौरे का लेबल" msgid "Site" msgstr "साइट" +msgid "Module" +msgstr "मॉड्यूल" + msgid "Project" msgstr "परियोजना" msgid "Cohort" msgstr "समूह" +msgid "Session" +msgstr "सत्र" + msgid "Date of registration" msgstr "पंजीकरण की तिथि" @@ -157,6 +163,12 @@ msgstr "स्कैन" msgid "Date of Birth" msgstr "जन्म तिथि" +msgid "Visits" +msgstr "भ्रमण" + +msgid "Cohorts" +msgstr "समूह" + msgid "An error occured while loading the page." msgstr "पृष्ठ लोड करते समय एक त्रुटि हुई।" diff --git a/locale/loris.pot b/locale/loris.pot index 949e41963b5..548ad0b8ca5 100644 --- a/locale/loris.pot +++ b/locale/loris.pot @@ -129,12 +129,18 @@ msgstr "" msgid "Site" msgstr "" +msgid "Module" +msgstr "" + msgid "Project" msgstr "" msgid "Cohort" msgstr "" +msgid "Session" +msgstr "" + msgid "Date of registration" msgstr "" @@ -156,6 +162,12 @@ msgstr "" msgid "Date of Birth" msgstr "" +msgid "Visits" +msgstr "" + +msgid "Cohorts" +msgstr "" + msgid "An error occured while loading the page." msgstr "" diff --git a/modules/dictionary/jsx/dataDictIndex.js b/modules/dictionary/jsx/dataDictIndex.js index 77253e57e61..9ba9b04649d 100644 --- a/modules/dictionary/jsx/dataDictIndex.js +++ b/modules/dictionary/jsx/dataDictIndex.js @@ -286,8 +286,8 @@ class DataDictIndex extends Component { name: 'datascope', type: 'select', options: { - 'candidate': t('Candidate', {ns: 'dictionary'}), - 'session': t('Session', {ns: 'dictionary'}), + 'candidate': t('Candidate', {ns: 'loris'}), + 'session': t('Session', {ns: 'loris'}), 'project': t('Project', {ns: 'loris'}), }, }, diff --git a/modules/dictionary/locale/dictionary.pot b/modules/dictionary/locale/dictionary.pot index d94c5e8cce7..a44217aae95 100644 --- a/modules/dictionary/locale/dictionary.pot +++ b/modules/dictionary/locale/dictionary.pot @@ -45,9 +45,6 @@ msgstr "" msgid "Unchanged" msgstr "" -msgid "Module" -msgstr "" - msgid "Category" msgstr "" From 5f7c7262890d22714a49678d1a7044c87bb52158 Mon Sep 17 00:00:00 2001 From: Saket Hatwar Date: Fri, 5 Sep 2025 09:02:44 -0400 Subject: [PATCH 7/8] add translations --- locale/hi/LC_MESSAGES/loris.po | 11 +++++++---- locale/loris.pot | 9 ++++++--- modules/dictionary/locale/dictionary.pot | 5 ++--- .../dictionary/locale/hi/LC_MESSAGES/dictionary.po | 5 ++--- 4 files changed, 17 insertions(+), 13 deletions(-) diff --git a/locale/hi/LC_MESSAGES/loris.po b/locale/hi/LC_MESSAGES/loris.po index 0f0484f2d1a..f5c26fdd86a 100644 --- a/locale/hi/LC_MESSAGES/loris.po +++ b/locale/hi/LC_MESSAGES/loris.po @@ -19,7 +19,7 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" # Smarty template main.tpl strings -msgid "LORIS" +msgid "LORIS"f msgstr "लोरिस" msgid "DEV" @@ -64,6 +64,9 @@ msgstr "प्रशासन" #: modules/datadict/php/module.class.inc:49 #: modules/data_release/php/module.class.inc:56 #: modules/dictionary/php/module.class.inc:49 +msgid "Data Dictionary" +msgstr "डेटा शब्दकोश" + #: modules/document_repository/php/module.class.inc:56 #: modules/instrument_builder/php/module.class.inc:48 #: modules/issue_tracker/php/module.class.inc:54 @@ -139,6 +142,9 @@ msgstr "परियोजना" msgid "Cohort" msgstr "समूह" +msgid "Cohorts" +msgstr "समूह" + msgid "Session" msgstr "सत्र" @@ -166,9 +172,6 @@ msgstr "जन्म तिथि" msgid "Visits" msgstr "भ्रमण" -msgid "Cohorts" -msgstr "समूह" - msgid "An error occured while loading the page." msgstr "पृष्ठ लोड करते समय एक त्रुटि हुई।" diff --git a/locale/loris.pot b/locale/loris.pot index 548ad0b8ca5..2dc2568ca24 100644 --- a/locale/loris.pot +++ b/locale/loris.pot @@ -63,6 +63,9 @@ msgstr "" #: modules/datadict/php/module.class.inc:49 #: modules/data_release/php/module.class.inc:56 #: modules/dictionary/php/module.class.inc:49 +msgid "Data Dictionary" +msgstr "" + #: modules/document_repository/php/module.class.inc:56 #: modules/instrument_builder/php/module.class.inc:48 #: modules/issue_tracker/php/module.class.inc:54 @@ -138,6 +141,9 @@ msgstr "" msgid "Cohort" msgstr "" +msgid "Cohorts" +msgstr "" + msgid "Session" msgstr "" @@ -165,9 +171,6 @@ msgstr "" msgid "Visits" msgstr "" -msgid "Cohorts" -msgstr "" - msgid "An error occured while loading the page." msgstr "" diff --git a/modules/dictionary/locale/dictionary.pot b/modules/dictionary/locale/dictionary.pot index a44217aae95..a882b158cc3 100644 --- a/modules/dictionary/locale/dictionary.pot +++ b/modules/dictionary/locale/dictionary.pot @@ -72,6 +72,5 @@ msgstr "" msgid "Many" msgstr "" - - - +msgid "Description" +msgstr "" \ No newline at end of file diff --git a/modules/dictionary/locale/hi/LC_MESSAGES/dictionary.po b/modules/dictionary/locale/hi/LC_MESSAGES/dictionary.po index 9d44b5fa085..9d11979c7df 100644 --- a/modules/dictionary/locale/hi/LC_MESSAGES/dictionary.po +++ b/modules/dictionary/locale/hi/LC_MESSAGES/dictionary.po @@ -72,6 +72,5 @@ msgstr "वैकल्पिक" msgid "Many" msgstr "अनेक" - - - +msgid "Description" +msgstr "विवरण" \ No newline at end of file From 83afede27b03e0aae8e518c4f78ed9dec917a1e4 Mon Sep 17 00:00:00 2001 From: Saket Hatwar Date: Fri, 5 Sep 2025 09:25:29 -0400 Subject: [PATCH 8/8] remove error --- locale/hi/LC_MESSAGES/loris.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locale/hi/LC_MESSAGES/loris.po b/locale/hi/LC_MESSAGES/loris.po index f5c26fdd86a..62ffa548dd5 100644 --- a/locale/hi/LC_MESSAGES/loris.po +++ b/locale/hi/LC_MESSAGES/loris.po @@ -19,7 +19,7 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" # Smarty template main.tpl strings -msgid "LORIS"f +msgid "LORIS" msgstr "लोरिस" msgid "DEV"