Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Fredrik Esseen 610 posts 906 karma points
    Oct 20, 2010 @ 16:00
    Fredrik Esseen
    0

    Retrieving different text with multiple languages in xslt

    Hi!

    I've created a site with three different languages.

    Now we have section with spare parts that i dont want the customer to have to create everyone thrre times.

    So ive used the ultimate picker to solve the problem.

    But now I want to let the user create a new product and write the info on the same page as:

    Text-Swedish
    Text-English
    Text-German

    So ive created three different textboxes. But now I want to use xslt to select the correct text depending on language. How can I do that?

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Oct 20, 2010 @ 18:51
    Jan Skovgaard
    0

    Hi froad

    You could add a querstring to the url, which could look something like this ?lang=se and then request it in your macro to fetch the correct value corresponding to the language.

    /Jan

  • Fredrik Esseen 610 posts 906 karma points
    Oct 21, 2010 @ 08:18
    Fredrik Esseen
    1

    Of course! Why didnt I think of that :)

    Solved it by checking level 1 top node of currentpage.

  • Rik Helsen 670 posts 873 karma points
    Oct 21, 2010 @ 09:16
    Rik Helsen
    0

    bad bad bad for SEO... you'll only have one url for content in three different languages. other websites will definatly outperform yours in search results...

  • Brian Manning 22 posts 43 karma points
    Oct 21, 2010 @ 21:00
    Brian Manning
    0

    Going along with Rik, have you thought about doing hostnames/subdomains?

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies