Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
165
Changing UI language
posted

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

Parents
  • 8607
    Offline posted

    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 Albert
    Localization Engineer

Reply Children