Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
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.
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.
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.
It resolve the issue but why its not working properly? Any valid guess?
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...
What this mean by pre-existed. From where I can see it?
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 ...
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted