Skip to content

[new_profile] Translate module new_profile to Hindi #9900

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

SKADE2303
Copy link
Collaborator

Brief summary of changes

This PR provides the infrastructure for the translation of the module new_profile to another language. The translation is done in a similar method as #9797 .

Testing instructions (if applicable)

  1. Make sure the languages table in Loris includes the language Hindi.
  2. Confirm that the Hindi language pack is installed on the server.
  3. Update the my_preference table to set the preferred language as Hindi.

Link(s) to related issue(s)

@github-actions github-actions bot added Language: PHP PR or issue that update PHP code Language: Javascript PR or issue that update Javascript code Module: statistics PR or issue related to statistics module Module: issue_tracker PR or issue related to issue tracker module Module: dqt PR or issue related to (old) dqt module Module: acknowledgements PR or issue related to acknowledgements module Module: api_docs PR or issue related to api_docs module Module: battery_manager PR or issue related to battery_manager module Module: behavioural_qc PR or issue related behavioural_qc module Module: brainbrowser PR or issue related to brainbrowser module Module: bvl_feedback PR or issue related to bvl_feedback module Module: candidate_list PR or issue related to candidate_list module Module: candidate_parameters PR or issue related to candidate_parameters module Module: candidate_profile PR or issue related to candidate_profile module Module: configuration PR or issue related to configuration module Module: conflict_resolver PR or issue related to conflict_resolver module Module: create_timepoint PR or issue related to create_timepoint module Module: dashboard PR or issue related to dashboard module Module: datadict PR or issue related to (old) datadict module Module: dictionary PR or issue related to (new) dictionary module Module: document_repository PR or issue related to documen_repository module Module: electrophysiology_browser PR or issue related to electrophysiology_browser module Module: electrophysiology_uploader PR or issue related to electrophysiology_uploader Module: examiner PR or issue related to examiner module Module: genomic_browser PR or issue related to genomic_browser module Module: help_editor PR or issue related to help_editor module Module: imaging_browser PR or issue related to imaging_browser module Module: imaging_qc PR or issue related to imaging_qc module Module: imaging_uploader PR or issue related to imaging_uploader module Module: instrument_builder PR or issue related to instrument_builder module labels Jul 7, 2025
@SKADE2303 SKADE2303 removed Module: genomic_browser PR or issue related to genomic_browser module Module: help_editor PR or issue related to help_editor module Module: imaging_browser PR or issue related to imaging_browser module Module: imaging_qc PR or issue related to imaging_qc module Module: imaging_uploader PR or issue related to imaging_uploader module Module: instrument_builder PR or issue related to instrument_builder module Module: instrument_list PR or issue related to instrument_list module Module: instrument_manager PR or issue related to instrument_manager module Module: instruments PR or issue related to instruments module Module: login PR or issue related to login module Module: media PR or issue related to media module Module: module_manager PR or issue related to module_manager module Module: mri_violations PR or issue related to mri_violations module Module: next_stage PR or issue related to next_stage module Module: oidc PR or issue related to the oidc (OpenID Connect) module Module: publication PR or issue related to the publication module Module: schedule_module PR or issue related to the schedule_manager module Module: server_processes_manager PR or issue related to the server_processes_manger Module: survey_accounts PR or issue related to the survey_accounts module Module: timepoint_list PR or issue related to the timepoint_list module Module: user_accounts PR or issue related to the user_accounts module Module: dicom_archive PR or issue related to dicom_archive module Module: data_release PR or issue related to data_release module Module: dataquery PR or issue related to (new) dataquery module Language: PHP PR or issue that update PHP code labels Jul 9, 2025
@SKADE2303 SKADE2303 force-pushed the translateNew_Profile branch from 4fb445c to 1529b68 Compare July 14, 2025 18:10
"Content-Transfer-Encoding: 8bit\n"

#: modules/new_profile/php/module.class.inc:60
msgid "New Profile"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you make sure the template .pot file is updated with the new strings as well?

msgid "Create a New Profile"
msgstr "नई प्रोफ़ाइल बनाएं"

msgid "Date of Birth*"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably go in the loris namespace, not the new_profile one (there is already "DoB" there.

msgid "Date of Birth Confirm*"
msgstr "जन्म तिथि की पुष्टि करें*"

msgid "Sex*"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Sex" is already in the loris namespace. The code should probably use that, and then add the '*'

msgid "Site*"
msgstr "साइट*"

msgid "Project*"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same for site/project

msgid "Recruit another candidate"
msgstr "एक और उम्मीदवार जोड़ें"

msgid "An error occured while loading the page."
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This probably belongs in the main loris namespace, not new_profile.

msgid "DCCID:"
msgstr "डीसीसीआईडी:"

msgid "PSCID:"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error should probably go in the main namespace, DCCID/PSCID are already there (but without the :, which should be handled the same way as the * above.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Event: GSOC PR or issue accepted for Google Summer of Code Language: Javascript PR or issue that update Javascript code Module: new_profile PR or issue related to new_profile module Multilingual Any tasks related to making LORIS multilingual
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants