Add language attribute to data tag

issue9559
review302061002
This commit is contained in:
Cédric Krier
2020-09-18 00:06:31 +02:00
parent 31f95f6956
commit 5a93dfd421
11 changed files with 17 additions and 10 deletions
+7
View File
@@ -1,6 +1,13 @@
<?xml version="1.0"?>
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:param name="lang"/>
<xsl:template match="data">
<xsl:copy>
<xsl:apply-templates select="@*"/>
<xsl:attribute name="language"><xsl:value-of select="$lang"/></xsl:attribute>
<xsl:apply-templates select="node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="record[@id]">
<xsl:copy>
<xsl:attribute name="id">
+1 -1
View File
@@ -2,7 +2,7 @@
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tryton>
<data>
<data language="bg">
<record id="account_type_template_minimal_bg" model="account.account.type.template">
<field name="name">Минимален сметкоплан</field>
+1 -1
View File
@@ -2,7 +2,7 @@
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tryton>
<data>
<data language="ca">
<record id="account_type_template_minimal_ca" model="account.account.type.template">
+1 -1
View File
@@ -2,7 +2,7 @@
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tryton>
<data>
<data language="de">
<record id="account_type_template_minimal_de" model="account.account.type.template">
+1 -1
View File
@@ -2,7 +2,7 @@
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tryton>
<data>
<data language="en">
<record id="account_type_template_minimal_en" model="account.account.type.template">
<field name="name">Minimal Account Type Chart</field>
+1 -1
View File
@@ -2,7 +2,7 @@
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tryton>
<data>
<data language="es">
<record id="account_type_template_minimal_es" model="account.account.type.template">
+1 -1
View File
@@ -2,7 +2,7 @@
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tryton>
<data>
<data language="fr">
<record id="account_type_template_minimal_fr" model="account.account.type.template">
+1 -1
View File
@@ -2,7 +2,7 @@
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tryton>
<data>
<data language="nl">
<record id="account_type_template_minimal_nl" model="account.account.type.template">
+1 -1
View File
@@ -2,7 +2,7 @@
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tryton>
<data>
<data language="pt">
<record id="account_type_template_minimal_pt" model="account.account.type.template">
+1 -1
View File
@@ -2,7 +2,7 @@
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tryton>
<data>
<data language="ru">
<record id="account_type_template_minimal_ru" model="account.account.type.template">
+1 -1
View File
@@ -2,7 +2,7 @@
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tryton>
<data>
<data language="sl">
<record id="account_type_template_minimal_sl" model="account.account.type.template">