Controls translation - problem

6 posts, 1 answers
  1. Paweł Kasztelan
    Paweł Kasztelan avatar
    17 posts
    Member since:
    Aug 2012

    Posted 14 Feb 2013 Link to this post

    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"
                }
            });
  2. Answer
    Daniel
    Admin
    Daniel avatar
    2118 posts

    Posted 18 Feb 2013 Link to this post

    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!
  3. Kendo UI is VS 2017 Ready
  4. Paweł Kasztelan
    Paweł Kasztelan avatar
    17 posts
    Member since:
    Aug 2012

    Posted 25 Feb 2013 Link to this post

    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?
  5. Daniel
    Admin
    Daniel avatar
    2118 posts

    Posted 27 Feb 2013 Link to this post

    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!
  6. Paweł Kasztelan
    Paweł Kasztelan avatar
    17 posts
    Member since:
    Aug 2012

    Posted 01 Mar 2013 Link to this post

    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.
  7. Daniel
    Admin
    Daniel avatar
    2118 posts

    Posted 05 Mar 2013 Link to this post

    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!
Back to Top
Kendo UI is VS 2017 Ready