WebGrid Localization questions

4 replies. Last post: March 16, 2011 9:26 AM by Guillermo Montes
Tags :
  • New Discussion
  • New Question
  • New Product Feedback

Hi,

We're thinking of using our own language files for WebGrid localization purposes. Could you help me validate these changes I've done in my project?

In the OnInitializeLayout event for those instances that require localization I've added:

webGrid.LayoutSettings.TextSettings.UseWebResources = false;
            webGrid.LayoutSettings.TextSettings.Language = LanguageMode.UseCulture;

 And in my web.config file, inside appSettings...

<add key="ISNet.WebUI.WebGrid.v7_0_7200.LocalizationDirectory" value="~/GridLocalization/" />

 

And finally... the instructions in the reference file said I needed to copy the whole CommonLibrary folder. I just took "Inside CommonLibrary\WebGrid\V7_0_7200\Localization" and renamed it to "GridLocalization" a folder inside our webapplication folder. That's all I should need from the CommonLibrary contents, right?

Also, I see some files in the localization folder that I don't quite find an use for? Can I delete those?

Inside CommonLibrary\WebGrid\V7_0_7200\Localization there's:

Japanese.xml

Korean.xml

List2.xml

What is the purpose of those files? I mean... we already have wglang_ja-JP.xml for japanese and wglang_ko-KR.xml for Korean.

Also, is there a way to point various cultures to a single language file? We may not have differences between en-US and en-CA and en-GB...


Regards

All times are GMT -5. The time now is 5:51 PM.
Previous Next