SNilsson
asked on
Globalization
I develop a web application in VS 2008, the Login component among others is showing the text in my local language since I have set the uiculture in the web.config file(see code).
This is working fine on my devolpmen machine.
When I deploy the solution to a remote Win server 2008 with swedish language installed(so they say), it shows english in the login control.
What need to be done to fix this, is the problem on the server or can I fix it in code/settings?
This is working fine on my devolpmen machine.
When I deploy the solution to a remote Win server 2008 with swedish language installed(so they say), it shows english in the login control.
What need to be done to fix this, is the problem on the server or can I fix it in code/settings?
<globalization
requestEncoding="utf-8" responseEncoding="utf-8"
uiCulture="sv" culture="sv-SE" />
ASKER
No joy, its acting the same.
I tried that on my dev machine also, but using uiCulture="es" culture="es-MX" it will not show spanish on my local computer either.
Does it have to do with if I have language packs installed on the operative system?
I tried that on my dev machine also, but using uiCulture="es" culture="es-MX" it will not show spanish on my local computer either.
Does it have to do with if I have language packs installed on the operative system?
I`m not sure about this, but you may need to do a "iis reset" for that setting to be "active"
also, check in Internet Options->General->Language s (for IE) if the target language is avilable. try to switch it first to ckeck.
finally, check at the top fo the individual page if there @ Page directive about culture ( <%@ Page UICulture="es" Culture="es-MX" %>) i think it override the web.config settings.
here some link
http://msdn.microsoft.com/en-us/library/bz9tc508.aspx
http://www.codeproject.com/Kb/aspnet/localizationByVivekTakur.aspx
also, check in Internet Options->General->Language
finally, check at the top fo the individual page if there @ Page directive about culture ( <%@ Page UICulture="es" Culture="es-MX" %>) i think it override the web.config settings.
here some link
http://msdn.microsoft.com/en-us/library/bz9tc508.aspx
http://www.codeproject.com/Kb/aspnet/localizationByVivekTakur.aspx
ASKER
Thanks davrob
I`m not sure about this, but you may need to do a "iis reset" for that setting to be "active"
s (for IE) if the target language is avilable. try to switch it first to ckeck.
What about installed languages on the operative I have not found anything that say it is needed.
Maybe you can do a quick test on your machine and se if you can get uiCulture="sv" to work with a login control (unless you have Swedish language on your system that is).
I`m not sure about this, but you may need to do a "iis reset" for that setting to be "active"
I will try this on my local IIS with the 'es' language before suggesting it to my web hosting.check in Internet Options->General->Language
It should ignore IE settings, language will be handled as I set it(with your suggestion of "enableClientBasedCulture=check at the top fo the individual page if there @ Page directive about culture ( <%@ Page UICulture="es" Culture="es-MX" %>) i think it override the web.config settings."false" it will ignore it)
Yes I have tried this variant before and it act the same as the global setting in web.config(yes it do override)I belive I have visited those links before, but I will check them for tips.
What about installed languages on the operative I have not found anything that say it is needed.
Maybe you can do a quick test on your machine and se if you can get uiCulture="sv" to work with a login control (unless you have Swedish language on your system that is).
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Another solution will be to fill the Text values of the "text" values of the controls (Failure text, etc.) or use a resource file. I think the Default values are set from the computer that "compile" just in time the .net code.
I was afraid of that, its the most secure thing if you want to have it static, lots of translations though when you know the text is translated somewhere.
Even if my web provider manage to enable Swedish on the server and I then change provider, I might have the same problem again.
I use mostly use the VS web server, I will enable my local IIS to see what happens.
Thanks a lot for your help, guess I have lots of places to find and change to Swedish in the controls now >)
I was afraid of that, its the most secure thing if you want to have it static, lots of translations though when you know the text is translated somewhere.
Even if my web provider manage to enable Swedish on the server and I then change provider, I might have the same problem again.
I use mostly use the VS web server, I will enable my local IIS to see what happens.
Thanks a lot for your help, guess I have lots of places to find and change to Swedish in the controls now >)
ASKER
Thanks, hopefully everyone talks english in the near future and we don have to mess with all the culture variants :)
than, if you have multiple controls of the same type, you could use a global culture-neutral resource (resx) file (in swedish) and then use meta:resourcekey tag to link them. You could have only one "key" for each control class.
http://quickstarts.asp.net /QuickStar tv20/aspne t/doc/loca lization/l ocalizatio n.aspx
I m glad i could help
http://quickstarts.asp.net
I m glad i could help
enableClientBasedCulture="
It will force it to use swedish
Open in new window