cancel
Showing results for 
Search instead for 
Did you mean: 

Internationalization of an email subject

Former Member
0 Kudos

We have two velocity templates used by multiple accounting spreadsheets. For example Payments Received and Payments Due. We have templates for the xxxx_Email_Accounting_Subject and xxxx_Email_Accounting_HTML and translations for French. We pass the type of email to the template that replaces ${ctx.type} for both the subject and in the body of the HTML. Below is the impex loading the content message. INSERT_UPDATE ContentMessage;$contentCV[unique=true];key[unique=true];value[lang=$lang] ;;text.account.paymentReceived;"Paiements reçus" ;;text.account.paymentDue;"Paiements exigibles"

The result is:

In the HMC the Subject Mime type for output: is set to text/html but the subject shows as: "Paiements reçus" NOT "Paiements reçus" How do we fix this?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

In that case please add this subject into properties file. And populate the subject from EmailContext file. Save the properties file with UTF-8 format.

Former Member
0 Kudos

That is exactly how it is done. However, even though it is French coming out it shows the html equivalent of the accented character not the accented character. Setting the type to text/html in the HMC does not work either. For thoroughness I tried all the mime types. It just does not work if the French accented characters are passed in. It works to hard code the French accented word directly into the template but the template is used for three different subjects.

Former Member
0 Kudos

in your email context class please check if the language param is passed correctly or not?!!!!

Former Member
0 Kudos

Since the field is translated properly it MUST be the right language. English comes out in English. French comes out in French. The French has accents. These accents do not show properly. The 8bit ascii or the HTML codes do not work. Please see the problem. IT has nothing to do with the selection of language. Both languages work correctly. The problem is the UTF8 accent codes do not work in the subject. PLEASE READ the issue.

Former Member
0 Kudos

In that case please add this subject into properties file. And populate the subject from EmailContext file. Save the properties file with UTF-8 format.