How to customize my messages file

2 posts, 0 answers
  1. Dan
    Dan avatar
    1 posts
    Member since:
    Jan 2016

    Posted 12 Jan Link to this post

    Hi, 

    I've stumbled upon a problem implementing the messages and culture into my Kendo UI scheduler. 

    I've followed http://demos.telerik.com/kendo-ui/scheduler/localization, and was able to change the language - but there is still a few things that doesn't change such as "Owner" in the popup-window when I create a new event. I've search through the messages file and can't find it there. 

     

    ----------

    resources:

    [{ field: "ownerId",

    title: "owner",

    dataSource:

    [{ text: "Alex", value: 1, color: "#f8a398" },

    { text: "Bob", value: 2, color: "#51a0ed" },

    { text: "Charlie", value: 3, color: "#56ca85" }]}]

     

    So i've tried to implement the "Owner" into the messages.js file, but it doesn't work. Here is what I've done so far:

    editor:{owner:"Owner",title:"Title" .........}

    Im quite new to this and was wondering if someone would care to give me a hint on what I'm doing wrong? :-) 

  2. Alexander Popov
    Admin
    Alexander Popov avatar
    1416 posts

    Posted 14 Jan Link to this post

    Hello Dan,

    I am not sure I understand your question very well. Basically, the Owner field is used as a resource and therefore should not be translated. You can however, change its title, for example: 
    resources: [
        {
            field: "ownerId",
            title: "TEST Owner",
            dataSource: [
                { text: "Alex", value: 1, color: "#f8a398" },
                { text: "Bob", value: 2, color: "#51a0ed" },
                { text: "Charlie", value: 3, color: "#56ca85" }
            ]
        }
    ]

    Regards,
    Alexander Popov
    Telerik
     
    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
Back to Top