Skip to content

Conversation

@SKADE2303
Copy link
Collaborator

This PR is responsible for translating the module help_editor to different languages. Currently only 'Hindi' language is supported but other languages can be added as required.

Testing instructions (if applicable)

  1. Run 'make dev' to load changes
  2. Change language_preference to Hindi in my_preferences Tab
  3. Go to help_editor tab to see translated web page.

@github-actions github-actions bot added Language: Javascript PR or issue that update Javascript code Module: help_editor PR or issue related to help_editor module labels Sep 12, 2025
@SKADE2303 SKADE2303 added Event: GSOC PR or issue accepted for Google Summer of Code Multilingual Any tasks related to making LORIS multilingual labels Sep 12, 2025
@SKADE2303 SKADE2303 requested a review from racostas September 12, 2025 13:29
id="save-help"
name="fire_away"
value="Save"
value={t('Save', {ns: 'help_editor'})}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not sure if this exists in the loris namespace but it probably should. I'd be surprised if this was the only place we said "Save"

Copy link
Contributor

Choose a reason for hiding this comment

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

It's not there.. but agree, this should be in loris.po

// XXX: Replace this with a UI component for 500 errors.
if (this.state.error) {
return <h3>An error occured while loading the page.</h3>;
return <h3>{t('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.

loris namespace

Copy link
Contributor

Choose a reason for hiding this comment

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

yes,
image

please point to the correct namespace @SKADE2303

@racostas racostas added the State: Needs work PR awaiting additional work by the author to proceed label Sep 12, 2025
@SKADE2303 SKADE2303 removed the State: Needs work PR awaiting additional work by the author to proceed label Sep 19, 2025
Copy link
Contributor

@racostas racostas left a comment

Choose a reason for hiding this comment

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

Please solve conflicts, also some translations are still not showing for me.
image

Comment on lines 74 to 79
confirmButtonText: 'Close',
confirmButtonText: t('Close', {ns: 'help_editor'}),
Copy link
Contributor

Choose a reason for hiding this comment

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

I think "Close" is general enough to go loris namespace.

@racostas racostas added the State: Needs work PR awaiting additional work by the author to proceed label Oct 20, 2025
@SKADE2303 SKADE2303 force-pushed the TranslateHelpEditor branch from ebec2ae to f8d21df Compare October 21, 2025 20:18
@github-actions github-actions bot added the Language: PHP PR or issue that update PHP code label Oct 21, 2025
@SKADE2303 SKADE2303 removed the State: Needs work PR awaiting additional work by the author to proceed label Oct 21, 2025
@racostas
Copy link
Contributor

racostas commented Nov 3, 2025

@SKADE2303, please fix tests.

@christinerogers

@racostas racostas added the State: Needs work PR awaiting additional work by the author to proceed label Nov 3, 2025
@SKADE2303 SKADE2303 added State: Blocking PR should be prioritized because it is blocking the progress of another task and removed State: Needs work PR awaiting additional work by the author to proceed labels Nov 3, 2025
@racostas racostas self-requested a review November 3, 2025 22:03
Copy link
Contributor

@racostas racostas left a comment

Choose a reason for hiding this comment

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

Translations missing yet:

image image

Comment on lines 216 to 221
msgid "Sent To DCC"
msgstr ""

Copy link
Contributor

Choose a reason for hiding this comment

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

Please remember we need both "Send and Sent to DDC" in the loris.pot they are both used in instruments modules. I think to remember this comment was already made before during a previous module revision. Thanks.

@racostas racostas added the State: Needs work PR awaiting additional work by the author to proceed label Nov 3, 2025
@racostas
Copy link
Contributor

racostas commented Nov 3, 2025

^ @christinerogers , @driusan

@SKADE2303 SKADE2303 force-pushed the TranslateHelpEditor branch from bb589fc to 3cf05c0 Compare November 4, 2025 12:32
@SKADE2303 SKADE2303 force-pushed the TranslateHelpEditor branch from 3cf05c0 to 8d96185 Compare November 4, 2025 12:56
@SKADE2303 SKADE2303 force-pushed the TranslateHelpEditor branch from a1eb926 to 14575a7 Compare November 4, 2025 14:08
@skarya22 skarya22 assigned GeorgeMurad and unassigned racostas Nov 7, 2025
@GeorgeMurad
Copy link
Contributor

LGTM
image

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 Language: PHP PR or issue that update PHP code Module: help_editor PR or issue related to help_editor module Multilingual Any tasks related to making LORIS multilingual State: Blocking PR should be prioritized because it is blocking the progress of another task State: Needs work PR awaiting additional work by the author to proceed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants