Copied to clipboard

Flag this post as spam?

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


  • Andreas Kaltenhuber 107 posts 286 karma points
    Jun 30, 2011 @ 21:45
    Andreas Kaltenhuber
    0

    Multilanguage Issue

    Hi,

    i'm experience issues with multilanguage sites. as soon as i a hostname with a different language then english the coordinates gets rendert differently.

    eg:

    english: 47.13046,11.54061999999999,8 (correct)

    german: 471304611540619999999998 (wrong)

     

    anyone experienced the same?

    thx in advance,

    Andi

    Umbraco 4.7, Multilanguage Site, Google Maps v3

  • Steen Tøttrup 191 posts 291 karma points c-trib
    Jun 30, 2011 @ 21:54
    Steen Tøttrup
    0

    I haven't tried this with Umbraco, but with another CMS.

    Where do you have these values? From XSLT or?

    It seems XSLT ignores the CultureInfo of the thread and can only handle decimal numbers if they are in the English format (with periode as decimal marker).

     

  • Andreas Kaltenhuber 107 posts 286 karma points
    Jun 30, 2011 @ 21:57
    Andreas Kaltenhuber
    0

    The values are from a razor script!

    Haven't tried the XSLT version at the moment. I will look further into this issue and run a few tests.

  • Steen Tøttrup 191 posts 291 karma points c-trib
    Jul 01, 2011 @ 07:59
    Steen Tøttrup
    0

    Actually I'm not sure there's anything you can do.

    I'm guessing the problem is that the coordinates are stored as string in some XML, and when you type them in in the back-office, you might be running with English rules for numbers, and when the values are pull out again from the front-end, it depends on what language the site is running.

    I'm not sure the source code is public, so there's no way for me to make sure, we'll have to wait for feedback from the project owner.

     

  • Andreas Kaltenhuber 107 posts 286 karma points
    Aug 02, 2011 @ 13:31
    Andreas Kaltenhuber
    0

    I can confirm that this seems an multilanguage issue with razor, using a XSLT version works fine with multilanguage sites.

    maybe this issue can be solved within a upcomming release!

    Andi

Please Sign in or register to post replies

Write your reply to:

Draft