Copied to clipboard

Flag this post as spam?

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


  • Horst Sterr 171 posts 133 karma points
    Oct 29, 2009 @ 16:19
    Horst Sterr
    0

    errorpages for multilingual site

    hi
    tried to setup the errorpages in umbracoSettings.config for different cultures.

    My settings look like this

        <errors>
          <!-- the id of the page that should be shown if the page is not found -->
          <errorPage culture="de-DE">1773</errorPage>
          <errorPage culture="en-US">1774</errorPage>
          <error404>1773</error404>
        </errors>

    But no matter on which culture i browse i always get the DE-page with the ID 1773 as errorpage.
    Actually i would like to have a 404errorpage for each culture

    Did i miss something important?

    thank you for any help
    /horst

  • Rasmus Berntsen 215 posts 253 karma points c-trib
    Oct 29, 2009 @ 16:22
    Rasmus Berntsen
    0

    Try to do it this way:

        <errors>
          <error404>
            <errorPage culture="default">1773</errorPage>
            <errorPage culture="en-US">1774</errorPage>
            <errorPage culture="de-DE">1773</errorPage>
          </error404>
        </errors>

  • Horst Sterr 171 posts 133 karma points
    Oct 29, 2009 @ 16:54
    Horst Sterr
    0

    hm, culture="default" is regognized.
    but culture="en-US" and culture="de-DE" not

    i get the same page anyway if i browse the de or en pages
    tried with culture="en" and culture="de" as well - no success

    seem to me that the definition of the cultures is not correct
    btw, dictionary items are working

  • Horst Sterr 171 posts 133 karma points
    Oct 29, 2009 @ 18:35
    Horst Sterr
    0

    regarding to this i checked the current Culture of my sites and they are definitely "de-DE" and "en-US"
    and my entry in umbrcoSettings.config looks like this

    <error404>
    <errorPage culture="en-US">1774</errorPage>
    <errorPage culture="de-DE">1773</errorPage>
    </error404>

    but in case of an error i always get the page with the id 1773
    any ideas what else i could try?

    thank you
    /horst

  • Rasmus Berntsen 215 posts 253 karma points c-trib
    Oct 29, 2009 @ 18:36
    Rasmus Berntsen
    0

    The example above is from a working copy... But I've been strugling with this myself. It seems to me that it sometimes work and other times doesn't. :(

  • Rasmus Berntsen 215 posts 253 karma points c-trib
    Oct 29, 2009 @ 18:40
    Rasmus Berntsen
    0

    Regarding checking for the current culture (if it really is "de-DE"), the easiest way to do that is just to add "?umbDebugShowTrace=true" after your page, like www.test.de/testsite.aspx?umbDebugShowTrace=true. It will tell you the current culture plus a lot more. Just a tip from here... =)

  • Horst Sterr 171 posts 133 karma points
    Oct 29, 2009 @ 18:47
    Horst Sterr
    0

    ok, thank you - know this but did't think about that it spits out culture as well.

    says the same  "de-DE" and "en-US"

  • Horst Sterr 171 posts 133 karma points
    Nov 02, 2009 @ 12:07
    Horst Sterr
    0

    finally solved the problem.
    had some inconsistencie managing hostnames

    thank you for support
    /horst

  • Rasmus Berntsen 215 posts 253 karma points c-trib
    Nov 02, 2009 @ 12:13
    Rasmus Berntsen
    0

    Did you have to do anything specific to make it work? :)

  • Preethi 32 posts 99 karma points
    Jan 15, 2010 @ 16:38
    Preethi
    0

    Hi,

    I have created a multi lingual web site in Umbraco in German and English language. I am having a similar problem that the dictionary items are rendering fine but not the error 404  page

    My site structure below:

    Content

    --EN(hostname mywebsite.com/en and Language English(United States))

    ---child pages

    --DE(hostname mywebsite.com/de and Language German(Germany))

    --child pages

     

    --

    Can you please let me know what your inconsistencies where with the host name to help me fix the issue. Many thanks in advance.

  • Jay Dobson 75 posts 121 karma points
    May 11, 2011 @ 19:33
    Jay Dobson
    0

    Hey Horst,

    Do you remember what you did to resolve this?  My hostnames seem correct, dictionary items are pulling for each language accordingly, but it's still not working for me.  I've been pulling my hair out over this one.

    Thanks,

    Jay

  • Tom Fulton 2030 posts 4998 karma points c-trib
    May 11, 2011 @ 20:59
    Tom Fulton
    0

    Hi Jay,

    I'm not sure about the above way of achieving this, but uComponents has something called a Multi Site Page Not Found Handler, which enables you to easily specify different 404 pages for multiple sites.  I've used this in a multilingual solution to achieve the same result.  Perhaps you could use this instead (assuming you're using a multi-site multi-lingual solution)?

    -Tom

Please Sign in or register to post replies

Write your reply to:

Draft