Developer forum

Forum » Templates » translate tag

Reply
Hi,

I am trying to use the translate tag in xslt templates (news module), but so far no good. Is there a special trick?

I tried with < !-- string and also with <xsl:comment>. None of them seem to do the trick.

When using the xslt command, the comment was correcty rendered in HTML, but the translation was not processed, not even for the standard translate value.

Best Regards,
Nuno

Replies

 
Reply

Did anyone take a look a this?

Best Regards,
Nuno

 
Reply
Hi Nuno

Sorry for the late reply.
Take a look in the attached file to see how translation is done in XML/XSLT.

// Sebastian
 
Reply
Hi Sebastian,

Thanks, this is a life saver. I had all of my website in xslt and was almost having to redo it in HTML.

I just find one inconvinience. If we chance the website's URL, we will also have to go through all the templates and update the xml file location. Isn't there a local path we can provide?

As for local/global translate tags, I think I can get it to work. If not I will let you know.

Best Regards,
Nuno
 
Reply
Hi Nuno

I've tried everything to make it work with a local path. But no luck.

// Sebastian
 
Reply
Hi Sebastian,

What about if the xml rendered some global tag with the domain? It's just a suggetion, but would do the trick.

Best Regards,
Nuno
 
Reply
Have you found a way to make it work with a local path?
 
Reply
Hi,

No, I'm still hoping they make use of my suggestion. For now, updating all the templates is the only solution :S

//nuno

 

You must be logged in to post in the forum