Installation and deployment Questions on installation, system configuration and deployment to the live server.
Version 5.x > Installation and deployment > Setting the default ui culture of Kentico View modes: 
User avatar
Member
Member
michiel - 6/11/2010 8:56:23 AM
   
Setting the default ui culture of Kentico
I have downloaded the Dutch translation and copied the CMS.nl-nl.resx file into ~/CMSResources. Then I added the UI culture in CMS Site manager. Now I can choose Dutch as my UI culture in my profile.

Then I added the appsetting CMSDefaultUICulture to ~/web.config and I set it to nl-nl. This doesn't seem to do anything unless I also need rename some of the resource files (that's not how you are supposed to use resx files in .NET by the way).

Now I also want the logon page at ~/CMSPages/logon.aspx to be in Dutch by default, how can I achieve that?

Thanks!

User avatar
Kentico Developer
Kentico Developer
kentico_ondrejv - 7/2/2010 2:01:22 PM
   
RE:Setting the default ui culture of Kentico
Hello,

I'm sorry for inconvenience, but you will still need to rename your Dutch resource file to be CMS.resx if you want to use CMSDefaultUICulture option. I believe that you've gone through that, but for reference I'm showing that this approach is described in our Developer's Guide: Multilingual support and cultures overview.

Just for my curiosity, could you please kindly send me some article where it's described it shouldn't work like that? Thank you in advance.

Regarding the logon page translation, you can do that in code-behind of the logon page ~\CMSPages\logon.aspx.cs in Page_Load method like this:

CMS.GlobalHelper.CultureHelper.SetPreferredUICulture("nl-nl");
this.SetCulture();


Hope it's fine with you.

Best regards
Ondrej Vasil

User avatar
Member
Member
michiel - 7/5/2010 5:02:22 AM
   
RE:Setting the default ui culture of Kentico
For globalization in .NET you can just refer to the MSDN documentation. There's a tag in web.config that should control globalization (default or auto) and renaming files should not be needed in .NET globalization. In the same way, for the logon page it's not needed to edit code, this page does follow the setting in the web.config

As you've said, it's an inconvenience. I'd rather have Kentico behave in a more standardized and predictable way.

Thanks for your help.

User avatar
Kentico Developer
Kentico Developer
kentico_ondrejv - 7/8/2010 3:08:06 AM
   
RE:Setting the default ui culture of Kentico
Hi Michiel,

I see your point and from my point of view it sounds pretty reasonable. Therefore I'm creating a requirement to handle those things slightly better.

You can also raise your vote in this regard on our Uservoice portal.

Best regards
Ondrej Vasil