summaryrefslogtreecommitdiff
path: root/officecfg/util/data_val.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'officecfg/util/data_val.xsl')
-rw-r--r--officecfg/util/data_val.xsl8
1 files changed, 3 insertions, 5 deletions
diff --git a/officecfg/util/data_val.xsl b/officecfg/util/data_val.xsl
index 994664376325..bdf7c1ba2546 100644
--- a/officecfg/util/data_val.xsl
+++ b/officecfg/util/data_val.xsl
@@ -201,12 +201,10 @@
<xsl:call-template name="collectPath"/>
</xsl:variable>
<xsl:variable name = "module" select="@install:module"/>
+ <xsl:variable name = "lang" select="@xml:lang"/>
- <xsl:if test="@oor:lang">
- <xsl:message terminate="yes">ERROR: Value in property '<xsl:value-of select="$path"/>' has module and locale!</xsl:message>
- </xsl:if>
- <xsl:if test="following-sibling::value[@install:module=$module]">
- <xsl:message terminate="yes">ERROR: Property '<xsl:value-of select="$path"/>' has multiple values for module <xsl:value-of select="$module"/>!</xsl:message>
+ <xsl:if test="following-sibling::value[@install:module=$module and @xml:lang=$lang]">
+ <xsl:message terminate="yes">ERROR: Property '<xsl:value-of select="$path"/>' has multiple values for module <xsl:value-of select="$module"/> and locale <xsl:value-of select="$lang"/>!</xsl:message>
</xsl:if>
<xsl:if test="../value[not(@install:module)]">
<xsl:message terminate="yes">ERROR: Property '<xsl:value-of select="$path"/>' has values both with and without module. This is currently not supported. Please contact jb@openoffice.org, if you need this!</xsl:message>