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

How to customize my messages file

1 Answer 38 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 1
Dan asked on 12 Jan 2016, 02:35 PM

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? :-) 

1 Answer, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 14 Jan 2016, 03:34 PM
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!
 
Tags
Scheduler
Asked by
Dan
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Share this question
or