Kaydet (Commit) 381d1162 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Check for erroneously localized values of non-localized properties

See ffd8369b "rhbz#1541486: Fix localized'ness
of ooSetupFactoryUIName props".  Turns out adapting the XSLT was easier than
feared.

The two other incidents found are fixed with
c7ab472b
"/org.openoffice.Office.Writer/Layout/Other/TabStop should be localized" and
552bebc8
"/org...Writer/Insert/Caption/CaptionOrderNumberingFirst should be localized".

Change-Id: Ic3b29a69d517440d133daed1f3b07d1f7510dab8
Reviewed-on: https://gerrit.libreoffice.org/49473Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst 3a86fcba
......@@ -171,6 +171,14 @@
<xsl:message terminate="yes">ERROR: Property '<xsl:value-of select="$path"/>' has unexpected operation '<xsl:value-of select="@oor:op"/>' !</xsl:message>
</xsl:if>
<xsl:if test="not($context/@oor:localized='true')">
<xsl:for-each select="value">
<xsl:if test="@xml:lang">
<xsl:message terminate="yes">ERROR: Non-localized property '<xsl:value-of select="$path"/>' has value for xml:lang='<xsl:value-of select="@xml:lang"/>'!</xsl:message>
</xsl:if>
</xsl:for-each>
</xsl:if>
<xsl:call-template name="checkModule"/>
<xsl:call-template name="checkDuplicates"/>
......@@ -237,6 +245,13 @@
</xsl:otherwise>
</xsl:choose>
<!-- Extension properties are always non-localized: -->
<xsl:for-each select="value">
<xsl:if test="@xml:lang">
<xsl:message terminate="yes">ERROR: Non-localized extension property '<xsl:value-of select="$path"/>' has value for xml:lang='<xsl:value-of select="@xml:lang"/>'!</xsl:message>
</xsl:if>
</xsl:for-each>
<xsl:call-template name="checkModule"/>
<xsl:call-template name="checkDuplicates"/>
</xsl:template>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment