This is a migrated thread and some comments may be shown as answers.

Controls translation - problem

5 Answers 166 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Paweł Kasztelan
Top achievements
Rank 2
Paweł Kasztelan asked on 14 Feb 2013, 09:48 AM
In the technical file specifies what values ​​they can take descriptions of controls. http://docs.kendoui.com/api/web/editor
I translated
controls, and noticed some shortcomings.


$("#MailConf_Podpis").kendoEditor({
            messages: {
                foreColor: "Kolor czcionki",
                backColor: "Kolor wyróżnienia tekstu",
                viewHtml: "Podgląd HTML"   
            }
        });
Additionally I noticed a problem with the use of translations for inactive controls (error.png).

My translation controls.
$("#MailConf_Podpis").kendoEditor({
            tools: [
                "bold",
                "italic",
                "underline",
                "strikethrough",
                "fontName",
                "fontSize",
                "foreColor",
                "backColor",
                "justifyLeft",
                "justifyCenter",
                "justifyRight",
                "justifyFull",
                "insertUnorderedList",
                "insertOrderedList",
                "indent",
                "outdent",
                "formatBlock",
                "createLink",
                "unlink",
                "insertImage",
                "subscript",
                "superscript",
                "viewHtml"
            ],
            messages: {
                bold: "Pogrubienie",
                italic: "Kursywa",
                underline: "Podkreślenie",
                strikethrough: "Przekreślenie",
                superscript: "Indeks górny",
                subscript: "Indeks dolny",
                justifyCenter: "Wyśrodkuj",
                justifyLeft: "Wyrównaj do lewej",
                justifyRight: "Wyrównaj do prawej",
                justifyFull: "Wyjustuj",
                insertUnorderedList: "Punktory",
                insertOrderedList: "Numerowanie",
                indent: "Zwiększ wcięcie",
                outdent: "Zmniejsz wcięcie",
                createLink: "Wstaw odnośnik",
                unlink: "Usuń odnośnik",
                insertImage: "Wstaw obrazek",
                insertHtml: "Wstaw HTML",
                fontName: "Wybierz czcionkę",
                fontNameInherit: "(zmień czcionkę)",
                fontSize: "Wybierz rozmiar czcionki",
                fontSizeInherit: "(zmień rozmiar)",
                formatBlock: "Formatowanie",
                style: "Style",
                emptyFolder: "Pusty Folder",
                uploadFile: "Wyślij",
                orderBy: "Arrange by:",
                orderBySize: "Rozmiar",
                orderByName: "Nazwa",
                invalidFileType: "Wybrany przez Ciebie plik \"{0}\" jest nieprawidłowy. Wspierane typy plików {1}.",
                deleteFile: "Czy jesteś pewien że chcesz usunąć plik \"{0}\"?",
                overwriteFile: "Plik o nazwie \"{0}\" już istnieje w wybranej lokalizacji. Czy chcesz go nadpisać?",
                directoryNotFound: "Lokacja o podanej nazwie nie istnieje.",
                imageWebAddress: "Adres URL",
                imageAltText: "Tekst alternatywny",
                linkWebAddress: "Adres URL",
                linkText: "Tekst",
                linkToolTip: "Opis",
                linkOpenInNewWindow: "Otwórz odnośnik w nowym oknie",
                dialogInsert: "Wstaw",
                dialogButtonSeparator: "lub",
                dialogCancel: "Anuluj",
                foreColor: "Kolor czcionki",
                backColor: "Kolor wyróżnienia tekstu",
                viewHtml: "Podgląd HTML"
            }
        });

5 Answers, 1 is accepted

Sort by
0
Accepted
Daniel
Telerik team
answered on 18 Feb 2013, 09:19 AM
Hello,

The window titles are already localizable in the latest internal build that is available from your account. The items' text for the dropdowns can also be specified by setting the items for the tool like shown in this demo. 
Regarding the remove link tooltip - I am afraid that this option is still not included. We will add it for future versions. For now I can suggest to change it via code after the editor has been initialized e.g.

var editor = $("#editor").data("kendoEditor");
editor.wrapper.find(".k-tool-icon.k-unlink").attr("title", "My Message");
Regards,
Daniel
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Paweł Kasztelan
Top achievements
Rank 2
answered on 25 Feb 2013, 06:55 PM
Thanks for the reply and the code. I'm also waiting for the new version. Do you collect the basic controls translated at a later time and create the full package of translations?
0
Daniel
Telerik team
answered on 27 Feb 2013, 02:27 PM
Hi,

I am not sure if I understand correctly the question. Could you clarify a bit?
The messages are set through the default options when not overridden through the configuration but sometimes they are missed.

Regards,
Daniel
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Paweł Kasztelan
Top achievements
Rank 2
answered on 01 Mar 2013, 08:56 AM
Are you going to create in the future a full translation of the interface into all the languages ​​of the world? Full cultures files that contain translated texts of all possible controls. Currently, the file \js\cultures are only translations months, days of the week and date format. One might be tempted to expand those files with the set of all texts. I suspect that the community has helped to translate.
0
Daniel
Telerik team
answered on 05 Mar 2013, 08:20 AM
Hi,

Thank you for clarifying. Yes, this feature is planned but at this point I cannot commit to an exact time frame. In the meantime you can cast your vote for it in this User Voice item and follow the changes in its status.

Regards,
Daniel
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Editor
Asked by
Paweł Kasztelan
Top achievements
Rank 2
Answers by
Daniel
Telerik team
Paweł Kasztelan
Top achievements
Rank 2
Share this question
or