Changing localization messages: problems to recompile Kendo.Mvc.dll

4 posts, 0 answers
  1. Felipe
    Felipe avatar
    7 posts
    Member since:
    Nov 2011

    Posted 03 Nov 2013 Link to this post

    The Brazilian Portuguese translations of Kendo Complete are just terrible, so I went to all the trouble to review the entire resource file and translate everything that wasn't translated, and corrected all mistakes (there were many, many mistakes). I'm attaching the reviewed resource file so that you can, hopefully, provide a better PT-BR translation on the next releases. But I needed it right now so my application could benefit from the corrected translation. I've followed the guidelines at: http://docs.kendoui.com/getting-started/using-kendo-with/aspnet-mvc/globalization#changing-the-localization-messages

    The problem is that I just can't recompile the solution at all. The following references aren't resolving:

    System.Web.Mvc
    System.Web.Razor
    System.Web.WebPages
    System.Web.WebPagesDeployment
    System.Web.WebPages.Razor

    I don't have ASP.NET MVC 3, I only have ASP NET MVC 4. I can use Kendo perfectly in my projects, I just can't recompile it.
    I've tried to add the Asp.NET MVC nuget package to the solution without success. I'm getting the following log:

    Attempting to resolve dependency 'Microsoft.AspNet.WebPages (≥ 3.0.0)'.
    Attempting to resolve dependency 'Microsoft.Web.Infrastructure (≥ 1.0.0.0)'.
    Attempting to resolve dependency 'Microsoft.AspNet.Razor (≥ 3.0.0)'.
    Installing 'Microsoft.Web.Infrastructure 1.0.0.0'.
    Successfully installed 'Microsoft.Web.Infrastructure 1.0.0.0'.
    Installing 'Microsoft.AspNet.Razor 3.0.0'.
    Successfully installed 'Microsoft.AspNet.Razor 3.0.0'.
    Installing 'Microsoft.AspNet.WebPages 3.0.0'.
    Successfully installed 'Microsoft.AspNet.WebPages 3.0.0'.
    Installing 'Microsoft.AspNet.Mvc 5.0.0'.
    Successfully installed 'Microsoft.AspNet.Mvc 5.0.0'.
    Adding 'Microsoft.Web.Infrastructure 1.0.0.0' to Kendo.Mvc.
    Successfully added 'Microsoft.Web.Infrastructure 1.0.0.0' to Kendo.Mvc.
    Adding 'Microsoft.AspNet.Razor 3.0.0' to Kendo.Mvc.
    Uninstalling 'Microsoft.AspNet.Razor 3.0.0'.
    Successfully uninstalled 'Microsoft.AspNet.Razor 3.0.0'.
    Uninstalling 'Microsoft.Web.Infrastructure 1.0.0.0'.
    Successfully uninstalled 'Microsoft.Web.Infrastructure 1.0.0.0'.
    Install failed. Rolling back...
    Could not install package 'Microsoft.AspNet.Razor 3.0.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

    So I just can't recompile it, no matter what I do.

    I'm using Visual Studio 2010 and I really need the correct translations for Kendo. How can I manage to compile it or get my hands at a compiled Kendo.Mvc.dll wit the correct resources linked?

    I could also use my own Kendo localization project kendo-global if I could prevent the Html helpers from adding the localization text to the javascript they produce. Is there a way to prevent the Html helpers from adding the localized messages so that I could just include my own files from kendo-global?
  2. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 04 Nov 2013 Link to this post

    Hello Felipe,

     The Brazilian Portuguese translation was contributed by another Brazilian user of Kendo UI. Unfortunately we don't have a native speaker who can verify such contributions.

     To recompile Kendo UI Complete for ASP.NET MVC you need to install ASP.NET MVC 3. Then the assembly references will be successfully resolved.

    Regards,
    Atanas Korchev
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Felipe
    Felipe avatar
    7 posts
    Member since:
    Nov 2011

    Posted 04 Nov 2013 Link to this post

    Hi Atanas,

    Thanks for the help. I just can't risk installing MVC 3 in my main development machine, because I can't risk disrupting my app based on MVC 4. I know MVC 4 can bbe installed side-by-side with MVC 3, but I don't know if installing MVC 3 after MVC 4 could have side-effects, and I can't risk it right now.

    I'll try to install it on my secondary dev machine, but I don't know if it will count as an extra license for telerik... Maybe I could install it there, compile it and uninstall it. I don't want to breach any copyrights!

    Anyway, I strongly urge that you consider using the translated resources I provided, I can assure you that if they are not perfect, they are a zillion times better than the current one. I'm the maintainer of the kendo-global project on github, and my pt-br translations are being used everywhere for JavaScript only Kendo.UI projects. I think they can be trusted!

    Thansk again! I'll update this case if installing MVC 3, then Kendo Complete, on my secondary dev machine will allow me to recompile it!

    Best wishes,
    Felipe
  5. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 06 Nov 2013 Link to this post

    Hi Felipe,

     
    Please find attached KendoUI DLL file and related resource files with the provided translation of "pt-BR" messages included. Also current messages will be included in next KendoUI official release, however as the KendoUI Q3 2013 release will include additional messages it will be great if you can provide translations for them as well. You can find the new messages in the KendoUI Q3 2013 Beta released last week. 

    Kind Regards,
    Vladimir Iliev
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top
UI for ASP.NET MVC is VS 2017 Ready