S
S
Svyatoslav Khusamov2017-02-13 11:13:18
ExtJS/Sencha
Svyatoslav Khusamov, 2017-02-13 11:13:18

How to properly localize table Ext.grid.Panel (columns)?

It is not at all clear how to write override correctly to translate certain parts of the program.
At the moment, the problem is with the grid columns and the buttons in the toolbar.
Sandbox https://fiddle.sencha.com/#view/editor&fiddle/1q4p
Such an override, for example, will change the title correctly, but it will simply overwrite the columns - that is, it will essentially remove all settings in the original class:

Ext.define("Element.locale.ru.office.view.element.workstationList.WorkstationList", {
  override: "Ews.office.view.element.workstationList.WorkstationList",
  title: "Список рабочих мест",
  columns: [{
    dataIndex: "PARAMS",
    text: "Параметры"
  }]
});

Something similar happens with toolbars and in general with all components that are listed in arrays (columns, items, tbar, bbar, etc.)
How do you translate?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question