Skip to main content
Version: v16.x - Umbraco 16

Customising Notifications

You can customise the notifications that get fired during the translation process to fit your needs.

Custom Subject Line

The subject line on notifications comes from config.

  "Translation": {
"Notify": {
"subject": "Translations : [{job}] - {eventName}"
}
}

{eventName} and {job}can be swapped out for any of the valid replacements.

Custom Template

When Translation Manager is sending notifications, it will look in these three locations:

  • [site folder]/translations/emails
  • [site folder]/emails
  • [site folder]/App_Plugins/TranslationManager/emails

for the event folder for the notified event. For example, if you have notifications set up for Recieved and Pending, it will look for recieved.html and pending.html.

If an event file isn't found, it will use this inbuilt template:

<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta charset="utf-8" />
</head>

<body style="margin:0;padding:0;font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>
<table align="center" cellpadding="0" cellspacing="0" border="0" width="600" style="border-collapse: collapse">
<tr>
<td>
<table style="padding: 10px 10px 10px 10px;border-bottom: 4px solid #FFE0B2; background-color: #fafafa;"
width="100%">
<tr>
<td>
<h2>Translation Job : {event}</h2>
{date} {time}
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table style="padding: 40px 20px 50px 20px">
<tr>
<td>
<table>
<tr>
<th>Job Name:</th>
<td>{jobname}</td>
</tr>
<tr>
<th>Source Lang:</th>
<td>{source}</td>
</tr>
<tr>
<th>Target Lang:</th>
<td>{target}</td>
</tr>
<tr>
<th>Node Count:</th>
<td>{nodes}</td>
</tr>
<tr>
<th>Status:</th>
<td>{status}</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>
<a href="{serverName}/#/translation/jobs/edit/{id}">View Job
({serverName}/#/translation/jobs/edit/{id})</a>

</td>
</tr>
</table>
</td>
</tr>
</table>

</td>
</tr>
<tr>
<td>
<table
style="padding: 10px 10px 10px 10px;border-top: 4px solid #292C44;font-size: 8pt;font-style: italic;"
width="100%">
<tr>
<td>
Translation Manager for Umbraco
</td>
</tr>
</table>

</td>
</tr>
</table>
</td>
</tr>
</table>
</body>

</html>

If you take this HTML and put it in the .html file that Translation Manager uses to notify you, you can change the text and have your own custom notifications.

Valid Replacements

The valid replacements for editing the template are:

"{serverName}", $"{CurrentServerName.TrimEnd('/')}/umbraco/"
"{date}", DateTime.Now.ToString("dd MMM yyy")
"{time}", DateTime.Now.ToString("hh:mm:ss")
"{id}", job.Id.ToString()
"{job}", job.Name
"{jobname}", job.Name
"{source}", job.SourceCulture.DisplayName
"{target}", job.TargetCulture.DisplayName
"{event}", eventName
"{eventName}", eventName
"{status}", job.Status.ToString()
"{nodes}", count.ToString()