Is it possible to read an entry from global resource file in ItemStyle.XSL in SharePoint 2019?
I have already implemented the Variations in SharePoint site, and one of my custom styles has a static string that was added in ItemStyle.xsl file as is!
But I need to apply multilingual content for this style to show this string value "More...." based on the current site language and not to be static!
I checked Localizing contents of the Content Query Web Part using custom XSLT functions but I am not familiar with the custom XSLT function for the Content Query web part? Is there any new way to implement multilingual in ItemStyle.xsl file in SharePoint on-premises?
Unfortunately, NO! In SharePoint ItemStyle.XSL, you can't localize the Content Query Web Part Content using a global resource file as OOTB!
NO, XSLT doesn’t provide any kind of localization!
Fortunately, you have two options to deal with different languages and localize Content Query Web Part content in SharePoint ItemStyle.xsl file like the following:
This option is simple and easy to implement in case you would like to localize a bit of content like a label in your ItemStyle!
Define a variable called Lang and set it to the represented language part in your Page URL as the following:
<xsl:variable name="Lang" select="'/en/'" />
Finally, perform XSL-CHOOSE statement to handle the displayed language as the following:
Most popular tags