changeset e9c8d0180829 in modules/account:default
details: https://hg.tryton.org/modules/account?cmd=changeset;node=e9c8d0180829
description:
        Add language attribute to data tag

        issue9559
        review302061002
diffstat:

 localize.xsl         |  7 +++++++
 minimal_chart_bg.xml |  2 +-
 minimal_chart_ca.xml |  2 +-
 minimal_chart_de.xml |  2 +-
 minimal_chart_en.xml |  2 +-
 minimal_chart_es.xml |  2 +-
 minimal_chart_fr.xml |  2 +-
 minimal_chart_nl.xml |  2 +-
 minimal_chart_pt.xml |  2 +-
 minimal_chart_ru.xml |  2 +-
 minimal_chart_sl.xml |  2 +-
 11 files changed, 17 insertions(+), 10 deletions(-)

diffs (137 lines):

diff -r 0dc546d3cbff -r e9c8d0180829 localize.xsl
--- a/localize.xsl      Sat Sep 05 23:37:58 2020 +0200
+++ b/localize.xsl      Fri Sep 18 00:06:31 2020 +0200
@@ -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">
diff -r 0dc546d3cbff -r e9c8d0180829 minimal_chart_bg.xml
--- a/minimal_chart_bg.xml      Sat Sep 05 23:37:58 2020 +0200
+++ b/minimal_chart_bg.xml      Fri Sep 18 00:06:31 2020 +0200
@@ -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>
diff -r 0dc546d3cbff -r e9c8d0180829 minimal_chart_ca.xml
--- a/minimal_chart_ca.xml      Sat Sep 05 23:37:58 2020 +0200
+++ b/minimal_chart_ca.xml      Fri Sep 18 00:06:31 2020 +0200
@@ -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">
             
             
diff -r 0dc546d3cbff -r e9c8d0180829 minimal_chart_de.xml
--- a/minimal_chart_de.xml      Sat Sep 05 23:37:58 2020 +0200
+++ b/minimal_chart_de.xml      Fri Sep 18 00:06:31 2020 +0200
@@ -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">
             
             
diff -r 0dc546d3cbff -r e9c8d0180829 minimal_chart_en.xml
--- a/minimal_chart_en.xml      Sat Sep 05 23:37:58 2020 +0200
+++ b/minimal_chart_en.xml      Fri Sep 18 00:06:31 2020 +0200
@@ -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>
             
diff -r 0dc546d3cbff -r e9c8d0180829 minimal_chart_es.xml
--- a/minimal_chart_es.xml      Sat Sep 05 23:37:58 2020 +0200
+++ b/minimal_chart_es.xml      Fri Sep 18 00:06:31 2020 +0200
@@ -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">
             
             
diff -r 0dc546d3cbff -r e9c8d0180829 minimal_chart_fr.xml
--- a/minimal_chart_fr.xml      Sat Sep 05 23:37:58 2020 +0200
+++ b/minimal_chart_fr.xml      Fri Sep 18 00:06:31 2020 +0200
@@ -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">
             
             
diff -r 0dc546d3cbff -r e9c8d0180829 minimal_chart_nl.xml
--- a/minimal_chart_nl.xml      Sat Sep 05 23:37:58 2020 +0200
+++ b/minimal_chart_nl.xml      Fri Sep 18 00:06:31 2020 +0200
@@ -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">
             
             
diff -r 0dc546d3cbff -r e9c8d0180829 minimal_chart_pt.xml
--- a/minimal_chart_pt.xml      Sat Sep 05 23:37:58 2020 +0200
+++ b/minimal_chart_pt.xml      Fri Sep 18 00:06:31 2020 +0200
@@ -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">
             
             
diff -r 0dc546d3cbff -r e9c8d0180829 minimal_chart_ru.xml
--- a/minimal_chart_ru.xml      Sat Sep 05 23:37:58 2020 +0200
+++ b/minimal_chart_ru.xml      Fri Sep 18 00:06:31 2020 +0200
@@ -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">
             
             
diff -r 0dc546d3cbff -r e9c8d0180829 minimal_chart_sl.xml
--- a/minimal_chart_sl.xml      Sat Sep 05 23:37:58 2020 +0200
+++ b/minimal_chart_sl.xml      Fri Sep 18 00:06:31 2020 +0200
@@ -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">
             
             

Reply via email to