$(Language) sistemden bağımsız olarak doğrudan en-US set ettiğimizde mail doğrudan ingilizce olarak değerleri sisteme gönderecektir. 


<Script>
  <If>
    <Then>
      <Condition>
        <IsEmpty>
          <Value>$(Originator)</Value>
        </IsEmpty>
      </Condition>
      <Perform>
        <SetVariable Name="$(Originator)">
          <Value>Sistem</Value>
        </SetVariable>
      </Perform>
    </Then>
  </If>
  <If>
    <Then>
      <Condition>
        <IsEmpty>
          <Value>$(Initiator)</Value>
        </IsEmpty>
      </Condition>
      <Perform>
        <SetVariable Name="$(Initiator)">
          <Value>Sistem</Value>
        </SetVariable>
      </Perform>
    </Then>
  </If>



        <SetVariable Name="$(Language)">
          <Value>en-US</Value>
        </SetVariable>



  <Transform
    Data="::/*"
    ReturnType="OuterXml">
    <StyleSheet>
      <Value
        Culture=""
        Target="None">
        <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
          <xsl:output method="html" encoding="utf-8" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" />
          <xsl:param name="EBIFlowWebUrl" />
          <xsl:param name="To" />
          <xsl:param name="WorkItemName" />
          <xsl:param name="WorkItemUrl" />
          <xsl:param name="Initiator" />
          <xsl:param name="Originator" />
          <xsl:param name="Actions" />
          <xsl:param name="Language" />
          <xsl:template match="/">
            <html>
              <head>
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                <xsl:element name="base">
                  <xsl:attribute name="href">
                    <xsl:value-of select="$EBIFlowWebUrl" />
                  </xsl:attribute>
                </xsl:element>
                <title>EBIFlow</title>
                <style>
                  BODY { font-family: tahoma;font-size:12px; }
                  P { margin:5px; padding-top:10px; }
                  TABLE { margin:5px }
                  TABLE TD { padding:2px }
                  TABLE TH { text-align:left; }
                  A { text-decoration:none; }
                  A:hover { text-decoration:underline; }
                </style>
              </head>
              <body>
                <xsl:if test="$Language='tr-TR'">
                  <p>
                    Sayın <xsl:value-of select="$To" />,
                  </p>
                  <p>
                    Adınıza gönderilen <strong>
                      <xsl:value-of select="$WorkItemName" />
                    </strong> isimli iş akışı adımını lütfen değerlendiriniz.
                  </p>
                  <p>
                    <xsl:element name="a">
                      <xsl:attribute name="href">
                        <xsl:value-of select="$WorkItemUrl" />
                      </xsl:attribute>
                      Formu açmak için lütfen buraya tıklayınız.
                    </xsl:element>
                  </p>
                  <table>
                    <tr>
                      <th>Başlatan</th>
                      <td>
                        <xsl:value-of select="$Initiator" />
                      </td>
                    </tr>
                    <tr>
                      <th>Kimden</th>
                      <td>
                        <xsl:value-of select="$Originator" />
                      </td>
                    </tr>
                  </table>
                  <br/>
                  <p>
                    <small>
                      Bu mesaj <strong>kişiye özel</strong> gönderilmiştir. Lütfen paylaşmayınız.
                    </small>
                  </p>
                </xsl:if>

                <xsl:if test="$Language='en-GB'">
                  <p>
                    Mr. / Mrs. <xsl:value-of select="$To" />,
                  </p>
                  <p>
                    Please examine the <strong>
                      <xsl:value-of select="$WorkItemName" />
                    </strong> process.
                  </p>
                  <p>
                    <xsl:element name="a">
                      <xsl:attribute name="href">
                        <xsl:value-of select="$WorkItemUrl" />
                      </xsl:attribute>
                      Click here to open the form.
                    </xsl:element>
                  </p>
                  <table>
                    <tr>
                      <th>Initiator</th>
                      <td>
                        <xsl:value-of select="$Initiator" />
                      </td>
                    </tr>
                    <tr>
                      <th>Originator</th>
                      <td>
                        <xsl:value-of select="$Originator" />
                      </td>
                    </tr>
                  </table>
                  <br/>
                  <p>
                    <small>
                      This message contains <strong>private and confidential</strong> information.Please do not forward.
                    </small>
                  </p>
                </xsl:if>

                <xsl:if test="$Language='en-US'">
                  <p>
                    Mr. / Mrs. <xsl:value-of select="$To" />,
                  </p>
                  <p>
                    Please examine the <strong>
                      <xsl:value-of select="$WorkItemName" />
                    </strong> process.
                  </p>
                  <p>
                    <xsl:element name="a">
                      <xsl:attribute name="href">
                        <xsl:value-of select="$WorkItemUrl" />
                      </xsl:attribute>
                      Click here to open the form.
                    </xsl:element>
                  </p>
                  <table>
                    <tr>
                      <th>Initiator</th>
                      <td>
                        <xsl:value-of select="$Initiator" />
                      </td>
                    </tr>
                    <tr>
                      <th>Originator</th>
                      <td>
                        <xsl:value-of select="$Originator" />
                      </td>
                    </tr>
                  </table>
                  <br/>
                  <p>
                    <small>
                      This message contains <strong>private and confidential</strong> information.Please do not forward.
                    </small>
                  </p>
                </xsl:if>

                <xsl:if test="$Language='de-DE'">
                  <p>
                    Herr / Frau <xsl:value-of select="$To" />,
                  </p>
                  <p>
                    Bewerten Sie den zugesendeten <strong>
                      <xsl:value-of select="$WorkItemName" />
                    </strong> genannten Arbeitsablauf.
                  </p>
                  <p>
                    <xsl:element name="a">
                      <xsl:attribute name="href">
                        <xsl:value-of select="$WorkItemUrl" />
                      </xsl:attribute>
                      Klicken Sie hier um die Anfrage zu öffnen.
                    </xsl:element>
                  </p>
                  <table>
                    <tr>
                      <th>Initiator</th>
                      <td>
                        <xsl:value-of select="$Initiator" />
                      </td>
                    </tr>
                    <tr>
                      <th>Sender</th>
                      <td>
                        <xsl:value-of select="$Originator" />
                      </td>
                    </tr>
                  </table>
                  <br/>
                  <p>
                    <small>
					Diese Nachricht enthält <strong> private und vertrauliche </strong>Informationen.Bitte nicht weiterleiten.
                    </small>
                  </p>
                </xsl:if>

                <xsl:if test="$Language='fr-FR'">
                  <p>
                    Monsieur / Madame <xsl:value-of select="$To" />,
                  </p>
                  <p>
                    S'il vous plaît évaluer l'étape de flux de travail <strong>
                      <xsl:value-of select="$WorkItemName" />
                    </strong> qui est envoyé à votre nom.
                  </p>
                  <p>
                    <xsl:element name="a">
                      <xsl:attribute name="href">
                        <xsl:value-of select="$WorkItemUrl" />
                      </xsl:attribute>
                      S'il vous plaît cliquer ici pour ouvrir le forme.
                    </xsl:element>
                  </p>
                  <table>
                    <tr>
                      <th>Initiateur</th>
                      <td>
                        <xsl:value-of select="$Initiator" />
                      </td>
                    </tr>
                    <tr>
                      <th>Envoyeur</th>
                      <td>
                        <xsl:value-of select="$Originator" />
                      </td>
                    </tr>
                  </table>
                  <br/>
                  <p>
                    <small>
					Ce message contient des informations<strong> privées et confidentielles.</strong>  Ne pas transmettre.
                    </small>
                  </p>
                </xsl:if>

                <xsl:if test="$Language='ru-RU'">
                  <p>
                    Mr. / Mrs. <xsl:value-of select="$To" />,
                  </p>
                  <p>
                    Please examine the <strong>
                      <xsl:value-of select="$WorkItemName" />
                    </strong> process.
                  </p>
                  <p>
                    <xsl:element name="a">
                      <xsl:attribute name="href">
                        <xsl:value-of select="$WorkItemUrl" />
                      </xsl:attribute>
                      Click here to open the form.
                    </xsl:element>
                  </p>
                  <table>
                    <tr>
                      <th>Initiator</th>
                      <td>
                        <xsl:value-of select="$Initiator" />
                      </td>
                    </tr>
                    <tr>
                      <th>Originator</th>
                      <td>
                        <xsl:value-of select="$Originator" />
                      </td>
                    </tr>
                  </table>
                  <br/>
                  <p>
                    <small>
					Это сообщение содержит <strong>частной и конфиденциальной</strong> nformation.Please не вперед.
                    </small>
                  </p>
                </xsl:if>

                <br/>
                <br/>
                <div style="text-align:right;position:absolute;left:0;top:0;width:100%">
                  <img src="assets/app/img/logo_white.gif" />
                </div>
              </body>
            </html>
          </xsl:template>
        </xsl:stylesheet>
      </Value>
    </StyleSheet>
    <Arguments>
      <Argument Name="EBIFlowWebUrl">$(EBIFlowWebUrl)</Argument>
      <Argument Name="To">$(To)</Argument>
      <Argument Name="WorkItemName">$(WorkItemName)</Argument>
      <Argument Name="WorkItemUrl">$(WorkItemUrl)</Argument>
      <Argument Name="Initiator">$(Initiator)</Argument>
      <Argument Name="Originator">$(Originator)</Argument>
      <Argument Name="Actions">$(Actions)</Argument>
      <Argument Name="Language">$(Language)</Argument>
    </Arguments>
  </Transform>
</Script>