Skip to content

Commit

Permalink
updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
Jens Scherbl committed Sep 2, 2014
1 parent 709a23c commit c67f948
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ The extension removes the language segment from the field name and provides `lan

In your XSLT, you can now use the `$language`-parameter to get the translation for the current language.

<xsl:value-of select="title[@lang = $language]" />
<xsl:value-of select="title[@lang = $language]"/>

If a translation isn't provided for a specific language, the extension provides a fallback to the default language in your XML output.

Expand All @@ -82,8 +82,8 @@ If a translation isn't provided for a specific language, the extension provides

You can check if a field has actually been translated or uses fallback content by testing the `translated`-attribute.

<xsl:if test="@translated = 'yes'">
<xsl:value-of select="title[@lang = $language]" />
<xsl:if test="title[@lang = $language]/@translated = 'yes'">
<xsl:value-of select="title[@lang = $language]"/>
</xsl:if>


Expand Down

0 comments on commit c67f948

Please sign in to comment.