Skip to content

Commit

Permalink
pkp/pkp-lib#4779 Convert emails to PO format
Browse files Browse the repository at this point in the history
  • Loading branch information
asmecher committed Dec 4, 2019
1 parent 6f30af7 commit d098f4d
Show file tree
Hide file tree
Showing 5 changed files with 437 additions and 193 deletions.
1 change: 1 addition & 0 deletions classes/i18n/AppLocale.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ static function makeComponentMap($locale) {
LOCALE_COMPONENT_APP_ADMIN => $baseDir . 'admin.po',
LOCALE_COMPONENT_APP_DEFAULT => $baseDir . 'default.po',
LOCALE_COMPONENT_APP_API => $baseDir . 'api.po',
LOCALE_COMPONENT_APP_EMAILS => $baseDir . 'emails.po',
);
}
}
Expand Down
170 changes: 45 additions & 125 deletions locale/en_US/emailTemplates.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,158 +13,78 @@

<email_texts locale="en_US">
<email_text key="NOTIFICATION">
<subject>New notification from {$siteTitle}</subject>
<body><![CDATA[You have a new notification from {$siteTitle}:<br />
<br />
{$notificationContents}<br />
<br />
Link: {$url}<br />
<br />
{$principalContactSignature}]]></body>
<description>The email is sent to registered users that have selected to have this type of notification emailed to them.</description>
<subject>{translate key="emails.notification.subject"}</subject>
<body>{translate key="emails.notification.body"}</body>
<description>{translate key="emails.notification.description"}</description>
</email_text>
<email_text key="PASSWORD_RESET_CONFIRM">
<subject>Password Reset Confirmation</subject>
<body><![CDATA[We have received a request to reset your password for the {$siteTitle} web site.<br />
<br />
If you did not make this request, please ignore this email and your password will not be changed. If you wish to reset your password, click on the below URL.<br />
<br />
Reset my password: {$url}<br />
<br />
{$principalContactSignature}]]></body>
<description>This email is sent to a registered user when they indicate that they have forgotten their password or are unable to login. It provides a URL they can follow to reset their password.</description>
<subject>{translate key="emails.passwordResetConfirm.subject"}</subject>
<body>{translate key="emails.passwordResetConfirm.body"}</body>
<description>{translate key="emails.passwordResetConfirm.description"}</description>
</email_text>
<email_text key="PASSWORD_RESET">
<subject>Password Reset</subject>
<body><![CDATA[Your password has been successfully reset for use with the {$siteTitle} web site. Please retain this username and password, as it is necessary for all work with the server.<br />
<br />
Your username: {$username}<br />
Password: {$password}<br />
<br />
{$principalContactSignature}]]></body>
<description>This email is sent to a registered user when they have successfully reset their password following the process described in the PASSWORD_RESET_CONFIRM email.</description>
<subject>{translate key="emails.passwordReset.subject"}</subject>
<body>{translate key="emails.passwordReset.body"}</body>
<description>{translate key="emails.passwordReset.description"}</description>
</email_text>
<email_text key="USER_REGISTER">
<subject>Server Registration</subject>
<body><![CDATA[{$userFullName}<br />
<br />
You have now been registered as a user with {$contextName}. We have included your username and password in this email, which are needed for all work with this server through its website. At any point, you can ask to be removed from the server's list of users by contacting me.<br />
<br />
Username: {$username}<br />
Password: {$password}<br />
<br />
Thank you,<br />
{$principalContactSignature}]]></body>
<description>This email is sent to a newly registered user to welcome them to the system and provide them with a record of their username and password.</description>
<subject>{translate key="emails.userRegister.subject"}</subject>
<body>{translate key="emails.userRegister.body"}</body>
<description>{translate key="emails.userRegister.description"}</description>
</email_text>
<email_text key="USER_VALIDATE">
<subject>Validate Your Account</subject>
<body><![CDATA[{$userFullName}<br />
<br />
You have created an account with {$contextName}, but before you can start using it, you need to validate your email account. To do this, simply follow the link below:<br />
<br />
{$activateUrl}<br />
<br />
Thank you,<br />
{$principalContactSignature}]]></body>
<description>This email is sent to a newly registered user to validate their email account.</description>
<subject>{translate key="emails.userValidate.subject"}</subject>
<body>{translate key="emails.userValidate.body"}</body>
<description>{translate key="emails.userValidate.description"}</description>
</email_text>
<email_text key="PUBLISH_NOTIFY">
<subject>New Preprint Published</subject>
<body><![CDATA[Readers:<br />
<br />
{$contextName} has just published its latest preprint at {$contextUrl}.
<br />
Thanks for the continuing interest in our work,<br />
{$editorialContactSignature}]]></body>
<description>This email is sent to registered readers via the "Notify Users" link in the Editor's User Home. It notifies readers of a new preprint and invites them to visit the server at a supplied URL.</description>
<subject>{translate key="emails.publishNotify.subject"}</subject>
<body>{translate key="emails.publishNotify.body"}</body>
<description>{translate key="emails.publishNotify.description"}</description>
</email_text>
<email_text key="SUBMISSION_ACK">
<subject>Submission Acknowledgement</subject>
<body><![CDATA[{$authorName}:<br />
<br />
Thank you for submitting the manuscript, &quot;{$submissionTitle}&quot; to {$contextName}. With the online server management system that we are using, you will be able to track its progress through the editorial process by logging in to the server web site:<br />
<br />
Submission URL: {$submissionUrl}<br />
Username: {$authorUsername}<br />
<br />
If you have any questions, please contact me. Thank you for considering this server as a venue for your work.<br />
<br />
{$editorialContactSignature}]]></body>
<description>This email, when enabled, is automatically sent to an author when he or she completes the process of submitting a manuscript to the server. It provides information about tracking the submission through the process and thanks the author for the submission.</description>
<subject>{translate key="emails.submissionAck.subject"}</subject>
<body>{translate key="emails.submissionAck.body"}</body>
<description>{translate key="emails.submissionAck.description"}</description>
</email_text>
<email_text key="SUBMISSION_ACK_NOT_USER">
<subject>Submission Acknowledgement</subject>
<body><![CDATA[Hello,<br />
<br />
{$submitterName} has submitted the manuscript, &quot;{$submissionTitle}&quot; to {$contextName}. <br />
<br />
If you have any questions, please contact me. Thank you for considering this server as a venue for your work.<br />
<br />
{$editorialContactSignature}]]></body>
<description>This email, when enabled, is automatically sent to the other authors who are not users within PPS specified during the submission process.</description>
<subject>{translate key="emails.submissionAckNotUser.subject"}</subject>
<body>{translate key="emails.submissionAckNotUser.body"}</body>
<description>{translate key="emails.submissionAckNotUser.description"}</description>
</email_text>
<email_text key="EDITOR_ASSIGN">
<subject>Editorial Assignment</subject>
<body><![CDATA[{$editorialContactName}:<br />
<br />
The submission, &quot;{$submissionTitle},&quot; to {$contextName} has been assigned to you to see through the editorial process in your role as Series Editor.<br />
<br />
Submission URL: {$submissionUrl}<br />
Username: {$editorUsername}<br />
<br />
Thank you.]]></body>
<description>This email notifies a Series Editor that the Editor has assigned them the task of overseeing a submission through the editing process. It provides information about the submission and how to access the server site.</description>
<subject>{translate key="emails.editorAssign.subject"}</subject>
<body>{translate key="emails.editorAssign.body"}</body>
<description>{translate key="emails.editorAssign.description"}</description>
</email_text>
<email_text key="EDITOR_DECISION_ACCEPT">
<subject>Editor Decision</subject>
<body><![CDATA[{$authorName}:<br />
<br />
We have reached a decision regarding your submission to {$contextName}, &quot;{$submissionTitle}&quot;.<br />
<br />
Our decision is to: Accept Submission]]></body>
<description>This email from the Editor or Series Editor to an Author notifies them of a final "accept submission" decision regarding their submission.</description>
<subject>{translate key="emails.editorDecisionAccept.subject"}</subject>
<body>{translate key="emails.editorDecisionAccept.body"}</body>
<description>{translate key="emails.editorDecisionAccept.description"}</description>
</email_text>
<email_text key="EDITOR_DECISION_DECLINE">
<subject>Editor Decision</subject>
<body><![CDATA[{$authorName}:<br />
<br />
We have reached a decision regarding your submission to {$contextName}, &quot;{$submissionTitle}&quot;.<br />
<br />
Our decision is to: Decline Submission]]></body>
<description>This email from the Editor or Series Editor to an Author notifies them of a final "decline" decision regarding their submission.</description>
<subject>{translate key="emails.editorDecisionDecline.subject"}</subject>
<body>{translate key="emails.editorDecisionDecline.body"}</body>
<description>{translate key="emails.editorDecisionDecline.description"}</description>
</email_text>
<email_text key="EDITOR_RECOMMENDATION">
<subject>Editor Recommendation</subject>
<body><![CDATA[{$editors}:<br />
<br />
The recommendation regarding the submission to {$contextName}, &quot;{$submissionTitle}&quot; is: {$recommendation}]]></body>
<description>This email from the recommending Editor or Series Editor to the decision making Editors or Series Editors notifies them of a final recommendation regarding the submission.</description>
<subject>{translate key="emails.editorRecommendation.subject"}</subject>
<body>{translate key="emails.editorRecommendation.body"}</body>
<description>{translate key="emails.editorRecommendation.description"}</description>
</email_text>
<email_text key="REVISED_VERSION_NOTIFY">
<subject>Revised Version Uploaded</subject>
<body><![CDATA[Editors:<br />
<br />
A revised version of &quot;{$submissionTitle}&quot; has been uploaded by the author {$authorName}.<br />
<br />
Submission URL: {$submissionUrl}<br />
<br />
{$editorialContactSignature}]]></body>
<description>This email is automatically sent to the assigned editor when author uploads a revised version of an preprint .</description>
<subject>{translate key="emails.revisedVersionNotify.subject"}</subject>
<body>{translate key="emails.revisedVersionNotify.body"}</body>
<description>{translate key="emails.revisedVersionNotify.description"}</description>
</email_text>
<email_text key="NOTIFICATION_CENTER_DEFAULT">
<subject>A message regarding {$contextName}</subject>
<body><![CDATA[Please enter your message.]]></body>
<description>The default (blank) message used in the Notification Center Message Listbuilder.</description>
<subject>{translate key="emails.notificationCenterDefault.subject"}</subject>
<body>{translate key="emails.notificationCenterDefault.body"}</body>
<description>{translate key="emails.notificationCenterDefault.description"}</description>
</email_text>
<email_text key="EDITOR_DECISION_INITIAL_DECLINE">
<subject>Editor Decision</subject>
<body>
<![CDATA[{$authorName}:<br />
<br />
We have reached a decision regarding your submission to {$contextName}, &quot;{$submissionTitle}&quot;.<br />
<br />
Our decision is to: Decline Submission]]></body>
<description>This email is sent to the author if the editor declines his submission initially, before the review stage</description>
<subject>{translate key="emails.editorDecisionInitialDecline.subject"}</subject>
<body>{translate key="emails.editorDecisionInitialDecline.body"}</body>
<description>{translate key="emails.editorDecisionInitialDecline.description"}</description>
</email_text>
</email_texts>
Loading

0 comments on commit d098f4d

Please sign in to comment.