Skip to content

[hindi] Cleanup PO file#10736

Merged
driusan merged 11 commits into
aces:29.0-releasefrom
driusan:HindiPoCleanup
Jul 21, 2026
Merged

[hindi] Cleanup PO file#10736
driusan merged 11 commits into
aces:29.0-releasefrom
driusan:HindiPoCleanup

Conversation

@driusan

@driusan driusan commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

The Hindi translations were the first done, and in some cases the po files have drifted out of sync with the pot file either because the code changed, or the exact wording changed.

This cleans up the strings that are unused in the code that are referenced in the Hindi po file that don't have an entry in the pot file, except for the issue tracker. (The issue tracker have a significant amount that need to be validating if they should be removed from the hindi or added to the pot to get them in sync.)

  • Resolves # (Reference the issue this fixes, if any.)

@driusan driusan added Multilingual Any tasks related to making LORIS multilingual 29.0.0 - Bugs Issues found during the release testing for 29.0.0 labels Jul 2, 2026
@github-actions github-actions Bot added Module: battery_manager PR or issue related to battery_manager module Module: document_repository PR or issue related to documen_repository module Module: imaging_uploader PR or issue related to imaging_uploader module Module: module_manager PR or issue related to module_manager module Module: survey_accounts PR or issue related to the survey_accounts module Module: user_accounts PR or issue related to the user_accounts module Module: dataquery PR or issue related to (new) dataquery module labels Jul 2, 2026

msgid "The email address is not valid."
msgid "Email is not valid."
msgstr "ईमेल पता मान्य नहीं है."

@HachemJ HachemJ Jul 2, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is outside the scope of this PR but I do not like replacing "The email address is not valid." by "Email is not valid.".
I do think that "The email address is not valid." is the better version because of the following use case :

Image

If we don't want to modify that again as part of this PR, I doubt that my below suggestion makes sense because the current hindi translation conveys the right information, it just doesn't match the msgid correctly.

Suggested change
msgstr "ईमेल पता मान्य नहीं है."
msgstr "ईमेल मान्य नहीं है"

Current
Image

Recommended
Image

@driusan driusan Jul 2, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

It doesn't need to match the msgid exactly, it needs to make sense and sound natural to a native speaker who is using LORIS. I do not speak or read any hindi at all, so I can't evaluate which one makes more sense. "The email address is not valid." doesn't exist in the code, so I left the old translation with the updated msgid because that was already there.

@skarya22 you're the closest we have to a native hindi speaker, what translation do you like?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The current version is better for what the form requires. But yeah I think that the module should say in english "The email address is not valid" instead of "Email not valid" anyway like Jad said

Comment thread modules/module_manager/locale/hi/LC_MESSAGES/module_manager.po
Comment thread modules/module_manager/locale/hi/LC_MESSAGES/module_manager.po
Comment thread modules/imaging_uploader/locale/hi/LC_MESSAGES/imaging_uploader.po
Comment thread modules/module_manager/locale/hi/LC_MESSAGES/module_manager.po
Comment thread modules/module_manager/locale/hi/LC_MESSAGES/module_manager.po
@HachemJ

HachemJ commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Sorry for the missing spaces. I messed up with the GitHub reviewing tool.

I'm waiting on @skarya22 to validate the version preferred so I can approve the changes.

Dave MacFarlane and others added 6 commits July 21, 2026 14:07
The Hindi translations were the first done, and in some cases the po files have
drifted out of sync with the pot file either because the code changed, or the
exact wording changed.

This cleans up the strings that are unused in the code that are referenced in the
Hindi po file that don't have an entry in the pot file, except for the issue tracker.
(The issue tracker have a significant amount that need to be validating if they should
be removed from the hindi or added to the pot to get them in sync.)
Co-authored-by: Jad El Hachem <156138084+HachemJ@users.noreply.github.com>
Co-authored-by: Jad El Hachem <156138084+HachemJ@users.noreply.github.com>
Co-authored-by: Jad El Hachem <156138084+HachemJ@users.noreply.github.com>
@driusan

