summaryrefslogtreecommitdiff
path: root/solenv/bin
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-08-30 12:41:18 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-09-28 08:48:43 +0100
commit19863833be0cfc8b72cee5bbc7ebf32f0c423468 (patch)
tree54095c1015911eb7c85017bbb78535c27da687c2 /solenv/bin
parentb9fbb89eab7ea1f7b5e7b65c95d39f6d67fb269a (diff)
autoconnect multi-column list stores to dropdowns
Default to importing the first column into the list and the second column as the additional data and only considering the first column for translation Change-Id: Ic74a4550167455c83634c4112ab2b698c1d25ea1
Diffstat (limited to 'solenv/bin')
-rw-r--r--solenv/bin/uilangfilter.xslt6
1 files changed, 3 insertions, 3 deletions
diff --git a/solenv/bin/uilangfilter.xslt b/solenv/bin/uilangfilter.xslt
index a202b0e96637..42d066faee63 100644
--- a/solenv/bin/uilangfilter.xslt
+++ b/solenv/bin/uilangfilter.xslt
@@ -14,7 +14,7 @@
<xsl:template match="/">
<l><xsl:text>&#10;</xsl:text>
<xsl:apply-templates select="//*[*[not(self::col)]/@translatable='yes']" />
- <xsl:apply-templates select="interface/object[data/row/col[@translatable='yes']]" />
+ <xsl:apply-templates select="interface/object[data/row/col[@id='0'][@translatable='yes']]" />
</l>
</xsl:template>
@@ -25,10 +25,10 @@
</t><xsl:text>&#10;</xsl:text>
</xsl:template>
-<xsl:template match="col">
+<xsl:template match="col[@id='0']">
<xsl:text> </xsl:text>
<xsl:variable name="groupid" select="../../../@id"/>
- <t r="stringlist" g="{str:tokenize($groupid,':')[1]}" l="{count(preceding::col[../../../@id=$groupid])}">
+ <t r="stringlist" g="{str:tokenize($groupid,':')[1]}" l="{count(preceding::col[@id='0'][../../../@id=$groupid])}">
<xsl:copy-of select="text()" />
</t><xsl:text>&#10;</xsl:text>
</xsl:template>