Skip to content

[login] Add missing translations#10863

Open
HachemJ wants to merge 7 commits into
aces:29.0-releasefrom
HachemJ:AddMissingTranslationsInLogin
Open

[login] Add missing translations#10863
HachemJ wants to merge 7 commits into
aces:29.0-releasefrom
HachemJ:AddMissingTranslationsInLogin

Conversation

@HachemJ

@HachemJ HachemJ commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Brief summary of changes

This PR adds missing translations mainly of error messages. It also removes unnecessary line wrapping from the chinese translation file, as the 80 character line length limit do not apply to it as it would cause false positives in the language validation script that will be added to the CI pipeline #10739 soon.

Link(s) to related issue(s)

@github-actions github-actions Bot added Language: PHP PR or issue that update PHP code Module: login PR or issue related to login module Multilingual Any tasks related to making LORIS multilingual labels Jul 9, 2026
@HachemJ HachemJ added the 29.0.0 - Bugs Issues found during the release testing for 29.0.0 label Jul 9, 2026
} catch (\InvalidArgumentException $e) {
return new \LORIS\Http\Response\JSON\Conflict(
$e->getMessage()
dgettext('login', $e->getMessage())

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure about this change because I can’t tell in advance what $e->getMessage() contains. If it returns generic LORIS error messages rather than login specific ones, the translation domain should be loris instead of login. If it can returns both generic LORIS messages and login ones, then it doesn't really work, unless we duplicate these generic error messages from the loris locale to the login one.

@github-actions github-actions Bot added the Language: Javascript PR or issue that update Javascript code label Jul 11, 2026
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: Javascript PR or issue that update Javascript code Language: PHP PR or issue that update PHP code Module: login PR or issue related to login module Multilingual Any tasks related to making LORIS multilingual

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant