summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@opencompositing.org>2007-06-20 15:42:39 +0200
committerDennis Kasprzyk <onestone@opencompositing.org>2007-06-20 15:42:39 +0200
commitb55f2077daf5e6331fc746ea40f3dc7601713693 (patch)
treec70fb49d0ffdf058d9c0f526b29aae7c64ad0a9c /src
parentc1cb688a121c258a8027f03e52a7e563a947b592 (diff)
downloadbcop-b55f2077daf5e6331fc746ea40f3dc7601713693.tar.gz
bcop-b55f2077daf5e6331fc746ea40f3dc7601713693.tar.bz2
Added support of translated/non translated metadata files
Diffstat (limited to 'src')
-rw-r--r--src/bcop.xslt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bcop.xslt b/src/bcop.xslt
index 14962ac..9ea6e5c 100644
--- a/src/bcop.xslt
+++ b/src/bcop.xslt
@@ -1420,7 +1420,7 @@ CompOption *</xsl:text>
<xsl:text>typedef enum
{
</xsl:text>
- <xsl:for-each select="desc/name">
+ <xsl:for-each select="desc/*[(name() = 'name' and not(@xml:lang)) or name() = '_name']">
<xsl:text> </xsl:text>
<xsl:call-template name="PrintCamel">
<xsl:with-param name="text">
@@ -1448,7 +1448,7 @@ CompOption *</xsl:text>
<xsl:template name="printOptionMasks">
<xsl:for-each select="/compiz/plugin[@name=$pName]//option[@type = 'list' and ./desc/value and ./type/text() = 'int']">
- <xsl:for-each select="desc/name">
+ <xsl:for-each select="desc/*[(name() = 'name' and not(@xml:lang)) or name() = '_name']">
<xsl:text>#define </xsl:text>
<xsl:call-template name="PrintCamel">
<xsl:with-param name="text">