RetroShare/build_scripts/Windows/lang/ts/convert_from_ts.xsl
thunder2 9f319426fd Updated Windows Installer
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7505 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2014-09-06 21:30:03 +00:00

20 lines
614 B
XML

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text"/>
<xsl:strip-space elements="*"/>
<xsl:template match="context">
<xsl:text>!insertmacro LANG_STRING </xsl:text>
<xsl:value-of select="./name"/>
<xsl:text> "</xsl:text>
<xsl:choose>
<xsl:when test="./message/translation!=''"><xsl:value-of select="./message/translation"/></xsl:when>
<xsl:otherwise><xsl:value-of select="./message/source"/></xsl:otherwise>
</xsl:choose>
<xsl:text>"
</xsl:text>
</xsl:template>
</xsl:stylesheet>