)
We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to localize the SpellChecker dialog box in WinForms SpellChecker (SpellCheckerAdv)?

Platform: WinForms |
Control: SpellChecker |
Published Date: January 22, 2015 |
Last Revised Date: January 23, 2020

Localize the SpellChecker dialog box

You can localize the SpellChecker dialog box text by using ILocalizationprovider interface. The following code example demonstrates the same.

C#

LocalizationProvider.Provider = new Localizer();
class Localizer : ILocalizationProvider
{
    public string GetLocalizedString(System.Globalization.CultureInfo culture, string name, object obj)
    {
        switch (name)
        {
            case ResourceIdentifiers.SpellCheckerButtonAddToDictionary:
                return "Zum Wörterbuch hinzufügen";
            case ResourceIdentifiers.SpellCheckerButtonCustomDictionary:
                return "Benutzerwörterbuch";
            case ResourceIdentifiers.SpellCheckerDialogCaption:
                return "Rechtschreibprüfung";
            case ResourceIdentifiers.SpellCheckCompletedAlert:
                return "Rechtschreibprüfung abgeschlossen";
            case ResourceIdentifiers.SpellCheckerButtonNew:
                return "Taste neue";
            case ResourceIdentifiers.SpellCheckerDictioanryEditorCaption:
                return "Dictionary Editor";
            case ResourceIdentifiers.SpellCheckerIgnoreEmailAddress:
                return "Ignorieren E-Mail Adresse";
            case ResourceIdentifiers.SpellCheckerIgnoreFileNames:
                return "Ignorieren von Dateinamen";
            case ResourceIdentifiers.SpellCheckerIgnoreHTMLTags:
                return "Ignorieren HTML Stichworte";
            case ResourceIdentifiers.SpellCheckerIgnoreInternetAddress:
                return "Ignorieren Internet-Adresse";
            case ResourceIdentifiers.SpellCheckerIgnoreMixedCase:
                return "Ignorieren Probierpaket";
            case ResourceIdentifiers.SpellCheckerIgnoreSpecialCharacters:
                return "Ignorieren Sie Sonderzeichen";
            case ResourceIdentifiers.SpellCheckerIgnoreUpperCase:
                return "ignorieren Großbuchstaben";
            case ResourceIdentifiers.SpellCheckerIgnoreWordsWithNumbers:
                return "Wörter mit Zahlen ignorieren";
            case ResourceIdentifiers.SpellCheckerLabelDictionary:
                return "DE label dictionary";
            case ResourceIdentifiers.SpellCheckerLabelDictionaryPath:
                return "DE Dictionarypath";
            case ResourceIdentifiers.SpellCheckerLabelNotInDictionary:
                return "Nicht im Wörterbuch";
            case ResourceIdentifiers.SpellCheckerLabelOptions:
                return "Etikettenoptionen";
            case ResourceIdentifiers.SpellCheckerLabelSuggestions:
                return "Vorschläge";
            case ResourceIdentifiers.SpellCheckerLabelWords:
                return "label cap";
            case ResourceIdentifiers.SpellCheckerOptionsDialogCaption:
                return "Rechtschreibprüfung Option";
            case ResourceIdentifiers.OK:
                return "OKAY";
            case ResourceIdentifiers.Cancel:
                return "Abbrechen";
            case ResourceIdentifiers.Options:
                return "Opciones";
            case ResourceIdentifiers.Change:
                return "cambio";
            case ResourceIdentifiers.ChangeAll:
                return "Cambiar todo";
            case ResourceIdentifiers.IgnoreOnce:
                return "einmal ignorieren";
            case ResourceIdentifiers.IgnoreAll:
                return "alle ignorieren";
            case ResourceIdentifiers.Undo:
                return "Cambiar todo";
            default:
                return string.Empty;                
        }
    }
}

VB

LocalizationProvider.Provider = New Localizer()
Class Localizer
      Implements ILocalizationProvider
Public Function GetLocalizedString(ByVal culture As System.Globalization.CultureInfo, ByVal name As String, ByVal obj As Object) As String
        Select Case name
            Case ResourceIdentifiers.SpellCheckerButtonAddToDictionary
                Return "Zum Wörterbuch hinzufügen"
            Case ResourceIdentifiers.SpellCheckerButtonCustomDictionary
                Return "Benutzerwörterbuch"
            Case ResourceIdentifiers.SpellCheckerDialogCaption
                Return "Rechtschreibprüfung"
            Case ResourceIdentifiers.SpellCheckCompletedAlert
                Return "Rechtschreibprüfung abgeschlossen"
            Case ResourceIdentifiers.SpellCheckerButtonNew
                Return "Taste neue"
            Case ResourceIdentifiers.SpellCheckerDictioanryEditorCaption
                Return "Dictionary Editor"
            Case ResourceIdentifiers.SpellCheckerIgnoreEmailAddress
                Return "Ignorieren E-Mail Adresse"
            Case ResourceIdentifiers.SpellCheckerIgnoreFileNames
                Return "Ignorieren von Dateinamen"
            Case ResourceIdentifiers.SpellCheckerIgnoreHTMLTags
                Return "Ignorieren HTML Stichworte"
            Case ResourceIdentifiers.SpellCheckerIgnoreInternetAddress
                Return "Ignorieren Internet-Adresse"
            Case ResourceIdentifiers.SpellCheckerIgnoreMixedCase
                Return "Ignorieren Probierpaket"
            Case ResourceIdentifiers.SpellCheckerIgnoreSpecialCharacters
                Return "Ignorieren Sie Sonderzeichen"
            Case ResourceIdentifiers.SpellCheckerIgnoreUpperCase
                Return "ignorieren Großbuchstaben"
            Case ResourceIdentifiers.SpellCheckerIgnoreWordsWithNumbers
                Return "Wörter mit Zahlen ignorieren"
            Case ResourceIdentifiers.SpellCheckerLabelDictionary
                Return "DE label dictionary"
            Case ResourceIdentifiers.SpellCheckerLabelDictionaryPath
                Return "DE Dictionarypath"
            Case ResourceIdentifiers.SpellCheckerLabelNotInDictionary
                Return "Nicht im Wörterbuch"
            Case ResourceIdentifiers.SpellCheckerLabelOptions
                Return "Etikettenoptionen"
            Case ResourceIdentifiers.SpellCheckerLabelSuggestions
                Return "Vorschläge"
            Case ResourceIdentifiers.SpellCheckerLabelWords
                Return "label cap"
            Case ResourceIdentifiers.SpellCheckerOptionsDialogCaption
                Return "Rechtschreibprüfung Option"
            Case ResourceIdentifiers.OK
                Return "OKAY"
            Case ResourceIdentifiers.Cancel
                Return "Abbrechen"
            Case ResourceIdentifiers.Options
                Return "Opciones"
            Case ResourceIdentifiers.Change
                Return "cambio"
            Case ResourceIdentifiers.ChangeAll
                Return "Cambiar todo"
            Case ResourceIdentifiers.IgnoreOnce
                Return "einmal ignorieren"
            Case ResourceIdentifiers.IgnoreAll
                Return "alle ignorieren"
            Case ResourceIdentifiers.Undo
                Return "Cambiar todo"
            Case Else
                Return String.Empty
        End Select
    End Function
End Class

The following screenshot illustrates the SpellChecker window.

Show the spell checker window

Figure 1: SpellChecker window

The following screenshot illustrates the option window.

Show the option window

Figure 2: Option window

Sample: http://www.syncfusion.com/downloads/support/directtrac/general/SpellChecker_Localization-1495917897.zip

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon