Developer forum

Forum » Rapido » Translations in .xslt files. Is it possible?

Translations in .xslt files. Is it possible?

Jens Mouritzen
Jens Mouritzen
Reply

Hi, we need to translate the text "Go to" in the xslt template for the mobilenavigation (picture1).

@Translate("Go to","Go to") does not work in the xslt template. Is there any way to translate this?

Picture2 shows the xslt file

picture1.png picture2.png

Replies

 
Karsten Thuen Dynamicweb Employee
Karsten Thuen
Reply

Hi Jens

It is not that easy to translate strings in the .xslt Why do you need it? I think what I would do is to skip that text, as it does not add anything of value to the understanding of what clicking the menu item does. "Go to" a page, I think, as exactly what a user would think happens when clicking in the menu. So why is it needed?

 

Best regards
Karsten Thuen

 
Jens Mouritzen
Jens Mouritzen
Reply

Sure it could be deleted, no need for it. It just comes with Rapido. I was only wondering if there were a trick to use the translate tag in .xslt.

 
Mario Santos Dynamicweb Employee
Mario Santos
Reply
This post has been marked as an answer

Hi Jens,

I have used translations in xslt a couple times, take a look on the attached file.

BR, Mario

 
 
Votes for this answer: 1
 
Jens Mouritzen
Jens Mouritzen
Reply
This post has been marked as an answer
Looks promising. I Will look at it tomorrow and give feedback 👍
Votes for this answer: 1

 

You must be logged in to post in the forum