iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hello,
I'm trying to set russian culture to the webgrid.
I attached an example that I tried to modify from you samples.
As you can see, I try to set the culture of the webgrid in the page_load event, but it doesn't work.
For example, the label "ready" that normally appears on the footer isn't displayed anymore.
Am I right? Do I need to set a language file name for other languages?
Best Regards,
Nicolas
In the current build version of WebGrid 7.0, there is no option for Russian culture yet.
I enclosed my simple sample of localhost website as attachment. In the attached sample, the grid’s culture is set to custom language. You’ll need to add the attached the wglang_ru-RU.xml file into the “%ProgramFiles%\Intersoft Solutions\WebUI Studio for ASP.NET\CommonLibrary\WebGrid\V7_0_7200\Localization” folder. You will also need to add required Intersoft reference files into the sample project’s Bin folder.
Below is the screenshot of WebGrid using Russian culture.
The wglang_ru-RU.xml file is made by translating the default localization text into Russian language utilizing the language translation application. We would be much appreciate if you can help us in localizing the new text entries according to your language and send back the localized xml file to us. These new entries are fundamental element used in new features of WebGrid.NET Enterprise 7.0.
For instance, if you would like to localize Russian language, please do the following:
These localized files will be embedded to SmartWebResources in the final version so that you can use the language file automatically without physical file. Therefore, it’s important that the localized entries contain correct text and proper grammars. We thank you for your continuous support and look forward to your contributions.
When you add en-US culture (to common library, not use smart web resources), the file "wglang_en-US.xml" will be create automatically. By default, all other resources will also create using the default culture, but some of resources like "copy this row" is missed by us. So we can't call it as bug.
We are sorry for this inconvenience.
Regards.Riendy
Thank you for your answer.
I tried to use your sample website and also to create a new page in WebGridSamples project, but with both solutions I have an error "Failed to map the path '/CommonLibrary/Webgrid/V7_0_7200/Localization/' (see attached jpg) when I launch the web site.
Moreover, your answer doesn't explain how to deploy and use it on a web server.
Do I need to copy the russian language resource file in the bin directory?
The sample that I sent you on my previous post is a localhost website project (not using SmartWebResources™). Please carefully follow the step-by-step below in order to have the sample run on your end.
Hope this helps.
Hello Yudi,
If I use your sample project WebGridCulture.zip, I can't add references you mentioned in section 5 of your procedure (juste above).
The reference files are already in web.config you sent me...
If I remove all and try to re-reference the dll, here is the result (see attached pictures).
Am I right about adding a virtual directory for CommonLibrary? (see iis.png)
In order to add the reference files, you can open the corresponding folder; select the required files; copy the files; and paste it to the bin folder of WebGridCulture project.
You may either keep the following line or remove the settings in web.config file.
That line of code says that if those reference files (ISNet.dll and ISNet.WebUI.dll) is not available in the project’s bin folder, then it will check in the GAC (Global Assembly Cache at “%SystemRoot%\Assembly” folder).
I have sent you a message; please kindly check the inbox of your registered email account.
Please allow me to update the most recent status of the issue in this thread.
Me and supporti-track.pmi@pmintl.com have worked closely and managed to have the “Russian language” as the culture of WebGrid by implementing the wglang_ru-RU.xml file into the CommonLibrary folder.
I would like to express my compliment for his patience and cooperation. Thank you very much.
Hi again,
I found an issue using WebGrid.LayoutSettings.TextSettings.Language property.
As long as you change this property to any other than default (UseDefault), some resources disappear.
Example: WebGrid.LayoutSettings.TextSettings.Language = LanguageMode.UseCulture=> context menu have empty menu items for "Copy Selection" and "Delete Selection".
Thank you and best regards,
Hi Nicolas,
This is not an issue in WebGrid's language property. This problem appear because we have missing several culture. If the language's xml which you use is not in localization folder (or the xml is empty), you have to fill it manually. For the details of steps, please follow the steps that yudi gave above.
NOTE: your project must a local host WebSite project, not use SmartWebResources™ (To open the language in common library folder)
Hope this helps.Riendy
Hi Riendy,
I understand that you don't have all localization cultures. The issue here has nothing to do with missing localizations as my example is using the default culture (filename="default.xml" culture="en-US").
Please let's try a simple example with Intersoft's WebGrid7 sample.If I take the 'MultipleRowSelection.aspx' web page sample and I add
protected void Page_Load(object sender, EventArgs e) { Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US"); // or "fr-FR" WebGrid1.LayoutSettings.TextSettings.Language = LanguageMode.UseCulture; }
in code behind, if I select multiple rows and I right-click to make appear the context menu, I get the following issue: missing resource for "Copy Selection" (see attached image "ex1.PNG"). This resource is however available by default (see "ex2.PNG") in "default.xml" (culture="en-US").
Of course, if I use another IS's EXISTING culture (fr-FR), everything works well but "Copy Selection" (see "ex3.PNG"), which is OK, as the concerned resource ("<CopySelection>") is clearly missing in "wglang_fr-FR.xml".
So now, could you please explain me what I did wrong and why the english resource disappears using "en-US" culture, though still present in "default.xml" (see "<CopySelection>Copy Selection</CopySelection>")?
As a suggestion for a solution, couldn't you display at least the default culture text resource if this one is missing in the current culture instead of just blank?
This would be much more user friendly and would avoid complaints from our lost users...
Unfortunately we cannot replace it with the default culture, because we must define what culture that we use, so the WebGrid know what file(.xml) that should be reverted.
--
Regarding to your question above, the english resource disappears using en-US culture though still present in default.xml(en-US), because when you use en-US, WebGrid doesn't revert to default.xml altough it use en-US culture. To solve this problem, You have to create the resource of en-US culture (wglang_en-US.xml). I have tried to copy all data in default.xml to en-US culture file and it works as well as ex2.PNG. If you think that default.xml can solve en-US culture, you can follow my way to copy the resources from default.xml to wglang_en-US.xml.
But how do you explain that all other resources (like "Copy this Row" or "Copy this Table") are displayed correctly when setting culture to "en-US" (despite the fact that there is no "wglang_en-US.xml" file yet) ?
For me this is clearly a bug or a bad design on Intersoft's side... could you please at least correct this for the next release?
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname