Survey accounts translation issues#10697
Conversation
|
I am not sure how to include it in terms of code review on GitHub but I would suggest to also change the french locale directory name from fr_CA to fr for the same reason as my previous review comments. |
|
Yes make sense, I will update it soon. Thanks! |
| return ['Email' => dgettext( | ||
| 'survey_accounts', | ||
| 'Email is not valid.' | ||
| 'The email address is not valid.' |
|
let me know when you finish reviewing as I am currently updating the PR. |
@GeorgeMurad I will. It's not done yet but you can start changing some stuff I already mentioned if you agree. |
| ) | ||
| ); | ||
| $this->addBasicText("Email", "Email address"); | ||
| $this->addBasicText("Email", dgettext('survey_accounts', 'Email address')); |
There was a problem hiding this comment.
I would suggest this change
| $this->addBasicText("Email", dgettext('survey_accounts', 'Email address')); | |
| $this->addBasicText("Email", dgettext('loris', 'Email address')); |
Same reason as https://github.com/aces/Loris/pull/10697/changes#r3501043380
If you do, please remove Email address from this module's french locale as well as the .pot file since it will be using the loris namespace that already has the translations.
| 'Created' => dgettext("survey_accounts", "Created"), | ||
| 'Sent' => dgettext("survey_accounts", "Sent"), | ||
| 'In Progress' => dgettext("survey_accounts", "In Progress"), | ||
| 'Complete' => dgettext("survey_accounts", "Complete"), |
There was a problem hiding this comment.
I suggest reverting for the same reason.
| 'Created' => dgettext("survey_accounts", "Created"), | |
| 'Sent' => dgettext("survey_accounts", "Sent"), | |
| 'In Progress' => dgettext("survey_accounts", "In Progress"), | |
| 'Complete' => dgettext("survey_accounts", "Complete"), | |
| 'Created' => dgettext("loris", "Created"), | |
| 'Sent' => dgettext("loris", "Sent"), | |
| 'In Progress' => dgettext("loris", "In Progress"), | |
| 'Complete' => dgettext("loris", "Complete"), |
If you do revert, all 4 to remove from the module's french locale as well as the .pot file of that module.
| $this->addBasicText("CandID", dgettext('survey_accounts', 'DCCID')); | ||
| $this->addBasicText("PSCID", dgettext('survey_accounts', 'PSCID')); | ||
| $this->addSelect( | ||
| "VL", | ||
| dgettext('survey_accounts', 'Visit Label'), |
There was a problem hiding this comment.
| $this->addBasicText("CandID", dgettext('survey_accounts', 'DCCID')); | |
| $this->addBasicText("PSCID", dgettext('survey_accounts', 'PSCID')); | |
| $this->addSelect( | |
| "VL", | |
| dgettext('survey_accounts', 'Visit Label'), | |
| $this->addBasicText("CandID", dgettext('loris', 'DCCID')); | |
| $this->addBasicText("PSCID", dgettext('loris', 'PSCID')); | |
| $this->addSelect( | |
| "VL", | |
| dgettext('loris', 'Visit Label'), |
If you do revert, all 3 (DCCID, PSCID and Visit Label) to remove from the module's french locale as well as the .pot file of that module.
| "Test_name", | ||
| "Instrument", | ||
| dcngettext( | ||
| 'survey_accounts', |
There was a problem hiding this comment.
This should be changed if you apply my suggestions on removing Instrument from this module's locale translation files.
| 'survey_accounts', | |
| 'loris', |
| return [ | ||
| 'Test_name' => "Instrument ". | ||
| 'Test_name' => dcngettext( | ||
| 'survey_accounts', |
There was a problem hiding this comment.
This should be changed if you apply my suggestions on removing Instrument from this module's locale translation files.
| 'survey_accounts', | |
| 'loris', |
|
Please review again, and let me know what is still missing, thanks a lot! |
| return ['Email' => dgettext( | ||
| 'survey_accounts', | ||
| 'The email address is not valid.' | ||
| 'Email is not valid.' |
There was a problem hiding this comment.
You might still be making changes but make sure in the case where you keep that version to omit every instance of 'The email address is not valid.' for example still present in all of these files (after pulling your latest commit 'apply new updates')
Also not sure if you should be using single or double quotes for these.
@GeorgeMurad I just finished please check the latest changes I suggested and I will re review when you are ready. I checked your latest commit 'apply new updates' and there are still some things missing. |
| echo json_encode( | ||
| [ | ||
| 'error_msg' => dgettext('loris', 'Visit').' '. $_REQUEST['VL'].' '. | ||
| 'error_msg' => dgettext('survey_accounts', 'Visit').' '. |
There was a problem hiding this comment.
Same reason as previous comments.
| 'error_msg' => dgettext('survey_accounts', 'Visit').' '. | |
| 'error_msg' => dgettext('loris', 'Visit').' '. |
|
Great, I will make the changes soon. |
| 'error_msg' => dgettext('loris', 'Instrument').' '. $_REQUEST['TN'] | ||
| .' ' .dgettext( | ||
| 'error_msg' => dcngettext( | ||
| 'survey_accounts', |
There was a problem hiding this comment.
Same reason as previous comments.
| 'survey_accounts', | |
| 'loris', |
Testing instructions (if applicable)
fr_CAis added to the language table.Link(s) to related issue(s)