driusan commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator Author

@HachemJ @skarya22 Rebased and I think I resolve the discussion, can you re-review?

Comment on lines -103 to -104
msgid "Email is not valid."
msgstr "विद्युतडाक मान्य नहीं है।"

@HachemJ HachemJ Jul 21, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Image Image

You have to either adapt the code to use the new/other version of the string "The email address is not valid." or revert this change.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

reverted

Comment on lines -34 to -35
msgid "status!"
msgstr "स्थिति!"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You could either leave this change as is (deleting 'status!' translation) or just adapt it like the others locale to 'Updated {{name}} status!' and its corresponding translation in Hindi.

Here's what I got using AI

msgid "Updated {{name}} status!"
msgstr "{{name}} की स्थिति अपडेट कर दी गई!"

on your branch:
Image

msgstr "स्पष्टता और अद्वितीयता के लिए उपयोगकर्ता नाम के रूप में ईमेल पते का उपयोग करने की अनुशंसा की जाती है।"

msgid "When generating a new password, please notify the user by checking 'Send email to user' box"
msgid "When generating a new password, please notify the user by checking 'Send email to user' box below!"

@HachemJ HachemJ Jul 21, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

on your branch:
Image

correct code change. I would maybe adapt this miss from code in the same PR because it is related to that string.

Image

it's missing the word below! at the end of the string.

@driusan driusan Jul 21, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

That looks like a bug in general.. all the other languages (and the pot) have "below!" in the msgid. Just pushed a commit to fix it here

msgstr "न्यूनतम आयु (दिन)"

msgid "An error occurred while saving the test."
msgstr "परीक्षण सहेजते समय एक त्रुटि हुई।"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why did you remove this string? it is referenced in code (battery_manager namespace), it is present in .pot too and every other language.

your branch:
Image

Comment on lines -126 to -143

msgid "An error occurred while saving the test."
msgstr "परीक्षण सहेजते समय एक त्रुटि हुई।"

msgid "This will deactivate the current test."
msgstr "इससे वर्तमान परीक्षण निष्क्रिय हो जाएगा।"

msgid "Unspecified Request"
msgstr "अनिर्दिष्ट अनुरोध"

msgid "This Test already exists in the database"
msgstr "यह परीक्षण पहले से ही डेटाबेस में मौजूद है।"

msgid "Edit Permission Denied"
msgstr "संपादन की अनुमति अस्वीकृत"

msgid "Could not add entry to the Test Battery"
msgstr "परीक्षण बैटरी में प्रविष्टि जोड़ना संभव नहीं हुआ।"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Image

all of them actually. I think that this change should be reverted.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

There was a conflict when I rebased and I thought the conflict was that they were supposed to be removed, might have resolved it the wrong way, will re-add

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

makes sense ok

@github-actions github-actions Bot added the Language: PHP PR or issue that update PHP code label Jul 21, 2026
Dave MacFarlane added 2 commits July 21, 2026 15:01

@HachemJ HachemJ left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@HachemJ HachemJ added the Passed manual tests PR has been successfully tested by at least one peer label Jul 21, 2026
@driusan
driusan merged commit 52b1d2f into aces:29.0-release Jul 21, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

29.0.0 - Bugs Issues found during the release testing for 29.0.0 Language: PHP PR or issue that update PHP code Module: battery_manager PR or issue related to battery_manager module Module: dataquery PR or issue related to (new) dataquery module Module: document_repository PR or issue related to documen_repository module Module: imaging_uploader PR or issue related to imaging_uploader module Module: module_manager PR or issue related to module_manager module Module: survey_accounts PR or issue related to the survey_accounts module Module: user_accounts PR or issue related to the user_accounts module Multilingual Any tasks related to making LORIS multilingual Passed manual tests PR has been successfully tested by at least one peer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants