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

Setting italian culture on Upload

6 Answers 279 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Achilles
Top achievements
Rank 1
Achilles asked on 11 Feb 2014, 06:08 AM
Hi,

I use a Kendo File upload function in my project, which supports a finite set of languages.
The text on the button was getting set according to the culture we were supporting till recent.

Recently we added Italian to our portal.
What we notice is that the text on the button remains in English as "Select files ..."

<script src="@Url.Content("http://cdn.kendostatic.com/2013.3.1324/js/cultures/kendo.culture." + culture + ".min.js")"></script>
<script>
    kendo.culture("@culture");
</script>
 
@Html.Kendo().Upload().Name("attachments").Events(events => events.Select("OnUploadSelect"))

How can I get around this issue ?

Also, I notice the same problem in grids where the text in the bottom is like "1-15 of 100 items", instead of the Italian equivalent. Is it a common issue or should I raise another discussion thread under the grids' category ?

Thanks &
Regards

Achilles

6 Answers, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 13 Feb 2014, 06:55 AM
Hello Raja,

Basically each localization that we have is provided by our community, in case you want to change the current localization messages or add new ones for different culture then you should edit the resource file of the source code and build your own assembly against the changes.

The steps are covered in details in the following topic of the documentation:

http://docs.telerik.com/kendo-ui/getting-started/using-kendo-with/aspnet-mvc/globalization#localized-user-interface

The process remains the same of each of the widgets.

Kind Regards,
Petur Subev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Achilles
Top achievements
Rank 1
answered on 13 Feb 2014, 09:50 AM
Hello Petur,
We use your CDN as
<script src="@Url.Content("http://cdn.kendostatic.com/2013.3.1324/js/cultures/kendo.culture." + culture + ".min.js")"></script>
So we have to make an exception for Italian by using resources locally.

You have mentioned about a community. Is it possible that we take your English resources as a reference, get it translated by an Italian developer (Coincidentally, I have an Italian colleague) and Telerik integrates it in a future release ?

Kind Regards
Achilles
0
Petur Subev
Telerik team
answered on 17 Feb 2014, 09:49 AM
Hello Raja,

Of course, if you give us the translation messages for a different culture that we do not have, we will be glad to publish them and make them available for all our customers. 

Kind Regards,
Petur Subev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Achilles
Top achievements
Rank 1
answered on 19 Feb 2014, 04:45 AM
Hello Petur,

Please find attached the Italian translations of the messages.
Will appreciate it if you allow me to test the new dll, even if it's a beta version on top of the latest official built.

Kind Regards

Achilles
0
Petur Subev
Telerik team
answered on 20 Feb 2014, 06:25 PM
Hello Achilles,

Thank you for sending the messages. The changes  should be available in the upcoming build. 

As a small sign of our appreciation I updated your telerik points.

Kind Regards,
Petur Subev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Romain
Top achievements
Rank 1
Iron
Iron
answered on 30 Nov 2021, 02:22 PM
    @(Html.Kendo().Upload()
        .Messages(x => {
            x.Select("MyUploadButtonName");
            x.HeaderStatusUploaded("My Status Uploaded");
        })
        .Name("files")
        .Async(a => a
            .Save("CustomDropZone_Save", "Test")
            .Remove("CustomDropZone_Remove", "Test")
            .AutoUpload(true)
        )
        .HtmlAttributes(new { @style="width: 250px"})
        .Multiple(false)
        .ShowFileList(false)
        .Events(e => e.Success("onSuccess"))
        .Validation(validation =>
        {
            validation.AllowedExtensions(new string[] { ".jpg", ".jpeg", ".png", ".bmp", ".gif" });
            validation.MinFileSize(500);
        })
    )
Tags
Upload
Asked by
Achilles
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Achilles
Top achievements
Rank 1
Romain
Top achievements
Rank 1
Iron
Iron
Share this question
or