Localization of BackgroundColor tool tooltip

8 posts, 0 answers
  1. Jan Erik
    Jan Erik avatar
    24 posts
    Member since:
    Mar 2011

    Posted 09 Jul 2013 Link to this post

    Hey,

    We have added localization of the editor tooltips etc in a localization file (kendo.nb-NO.js, but it doesn't seem to work for backColor and imageAltText. Everything else works, but not these two. Is this a known problem? Below is some of the translations for the editor:

    kendo.ui.Editor.prototype.options.messages =
      $.extend(kendo.ui.Editor.prototype.options.messages, {

      /* These work */
          bold: "Fet",
          italic: "Kursiv",
          underline: "Understreket",
          strikethrough: "Gjennomstreket",
          superscript: "Fremhevet",

          /* These two doesn't work */
          imageAltText: "Alternativ tekst",
          backColor: "Bakgrunnsfarge"
          
      });


    Regards, 
    Jan Erik
  2. Dimo
    Admin
    Dimo avatar
    8333 posts

    Posted 09 Jul 2013 Link to this post

    Hello Jan,

    The issue has already been fixed and changes will take effect in the coming Q2 2013 release, which is due next week.

    Regards,
    Dimo
    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
  4. Jan Erik
    Jan Erik avatar
    24 posts
    Member since:
    Mar 2011

    Posted 06 Aug 2013 Link to this post

    Hey,

    I have now updated to 2013.2.729 and I can't see that the problem with the translation described in the original post is fixed.
  5. Dimo
    Admin
    Dimo avatar
    8333 posts

    Posted 06 Aug 2013 Link to this post

    Hello Jan,

    Please make sure you have upgraded correctly.

    http://jsfiddle.net/dimodi/HckPH/

    Regards,
    Dimo
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  6. Jan Erik
    Jan Erik avatar
    24 posts
    Member since:
    Mar 2011

    Posted 06 Aug 2013 Link to this post

    It seems to be working when I create the editor with javascript, but when I use the mvc extensions it still doesn't translate the background color tool. I have attached our translation file. 

    The version of the referenced Kendo.Mvc.dll file is 2013.2.729.340.

    Also, what is the message for translating the new create table tool?


    Regards
    Jan Erik
  7. Dimo
    Admin
    Dimo avatar
    8333 posts

    Posted 06 Aug 2013 Link to this post

    Hi Jan,

    Indeed, there was another issue, which prevented the localization string from being applied when using the Kendo UI MVC Editor. Sorry about that. The problem is now fixed and changes will take effect in the next internal and official builds.

    The table editing tools can be localized via messages.createTable and...

    ...addColumnLeft
    .addColumnRight
    .addRowAbove
    .addRowBelow
    .deleteRow
    .deleteColumn


    Regards,
    Dimo
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  8. Jan Erik
    Jan Erik avatar
    24 posts
    Member since:
    Mar 2011

    Posted 08 Aug 2013 Link to this post

    I added the translation of the tooltip for the table buttons like this:

    kendo.ui.Editor.prototype.options.messages =
      $.extend(kendo.ui.Editor.prototype.options.messages, {
           createTable: "Lag tabell",
          addColumnLeft: "Legg til kolonne til venstre",
          addColumnRight: "Legg til kolonne til høyre",
          addRowAbove: "Legg til rad over",
          addRowBelow: "Legg til rad under",
          deleteRow: "Slett rad",
          deleteColumn: "Slett kolonne"
      });

    This doesn't work. Is this the correct way of doing it? I also tried finding them using the mvc wrappers, but couldn't find them in the Messages method.


    Regards,
    Jan Erik 
  9. Dimo
    Admin
    Dimo avatar
    8333 posts

    Posted 08 Aug 2013 Link to this post

    Hello Jan Erik,

    The provided Javascript code works on my side, that's why I suggest you to try the internal build, which will be uploaded next week. It will contain all discussed updates, including the table-editing messages in the widget's MVC wrapper.

    Regards,
    Dimo
    Telerik
    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