Answers.Body: <p>I have found an alternative solution which worked perfectly. </p>
  
  <p>I put the following line in the template (adding the {ts} tag): </p>
  
  <pre><code>{ts}&lt;img src="WEBSITE_URL/images/Banner_EN.jpg" /&gt;{/ts} 
  </code></pre>
  
  <p>Then modified the language file .mo and added a translation for the string: </p>
  
  <pre><code>msgid "&lt;img src="WEBSITE_URL/images/Banner_EN.jpg" /&gt;" 
  msgstr "&lt;img src="WEBSITE_URL/images/Banner_IT.jpg" /&gt;" 
  </code></pre>
  
  <p>It worked perfectly :) </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-18T09:54:55.787Z
Answers.LastActivityDate: 2017-08-18T09:54:55.787Z
Answers.UserDisplayName: Giovanni
Body: <p>I am trying to customize a message template by adding a header image with some text in it. The problem is that my website is in 2 languages and I need that the header image is sent to the user according to his/her language preferences.</p>
  
  <p>This is how I am trying to do:</p>
  
  <pre><code>{if $contact.preferred_language eq 'English (United Kingdom)'}
  &lt;img src="WEBSITE_URL/images/Banner_EN.jpg" /&gt;
  {else}
  &lt;img src="WEBSITE_URL/images/Banner_IT.jpg" /&gt;
     {/if}
  </code></pre>
  
  <p>Unfortunately, it seems not working.</p>
  
  <p>Does someone have already dealt with such an issue?</p>
  
  <p>Thank you very much to every good soul who is willing to give me the right information to solve this issue.</p>
  
  <p>Regards,
  Giovanni</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-08-17T17:50:24.060Z
Comments.Text: It's not clear from this whether a) the variable doesn't exist, b) the value isn't exactly what you're looking for, or c) the Smarty syntax is wrong. If you insert the `{debug}` tag into your template, you can see all of the available variables and their values.  This should eliminate options a and b.  Please try that and update your question to explain which situation is what you're seeing?
Comments.UserDisplayName: Jon G - Megaphone Tech
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-08-18T09:49:49.853Z
Comments.Text: I have found an alternative solution which worked perfectly.
  
  I put the following line in the template:
  {ts}<img src="WEBSITE_URL/images/Banner_EN.jpg" />{/ts}
  
  Then modified the language file .mo and added a translation for the string:
  msgid "<img src="WEBSITE_URL/images/Banner_EN.jpg" />"
  msgstr "<img src="WEBSITE_URL/images/Banner_IT.jpg" />"
  
  It worked perfectly :)
Comments.UserDisplayName: Giovanni
Tags: <message-templates><localisation><custom-templates>
Title: Images with text in Message Templates in a multilingual installation
ThreadText: # Images with text in Message Templates in a multilingual installation
  
  (Asked by: username_0 on 2017-08-17)
  
  I am trying to customize a message template by adding a header image with some text in it. The problem is that my website is in 2 languages and I need that the header image is sent to the user according to his/her language preferences.
  This is how I am trying to do:
  {if $contact.preferred_language eq 'English (United Kingdom)'}
  
  {else}
  
     {/if}
  
  Unfortunately, it seems not working.
  Does someone have already dealt with such an issue?
  Thank you very much to every good soul who is willing to give me the right information to solve this issue.
  Regards,
  username_0
  
  **Tags:** message-templates, localisation, custom-templates
  
  > **Comments:**
  > **username_1**: It's not clear from this whether a) the variable doesn't exist, b) the value isn't exactly what you're looking for, or c) the Smarty syntax is wrong. If you insert the `{debug}` tag into your template, you can see all of the available variables and their values.  This should eliminate options a and b.  Please try that and update your question to explain which situation is what you're seeing?  
  > **username_0**: I have found an alternative solution which worked perfectly.  I put the following line in the template: {ts}<img src="WEBSITE_URL/images/Banner_EN.jpg" />{/ts}  Then modified the language file .mo and added a translation for the string: msgid "<img src="WEBSITE_URL/images/Banner_EN.jpg" />" msgstr "<img src="WEBSITE_URL/images/Banner_IT.jpg" />"  It worked perfectly :)  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2017-08-18. Score: 1
  
  I have found an alternative solution which worked perfectly. 
  I put the following line in the template (adding the {ts} tag): 
  {ts}{/ts} 
  
  Then modified the language file .mo and added a translation for the string: 
  msgid "" 
  msgstr "" 
  
  It worked perfectly :)
  
  
  ---
  
  