Copied to clipboard

Flag this post as spam?

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


  • emaadali 55 posts 95 karma points
    Nov 04, 2015 @ 22:53
    emaadali
    0

    Polygot - Umbraco 7.3.0 Default langauge change automatically

    First of all I would to tell you that I am biggest fan of your plugin and used it in multiple sites successfully.

    I am now working on a site. Locally it shows me danish is default language and english secondary.

    But when I move site on some other system or server, It start showing english as primary and danish secondary. Due to which on environment only showing my english node data even I go to danish too.

    Tell me how to set default language manually

    Regards

  • dimi309 244 posts 578 karma points
    Nov 05, 2015 @ 09:51
    dimi309
    1

    Hi, and many thanks for the nice comments!

    You can use the uPolyglotDefaultLanguage setting for this. Please have a look at page 6 of the documentation of v2.0 for more details.

  • emaadali 55 posts 95 karma points
    Nov 05, 2015 @ 11:44
    emaadali
    0

    Thanks for the quick response.

    You took my question in wrong direction.

    Locally when I am working, I added languages and if you know first one act as default language. So my localhost website showing like this http://screencast.com/t/rcNfvFXb and it is working fine as danish is default one.

    But when I deploy same site on server, It automatically put english on top and denmark second like this http://screencast.com/t/8kvoYmm7

    I don't know why this not working properly. I set hostnames and culture too but still not working properly.

    I want danish as primary language.

    Thanks

  • dimi309 244 posts 578 karma points
    Nov 05, 2015 @ 12:33
    dimi309
    100

    I thought that that might be the case. However, I am not sure why it changes the languages sequence during deployment... I guess you can see with Umbraco about that, or see if there is something wrong with the Courier package, if you are using it.

    Nevertheless, adding this to your keys in web.config, might still resolve the problem. It has been a while but I have tested it for changing the default language (so that it is not the first in the list) and it worked:

    <add key="uPolyglotDefaultLanguage" value="dk" /> 
    

    In your local version of course, it will have no effect since the default language will be first anyway. In the remote one though, I think it would help.

  • emaadali 55 posts 95 karma points
    Nov 05, 2015 @ 14:53
    emaadali
    0

    It resolve the issue but why its not working properly? Any valid guess?

  • dimi309 244 posts 578 karma points
    Nov 05, 2015 @ 16:54
    dimi309
    0

    I'm not sure, but maybe English pre-existed on the server installation before anything got deployed, so it stayed at the top? Just a guess...

  • emaadali 55 posts 95 karma points
    Nov 05, 2015 @ 17:39
    emaadali
    0

    What this mean by pre-existed. From where I can see it?

  • dimi309 244 posts 578 karma points
    Nov 05, 2015 @ 19:40
    dimi309
    0

    That is the problem, unfortunately, I am not sure. It depends how you deploy. I remember I had used the Courier package once, for deploying. In that case I had to install a clean version of Umbraco on the server, and link it to my local one. I would then do deployments. In a configuration such as this, the clean version I had initially deployed on the server had English already set up as the first language. Now if you are deploying in another way, I do not know what the situation would be. Perhaps you could also look into the database and see if the language has a sequence number or something that can be changed? I am just guessing here. I cannot be certain why this is happening, but I hope I have helped in some way ...

Please Sign in or register to post replies

Write your reply to:

Draft