-
Notifications
You must be signed in to change notification settings - Fork 186
[my_preferences] Translate to my_preferences module #10015
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
Conversation
racostas
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @SKADE2303 , as requested in #10009
Save and Reset should be in loris.po ns not in the module itself since this two worlds are used all across the LORIS system. Thank you.
2509634 to
41d56c4
Compare
|
@SKADE2303 , automatic tests still failing here. |
49c7b3a to
c0e0aa5
Compare
|
Is this one ready to be re-reviewed ? |
racostas
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
0e4263c to
5a04f4f
Compare
racostas
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| msgid "User name" | ||
| msgstr "" | ||
|
|
||
| msgid "First name" | ||
| msgstr "" | ||
|
|
||
| msgid "First name is required and should not exceed 120 characters" | ||
| msgstr "" | ||
|
|
||
| msgid "Last name" | ||
| msgstr "" | ||
|
|
||
| msgid "Last name is required and should not exceed 120 characters" | ||
| msgstr "" | ||
|
|
||
| msgid "Email address" | ||
| msgstr "" | ||
|
|
||
| msgid "Email address is required" | ||
| msgstr "" | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are lot of terms here that are common with user_account, please put all that is common in loris.pot/ loris.po and use this in both modules: my_preferences and user_account
For reference this is the user_account PR #9934
|
this PR is blocking #9934 since there are lot of terms in common that should be going to **loris.pot and loris.po ** in place of my_preferences locale |
4d433af to
92257be
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @SKADE2303, it seems you forgot to update you code when the translations were moved to loris ns

Again, please manual test before sent the PR ready to be reviewed.
@christinerogers , @driusan
8e38734 to
0dade10
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good advances, some minor changes. Please address. Thanks.
| 'This password is known to be exposed in online data ' | ||
| . 'breaches.' | ||
| dgettext( | ||
| 'loris', | ||
| 'This password is known to be exposed in online data' | ||
| . 'breaches.' | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As in #9934 you need to leave the space after "data" if not this will not match the key in the loris.po file

a3129ff to
d33aa8c
Compare
racostas
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
c371ef2 to
df10d8b
Compare
racostas
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| msgid "Site" | ||
| msgstr "" | ||
|
|
||
| msgid "Module" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is "Module" being removed from the template here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SKADE2303 , yes this is a bug. Please fix, since the template (.pot file) is what we use to translate to other languages.
Thanks @driusan for catching this one.








This PR is responsible for translating the module my_preferences to different languages. Currently only 'Hindi' language is supported but other languages can be added as required.
Testing instructions (if applicable)