19863833be
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
38 lines
1.3 KiB
HTML
38 lines
1.3 KiB
HTML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
* This file is part of the LibreOffice project.
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
*
|
|
-->
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
|
|
xmlns:str="http://exslt.org/strings">
|
|
<xsl:output method="xml" encoding="UTF-8"/>
|
|
|
|
<xsl:template match="/">
|
|
<l><xsl:text> </xsl:text>
|
|
<xsl:apply-templates select="//*[*[not(self::col)]/@translatable='yes']" />
|
|
<xsl:apply-templates select="interface/object[data/row/col[@id='0'][@translatable='yes']]" />
|
|
</l>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="*/*[not(self::col)][@translatable]">
|
|
<xsl:text> </xsl:text>
|
|
<t r="string" g="{str:tokenize(../@id,':')[1]}" l="{@name}">
|
|
<xsl:copy-of select="text()" />
|
|
</t><xsl:text> </xsl:text>
|
|
</xsl:template>
|
|
|
|
<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='0'][../../../@id=$groupid])}">
|
|
<xsl:copy-of select="text()" />
|
|
</t><xsl:text> </xsl:text>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="text()"/>
|
|
|
|
</xsl:stylesheet>
|