Hi,
How can I change a language of the UI in the WebSpellChecker?I can change the dictionary to French for example, but all action buttons ("Change","Ignore", etc.) are still in English.
Thanks,Andrei
Hello Andrei,
You can translate the UI for the WebSpellCheckerDialog by translating the strings.resx file distributed with our source code, and then recompiling the assembly.
Step 1: Download the source code for ASP.NET from here.
Step 2: Find a folder similar to Infragistics.WebUI/WebSpellChecker.
Step 3: Copy the Strings.resx file in there, and rename it to Strings.fr.resx.
Step 4: Translate the rows in the Strings.fr.resx file that begin with WebSpellCheckerDialog_.
Step 5: Add the Strings.fr.resx file to the WebSpellChecker project (whichever CLR you are using).
Step 6: Rebuild the project, and use the rebuilt assembly in your application
The French button captions should appear whenever the application is run on a French OS. You can also simply translate the strings.resx file and rebuild, but then you'll lose the English button captions forever. Or you could hardcode the culture of the thread for your application.
There is a document on how to localize the WebDataGrid in this forum post, and the same steps should be applicable to other controls, if you want a full walkthrough.
Let me know if you have any other questions.
Elizabeth AlbertLocalization Engineer
Hi ElizabethI am trying to localize spell checker by following the steps outlined above but getting the following two errors when i reference new webspellchecker dll from infragistics projects
The type 'Infragistics.WebUI.Shared.IUltraLicensedComponent' is defined in an assembly that is not referenced. You must add a reference to assembly 'Infragistics4.WebUI.Shared.v11.1, Version=11.1.20111.2135, Culture=neutral, PublicKeyToken=3282e95eecef1e03'
The type 'Infragistics.WebUI.WebControls.SmartWebControl' is defined in an assembly that is not referenced. You must add a reference to assembly 'Infragistics4.WebUI.Shared.v11.1, Version=11.1.20111.2135, Culture=neutral, PublicKeyToken=3282e95eecef1e03'
Need urgent help.
Regards
Yes, I am already doing the same, copying the satellite assembly in the related language folder.
Thanks for your support
Hello pkgal79,
If a resource dll (satellite assembly) was created, it must be put in the /bin/Language_Code folder relative to your new WebSpellChecker assembly. The Language_Code would be something like "es" for Spanish.
To test it, either you can use a target language machine or set the globalization element in the web.config file.
I will forward your post to Developer Support so they can work with you to solve this issue. They will create a case for you and communicate through the case.
Hi
All references are set properly and everything working fine with English spellchecker, problems occur only when I try to add webspellchecker with translation to my project’s bin folder. I have tried doing that in number of ways but no success.
I first tried the method described in the following link
http://community.infragistics.com/forums/p/52124/327829.aspx#327829
, i.e. by modifying infragistics WebspellChecker project code and copied the newly created dll in my bin. My project did not compiled giving the following 2 errors
Error 1 The type 'Infragistics.WebUI.Shared.IUltraLicensedComponent' is defined in an assembly that is not referenced. You must add a reference to assembly 'Infragistics4.WebUI.Shared.v11.1, Version=11.1.20111.2135, Culture=neutral, PublicKeyToken=3282e95eecef1e03'.
Error 2 The type 'Infragistics.WebUI.WebControls.SmartWebControl' is defined in an assembly that is not referenced. You must add a reference to assembly 'Infragistics4.WebUI.Shared.v11.1, Version=11.1.20111.2135, Culture=neutral, PublicKeyToken=3282e95eecef1e03'.
Looking at the errors above I noticed that it is trying to refer to WebUI.shared with public token key ‘3282e95eecef1e03’, whereas WebUI.Shared present in my computer is with public token key “7DD5C3163F2CD0CB”. So, I modified the infragistics WebspellChecker project by referring it to my WebUI.Shared i.e with public token key “7DD5C3163F2CD0CB” and then recompilied it. Add this newly created Webspellchecker dll to my project, my project compiled properly with no error. But when I try to run my page got the following error.
Parser Error Message: The base class includes the field 'WebSpellChecker1', but its type (Infragistics.WebUI.WebSpellChecker.WebSpellChecker) is not compatible with the type of control (Infragistics.WebUI.WebSpellChecker.WebSpellChecker).
Then tried the method as described in the following http://blogs.infragistics.com/forums/t/24594.aspx
i.e. by modifying the dll and creating resource dll files. When i did that it gave me some “assesmbly tampering error” so after doing some research I Just resigned the assemly with command:"sn -k keys.snk". Project compiled and running fine after that with no errors but web spell chekcer does not get translated it is still in english.
Any help woud be highly appreciated.
It sounds like the web.config file is missing the reference to Infragistics4.WebUI.Shared.v11.1. If it is not in the web.config file, could you try to add it manually?
To answer the other question, you could use a Spanish OS to test. Alternatively, you can set the culture and the uiCulture in the globalization element of the web.config file. Just make sure you remove those settings when the testing is complete.
If you have further questions, I can forward your post to Developer Support.
Also, once I am able to build my project successfully with the web spellchecker translated, would I need to have language specific OS(spanish in my case) to view the translation?