提交 f5be5471 编写于 作者: S Sebastian Florek 提交者: Rob Franken

Remove unused source attribute from translation files (#1370)

上级 c970c875
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="yes" omit-xml-declaration="no" encoding="UTF-8" />
<xsl:output method="xml" indent="yes" omit-xml-declaration="no" encoding="UTF-8"/>
<xsl:strip-space elements="*"/>
<xsl:template match="translationbundle">
<!-- XSLT doesn't support adding doctype without PUBLIC or SYSTEM annotation, so add it to the doc raw -->
<xsl:text disable-output-escaping="yes">&lt;!DOCTYPE translationbundle&gt;
</xsl:text>
<!-- XSLT doesn't support adding doctype without PUBLIC or SYSTEM annotation, so add it to the doc raw -->
<xsl:text disable-output-escaping="yes">&lt;!DOCTYPE translationbundle&gt;</xsl:text>
<xsl:copy>
<xsl:apply-templates select="@*"/>
<xsl:apply-templates select="translation">
......@@ -15,9 +14,13 @@
</xsl:copy>
</xsl:template>
<!--empty template suppresses 'source' attribute -->
<xsl:template match="@source"/>
<!--identity template copies everything forward by default-->
<xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | node()" />
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
因为 它太大了无法显示 source diff 。你可以改为 查看blob
因为 它太大了无法显示 source diff 。你可以改为 查看blob
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册