Want to set default language as dutch

This is a place to discuss how to adapt mojoPortal to the needs of different cultures. Before asking questions here please first review the localization documentation.

This thread is closed to new posts. You must sign in to post in the forums.
6/8/2009 1:32:02 AM
Gravatar
Total Posts 40

Want to set default language as dutch

 

 

Hi all,

 

In my Website,It si taking by default English language ie "en-US",but i need to implement dutch language according to requirement.I had changed in Web.config from <globalization culture="auto:en-US" uiCulture="auto:en-US" requestEncoding="utf-8" responseEncoding="utf-8" fileEncoding="iso-8859-15" /> to <globalization culture="auto:nl-NL" uiCulture="auto:nl-NL" requestEncoding="utf-8" responseEncoding="utf-8" fileEncoding="iso-8859-15" />.But i doesnt work.Did i am missing something?

Can any one help me?

Thankyou In advance

6/8/2009 1:32:56 AM
Gravatar
Total Posts 40

Re: Want to set default language as dutch

 

Hi all,

 

In my Website,It si taking by default English language ie "en-US",but i need to implement dutch language according to requirement.I had changed in Web.config from <globalization culture="auto:en-US" uiCulture="auto:en-US" requestEncoding="utf-8" responseEncoding="utf-8" fileEncoding="iso-8859-15" /> to <globalization culture="auto:nl-NL" uiCulture="auto:nl-NL" requestEncoding="utf-8" responseEncoding="utf-8" fileEncoding="iso-8859-15" />.But it doesnt work.Did i am missing something?

Can any one help me?

Thankyou In advance

 

 

6/8/2009 7:58:32 AM
Gravatar
Total Posts 18439

Re: Want to set default language as dutch

Hi,

The biggest problem is you cannot set the default to a language where there are any missing keys in the resource files or it will throw null reference exceptions. So the first thing is you would have to update all the *.nl.resx files (In the App_GlobalResources folder) and add translations for any missing keys as compared to the English file which is just named *.resx

Note that our Dutch resource files are just named *.nl.resx not *.nl-NL.resx, so your changes would need ot be like auto:nl

Also you need to understand what the "auto" does, it says to use the browser language preference, so if the browser language preference is still set to en, then it will show English resources instead of the default. So with auto, it will will always use the browser preference as long as a resource exists for the language specified by the browser preference, otherwise it will use the default. To force it to always use Dutch, you would have to remove the auto:nl and just use nl. But again, the problem is there are missing keys in the Dutch resource files so if you force it to Dutch you may get null reference erros whenever it tries to use a missing key. The errors may only happen on some pages.

Hope it helps,

Joe

6/8/2009 8:09:03 AM
Gravatar
Total Posts 40

Re: Want to set default language as dutch

 

 

Hi Joe,

Thankyou Joe.

In we.config it is like : example culture settings

af-ZA Africaans South Africa
bg-BG Bulgarian Bulgaria - need to fix the datepicker .js file
zh-CN Chinese China - need to fix the datepicker .js file
zh-CHS Simplified Chinese
cs-CZ Czech
en-US English US
en-GB English United Kingdom
es-ES Spanish Spain
es-MX Spanish Mexico
el-GR Greek Greece
da-DK Danish Denmark
de-DE German Germany
fi-FI Finnish Finland
fr-FR French France
fr-CA French Canada
he-IL Hebrew Israel - need to fix the datepicker .js file
it-IT Italian Italy
ko-KR Korean Korea - need to fix the datepicker .js file
nl-NL Dutch Netherlands
nl-BG Dutch Belgium
pt-BR Portuguese Brazil
pl-PL Polish Poland
sv-SE Swedish Sweden
sv-FI Swedish Finland
ru-RU Russian Russia
tr-TR Turkish Turkey

 

So i gave it as "nl-NL".

 

Thankyou for telling wat is the correct one.ok i will take care of resource file without any missingkeys.

 

Once again Thankyou joe

:)

 

 


You must sign in to post in the forums. This thread is closed to new posts.