Localization

18 Apr 201714 minutes to read

The editor provides option to localize its strings, it is used to adapting the editor to a particular local language. By default, the editor will use the US English (en-US) as its language. Please find the table with list of keys and their corresponding values for default language (en-US).

  • CSHTML
  • ej.RTE.Locale["en-US"] = {    
            bold: "Bold",
            italic: "Italic",
            underline: "Underline",
            strikethrough: "Strikethrough",
            superscript: "Superscript",
            subscript: "Subscript",
            justifyCenter: "Align text center",
            justifyLeft: "Align text left",
            justifyRight: "Align text right",
            justifyFull: "Justify",
            unorderedList: "Insert unordered list",
            orderedList: "Insert ordered list",
            indent: "Indent",
            fileBrowser: "File Browser",
            outdent: "Decrease Indent",
            cut: "Cut",
            copy: "Copy",
            paste: "Paste",
            paragraph: "Paragraph",
            undo: "Undo",
            redo: "Redo",
            upperCase: "Upper Case",
            lowerCase: "Lower Case",
            clearAll: "Clear All",
            clearFormat: "Clear Format",
            createLink: "Insert/Edit hyperlink",
            removeLink: "Remove hyperlink",
            image: "Insert image",
            video: "Insert video",
            editTable: "Edit Table Properties",
            embedVideo: "Paste your embed code below",
            viewHtml: "View HTML",
            fontName: "Select font family",
            fontSize: "Select font size",
            fontColor: "Select color",
            format: "Format",
            backgroundColor: "Background color",
            style: "Styles",
            deleteAlert: "Are you sure you want to clear all the contents?",
            copyPasteAlert: "Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.",
            videoError: "The text area cannot be empty",
            imageWebUrl: "Web Address",
            imageAltText: "Image description",
            dimensions: "Dimensions",
            constrainProportions: "Constrain Proportions",
            linkWebUrl: "Web Address",
            imageLink: "Image as Link",
            imageBorder: "Image Border",
            imageStyle: "Style",
            linkText: "Text",
            linkToolTip: "ToolTip",
            html5Support: "This tool icon only enabled in HTML5 supported browsers",
            linkOpenInNewWindow: "Open link in new window",
            tableColumns: "No.of Columns",
            tableRows: "No.of Rows",
            tableWidth: "Width",
            tableHeight: "Height",
            tableCellSpacing: "Cell spacing",
            tableCellPadding: "Cell padding",
            tableBorder: "Border",
            tableCaption: "Caption",
            tableAlignment: "Alignment",
            textAlign: "Text align",
            dialogUpdate: "Update",
            dialogInsert: "Insert",
            dialogCancel: "Cancel",
            dialogApply: "Apply",
            dialogOk: "Ok",
            createTable: "Create table",
            addColumnLeft: "Add column on the left",
            addColumnRight: "Add column on the right",
            addRowAbove: "Add row above",
            addRowBelow: "Add row below",
            deleteRow: "Delete the row",
            deleteColumn: "Delete the column",
            deleteTable: "Delete the table",
            customTable: "Create custom table...",
            characters: "Characters",
            general: "General",
            advanced: "Advanced",
            table: "Table",
            row: "Row",
            column: "Column",
            cell: "Cell",
            solid: "Solid",
            dotted: "Dotted",
            dashed: "Dashed",
            doubled: "Doubled"
        };

    NOTE

    The culture name has to be specified in a standard format such as [Language Code]-[County/Region Code].

    To localize the editor’s strings with your own localization, copy the default language informations and localize the strings in the values column. For example, to localize the editor in German language (“de-DE”).

  • CSHTML
  • <ej-rte id="rteSample" locale="de-DE" width="820px">
    <e-content-template>
        <div>
            The Rich Text Editor(RTE) control is an easy to render in client side. Customer easy to edit the contents
            and get the HTML content for the displayed content. A rich text editor control provides
            users with a toolbar that helps them to apply rich text formats to the text entered
            in the text area.
        </div>
    </e-content-template>
    </ej-rte>
    
    <script>
        ej.RTE.Locale["de-DE"] = {
            bold: "fett",
            italic: "kursiv",
            underline: "unterstreichen",
            strikethrough: "Durchgestrichen",
            superscript: "Überschrift",
            subscript: "Index",
            justifyCenter: "Text-Zentrum",
            justifyLeft: "Ausrichten von Text links",
            justifyRight: "Ausrichten von Text rechts",
            justifyFull: "rechtfertigen",
            fileBrowser: "Datei-Browser",
            unorderedList: "Legen Sie ungeordnete Liste",
            orderedList: "Geordnete Liste einfügen",
            indent: "Einzug",
            outdent: "Einzug verkleinern",
            cut: "schneiden",
            copy: "Kopieren",
            paste: "Paste",
            undo: "lösen",
            redo: "Wiederherstellen",
            upperCase: "Großbuchstaben",
            lowerCase: "Kleinbuchstaben",
            clearAll: "Alles",
            clearFormat: "Klar Format",
            createLink: "Einfügen / Hyperlink Bearbeiten",
            removeLink: "fjern Hyperlink",
            tableProperties: "Tabelleneigenschaften",
            insertTable: "Einfügen",
            deleteTables: "Löschen",
            imageProperties: "Bildeigenschaften",
            openLink: "Verbindung öffnen",
            image: "Bild einfügen",
            video: "Legen Video",
            embedVideo: "Fügen Sie den Embed-Code unten",
            viewHtml: "Blick HTML",
            fontName: "Wählen Sie Schriftfamilie",
            fontSize: "Wählen Sie Schriftgröße",
            fontColor: "Wählen Sie die Farbe",
            format: "Format",
            backgroundColor: "Hintergrundfarbe",
            style: "Styles",
            deleteAlert: "Sind Sie sicher, dass Sie alle Inhalte löschen?",
            copyAlert: "Ihr Browser unterstützt leider keinen direkten Zugriff auf die Zwischenablage. Bitte verwenden Sie die Ctrl + C -Tastatur statt Kopiervorgang Verknüpfung .",
            pasteAlert: "Ihr Browser unterstützt leider keinen direkten Zugriff auf die Zwischenablage. Bitte verwenden Sie die Ctrl + V Tastenkombination statt Einfügen.",
            cutAlert: "Ihr Browser unterstützt leider keinen direkten Zugriff auf die Zwischenablage. Bitte verwenden Sie die Ctrl + X Tastenkombination statt Schneidevorgang.",
            videoError: "Der Textbereich darf nicht leer sein",
            imageWebUrl: "Webadresse",
            imageAltText: "Bildbeschreibung",
            dimensions: "Größe",
            constrainProportions: "Proportionen",
            linkWebUrl: "Webadresse",
            linkText: "Text",
            linkToolTip: "Tooltip",
            html5Support: "Dieses Werkzeug-Symbol nur in HTML5 aktiviert unterstützten Browser",
            linkOpenInNewWindow: "Link in einem neuen Fenster",
            tableColumns: "Spalten",
            tableRows: "Zeilen",
            solid: "solide",
            dashed: "gestippelde",
            dotted: "stippel",
            doubled: "dubbele",
            buttonApply: "toepassen",
            buttonCancel: "annuleren",
            closeIcon: "dicht",
            tableWidth: "Tischbreite",
            tableHeight: "Tischhöhe",
            tableCellSpacing: "Zellenabstand",
            tableCellPadding: "Zellauffüllung",
            tableBorder: "Grenze",
            tableCaption: "Beschriftung",
            tableAlignment: "Ausrichtung",
            dialogUpdate: "Aktualisierung",
            dialogInsert: "einfügen",
            dialogCancel: "stornieren",
            dialogOk: "Ok",
            createTable: "Tabelle erstellen",
            addColumnLeft: "Spalte links hinzufügen",
            addColumnRight: "In Spalte auf der rechten",
            addRowAbove: "Zeile hinzufügen oben",
            addRowBelow: "Zeile hinzufügen unten",
            deleteRow: "Löschen Sie die Zeile",
            deleteColumn: "Löschen Sie die Spalte",
            deleteTable: "Löschen Sie die Tabelle",
            insertTable: "Einfügen",
            customTable: "von benutzerdefinierten Tabelle",
            characters: "Charaktere",
            dialogApply: "anwenden",
            textAlign: "Text ausrichten",
            imageLink: "Bild als Link zu",
            imageBorder: "Bild Rand",
            imageStyle: "Stil",
            editTable: "Tabelle Eigenschaften bearbeiten",
            words: "Wörter",
            general: "allgemein",
            advanced: "fortgeschritten",
            table: "Tisch",
            row: "Reihe",
            column: "Spalte",
            cell: "Zelle",
            maximize: "Maximieren",
            resize: "Minimieren",
            swatches: "Farbfelder",
            paragraph: "Absatz",
            quotation: "Zitat",
            heading1: "Kopf 1",
            heading2: "Kopf 2",
            heading3: "Kopf 3",
            heading4: "Kopf 4",
            heading5: "Kopf 5",
            heading6: "Kopf 6",
            disc: "Scheibe",
            circle: "Kreis",
            square: "Platz",
            number: "Anzahl",
            loweralpha: "Lower Alpha",
            upperalpha: "Ober Alpha",
            lowerroman: "Lower Roman",
            upperroman: "Ober Roman",
            none: "Keine",
            linktooltip: "ctrl + Klick Link zu folgen",
            charSpace: "Zeichen (mit Leerzeichen )",
            charNoSpace: "Zeichen (ohne Leerzeichen)",
            wordCount: "Wortzahl",
            right: "Recht",
            left: "links",
            center: "Center",
            FindAndReplace: "Suchen und Ersetzen",
            Find: "Finden",
            MatchCase: "Kleinschreibung",
            WholeWord: "Ganze Welt",
            ReplaceWith: "Ersetzen mit",
            Replace: "Ersetzen",
            ReplaceAll: "Alles ersetzen",
            FindErrorMsg: "Konnte den angegebenen Wort gefunden ."
    
        };
    
    </script>