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

Localization of BackgroundColor tool tooltip

7 Answers 94 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Jan Erik
Top achievements
Rank 2
Jan Erik asked on 09 Jul 2013, 08:42 AM
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

7 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 09 Jul 2013, 12:42 PM
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!
0
Jan Erik
Top achievements
Rank 2
answered on 06 Aug 2013, 07:56 AM
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.
0
Dimo
Telerik team
answered on 06 Aug 2013, 08:31 AM
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!
0
Jan Erik
Top achievements
Rank 2
answered on 06 Aug 2013, 09:46 AM
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
0
Dimo
Telerik team
answered on 06 Aug 2013, 01:48 PM
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!
0
Jan Erik
Top achievements
Rank 2
answered on 08 Aug 2013, 11:52 AM
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 
0
Dimo
Telerik team
answered on 08 Aug 2013, 01:29 PM
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!
Tags
Editor
Asked by
Jan Erik
Top achievements
Rank 2
Answers by
Dimo
Telerik team
Jan Erik
Top achievements
Rank 2
Share this question
or