Bookmark and Share

Friday, March 05, 2010

How to manage localized strings in DNN Form and List XSLT

Do you need to insert nationalized strings in a Form and List module on Dotnetnuke 5?

Here is the solution:

<xsl:variable name="currentCulture" select="//udt:Context/udt:CurrentCulture" />
<xsl:if test="$currentCulture='it-IT'">
Italian text
</xsl:if>
<xsl:if test="$currentCulture='en-US'">
English text
</xsl:if>




Hope it helps…